Package hec.map

Class LayerSymbol

java.lang.Object
hec.map.LayerSymbol

public class LayerSymbol extends Object
An object that draws Legend representations for Layer Schematic objects.
  • Field Details

  • Constructor Details

    • LayerSymbol

      public LayerSymbol()
      list of shapes available to draw
  • Method Details

    • numSymbols

      public static int numSymbols()
    • draw

      public static void draw(Graphics g, int x, int y, int type, Color lineclr, Color fillclr, float size)
    • draw2

      public static void draw2(Graphics g, int x, int y, int type, Color lineclr, Color fillclr, float size)
      Draws with the symbol type known
    • draw2

      public static void draw2(Graphics g, int x, int y, int type, Color lineclr, Color fillclr, float size, boolean drawName)
    • addLayerSymbol

      public static void addLayerSymbol(int type, LayerSymbol.LayerSymbolShape shape)
      add a new shape to the list of Shapes available to draw
      Parameters:
      type - a unique number for the shape
      shape - the shape to draw