Class TacticalSymbol

java.lang.Object
de.turnertech.tz.symbol.TacticalSymbol

public class TacticalSymbol extends Object
A representation of the Tactical Symbol. It is intended to be a lightweight class which can be cheaply, and diversly used to programatically access the image library.
Since:
1.2
  • Method Details

    • getResourceURL

      public URL getResourceURL()

      Returns the resource URL which points to the image this instance represents. The is trustworthy and has already been verified as existing.

      This can be used (for example) directly in swing ImageIcon

      Returns:
      The URL pointing to the resource.
      Since:
      1.2
    • getTags

      public Collection<TacticalSymbolTag> getTags()
      Returns the collection of tags associated with this symbol
      Returns:
      an unmodifiable collection.
      Since:
      1.2
    • hasTag

      public boolean hasTag(TacticalSymbolTag tag)
      Simple check to see if a tag is present.
      Parameters:
      tag - Tag to check is present.
      Returns:
      If the tag was present.
      Since:
      1.2
    • toString

      public String toString()
      Overrides:
      toString in class Object