Package hec.map
Class LayerSymbol
java.lang.Object
hec.map.LayerSymbol
An object that draws Legend representations for Layer Schematic objects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static classClass to hold the type and the shape in the Liststatic classclassclassclassprotected classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static List<LayerSymbol.LayerSymbolItem>protected StreamAlignmentPropsprotected static final LayerSymbolstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddLayerSymbol(int type, LayerSymbol.LayerSymbolShape shape) add a new shape to the list of Shapes available to drawstatic voidstatic voidDraws with the symbol type knownstatic voiddraw2(Graphics g, int x, int y, int type, Color lineclr, Color fillclr, float size, boolean drawName) static int
-
Field Details
-
STREAM_REACH_SYMBOL
public static final int STREAM_REACH_SYMBOL- See Also:
-
STREAM_JUNCTION_SYMBOL
public static final int STREAM_JUNCTION_SYMBOL- See Also:
-
STREAM_NODE_SYMBOL
public static final int STREAM_NODE_SYMBOL- See Also:
-
_theSymbol
-
_shapeList
-
_streamDrawProp
-
-
Constructor Details
-
LayerSymbol
public LayerSymbol()list of shapes available to draw
-
-
Method Details
-
numSymbols
public static int numSymbols() -
draw
-
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
-
addLayerSymbol
add a new shape to the list of Shapes available to draw- Parameters:
type- a unique number for the shapeshape- the shape to draw
-