Package hec.map.streamAlignment
Class StreamAlignmentDrwPro
java.lang.Object
hec.map.streamAlignment.StreamAlignmentDrwPro
- All Implemented Interfaces:
StreamAlignmentProps,Serializable,Cloneable
public class StreamAlignmentDrwPro
extends Object
implements Serializable, Cloneable, StreamAlignmentProps
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic voiddeleteDPData(int mapScale) getDrawingProperties(int scale) getDrawingPropertiesForScale(int scale) static StreamAlignmentPropsintstatic StreamAlignmentDPDatanewDPData(int name) voidread(BufferedReader input) voidreset()called when the watershed is loaded.voidsaveProperties(int location) static voidsetDrawPropClassname(String classname) call this to set the drawing properties classname for the stream alignment.voidwrite(BufferedWriter output)
-
Field Details
-
_dataList
list of properties for different map scales. Last element is always the default set of properties -
_mapScale
protected int _mapScalethe mapscale these properties are for
-
-
Constructor Details
-
StreamAlignmentDrwPro
protected StreamAlignmentDrwPro()
-
-
Method Details
-
setDrawPropClassname
call this to set the drawing properties classname for the stream alignment.- Parameters:
classname-
-
getInstance
-
read
- Specified by:
readin interfaceStreamAlignmentProps- Throws:
IOException
-
write
- Specified by:
writein interfaceStreamAlignmentProps- Throws:
IOException
-
getDrawingProperties
- Specified by:
getDrawingPropertiesin interfaceStreamAlignmentProps
-
getDrawingPropertiesForScale
- Specified by:
getDrawingPropertiesForScalein interfaceStreamAlignmentProps
-
getDrawingProperties
- Specified by:
getDrawingPropertiesin interfaceStreamAlignmentProps
-
getNumberOfScales
public int getNumberOfScales()- Specified by:
getNumberOfScalesin interfaceStreamAlignmentProps
-
getScaleList
- Specified by:
getScaleListin interfaceStreamAlignmentProps
-
deleteDPData
public static void deleteDPData(int mapScale) - Parameters:
mapScale-
-
newDPData
- Parameters:
name-- Returns:
-
addDPData
- Specified by:
addDPDatain interfaceStreamAlignmentProps
-
saveProperties
public void saveProperties(int location) - Specified by:
savePropertiesin interfaceStreamAlignmentProps
-
reset
public void reset()Description copied from interface:StreamAlignmentPropscalled when the watershed is loaded.- Specified by:
resetin interfaceStreamAlignmentProps
-