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 class
protected static class
Class to hold the type and the shape in the Liststatic class
class
class
class
protected class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static List<LayerSymbol.LayerSymbolItem>
protected StreamAlignmentProps
protected static final LayerSymbol
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addLayerSymbol
(int type, LayerSymbol.LayerSymbolShape shape) add a new shape to the list of Shapes available to drawstatic void
static void
Draws with the symbol type knownstatic void
draw2
(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
-