public class StreamAlignment extends Manager implements hec.map.MapObjectInterface, hec.map.streamAlignment.StreamAlignmentIfc
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FILE_NAME |
LASTMODIFIED_STRING_description, _index, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT| Constructor and Description |
|---|
StreamAlignment() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
connectAlignment(double tolerance)
Iterates through the stream alignment connecting the stream elements
together.
|
boolean |
connectNode(StreamElement elem,
StreamNode node,
double tol) |
void |
connectReach(StreamElement elem,
double tol) |
StreamElement |
createReach(StreamPolyLine line,
double tol) |
boolean |
deleteAll()
Deletes all elements, nodes, and reaches.
|
boolean |
deleteReach(int index) |
boolean |
deleteReach(java.lang.String name) |
void |
deleteStreamNode(StreamNode node) |
StreamNode |
findDownstreamNode(StreamElement stream,
double coord) |
StreamElement |
findNearestReach(hec.map.WorldPt wpt,
hec.map.WorldPt wptbest)
finds the stream element nearest the given point.
|
StreamElement |
findNearestReach(hec.map.WorldPt wpt,
hec.map.WorldPt wptbest,
double[] mindist)
finds the stream element nearest the given point.
|
StreamNode |
findNearestStreamNode(StreamElement stream,
hec.map.WorldPt wpt) |
StreamElement |
findReach(int idx) |
StreamElement |
findReach(StreamNode node,
hec.map.WorldPt wpt,
double tol)
Finds a reach that contains the given world point but does not have the
given node.
|
StreamElement |
findReach(java.lang.String name) |
StreamElement |
findReach(hec.map.WorldPt wpt,
double tol)
Finds a Reach that Contains the given World Point
|
StreamElement |
findReach(hec.map.WorldPt wpt,
double tol,
StreamElement rch0)
Finds a Reach that Contains the given World Point for creating reaches
|
StreamJunction |
findStreamJunction(StreamElement stream,
hec.map.WorldPt wpt,
double tol)
look for a stream junction on the given stream near the given point
|
StreamNode |
findStreamNode(StreamElement stream,
hec.map.WorldPt wpt,
double tol)
look for a stream node on the given stream near the given point
|
StreamNode |
findUpstreamNode(StreamElement stream,
double coord) |
hec.map.crs.CoordinateReferenceSystem |
getCoordinateReferenceSystem() |
hec.map.streamAlignment.StreamAlignmentProps |
getDrawProp() |
java.util.Vector |
getElementVector() |
hec.map.WorldRect |
getExtent() |
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
StreamJunction |
getJunction(int id) |
java.util.Vector |
getJunctionVector() |
hec.map.MapIdentifier |
getMapIdentifier() |
java.lang.String |
getNextDefaultElementName() |
int |
getNextLineIndex() |
StreamNode |
getNode(int id) |
java.util.Vector |
getNodeVector() |
StreamElement |
getReach(int id) |
java.lang.String |
getStreamSegmentsByNodes(java.util.Vector nodeVec,
java.util.Vector ndirVec,
java.util.Vector segVec)
develops a set of stream segments bounded by the given nodes, also
determines whether the nodes are inflow points or outflow points relative
to the bounded segments.
|
void |
init() |
void |
load() |
StreamElement |
newStreamElement() |
StreamJunction |
newStreamJunction() |
StreamNode |
newStreamNode(StreamElement reach) |
boolean |
readFile(Identifier id) |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
boolean |
removeReachFromJunction(java.lang.String name,
boolean upStream) |
void |
setCoordinateReferenceSystem(hec.map.crs.CoordinateReferenceSystem crs) |
void |
setExtent(hec.map.WorldRect rc) |
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
This allows access to fields withing the implementing object to set there data.
|
void |
setMapIdentifier(hec.map.MapIdentifier id) |
void |
unload() |
void |
updateJunctionLocations() |
boolean |
writeFile(Identifier id) |
addModifiableListener, backupFile, copyFile, deleteFile, deleting, finalize, getCallback, getCommonDataList, getDirectory, getDSSFileManager, getDSSFileManagerWrapper, getFileManager, getFilename, getGmtOffset, getIdentifier, getInputITSDataSet, getInputTSDataSet, getLastModifiedTime, getLastModifiedTimeString, getOutputITSDataSet, getOutputTSDataSet, getPath, getProxyList, getReadOnly, getRelativePath, getReloadOk, getUnitSystem, getUserInterface, getWorkspace, getWorkspacePath, hasLock, isCanceled, isForecastManager, loadComplete, loadSaveAsFile, makeAbsolutePath, makeAbsolutePath, makeAbsolutePathFromWatershed, makeRelativePath, makeRelativePathFromWatershed, modifiyForSaveAs, newFile, newTSRecordProxy, newTSRecordProxy, notify, openFile, printErrorMessage, printLogMessage, printMessage, printSeparator, printStatus, printTableRow, printWarningMessage, refreshData, reLoadChildManagers, reLoadFile, reLoadFile, removeCallBack, removeModifiableListener, renamed, saveChildManagers, saveManager, saveManagerAs, saveManagerAs, setIdentifier, setLastModifiedTime, setLastModifiedTime, setLineAttributes, setLocked, setModified, setModifiedFalse, setPath, setProgress, setProxyList, setReadOnly, setReloadOk, setUserInterface, setUserInterface, setWorkspace, toString, unloadingclone, compareTo, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setName, setValid, update, useRecursiveModifiedTestaddObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObserversequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final java.lang.String FILE_NAME
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener in interface hec.map.streamAlignment.StreamAlignmentIfcpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener in interface hec.map.streamAlignment.StreamAlignmentIfcpublic java.util.Vector getElementVector()
getElementVector in interface hec.map.streamAlignment.StreamAlignmentIfcpublic java.util.Vector getNodeVector()
getNodeVector in interface hec.map.streamAlignment.StreamAlignmentIfcpublic hec.map.streamAlignment.StreamAlignmentProps getDrawProp()
getDrawProp in interface hec.map.streamAlignment.StreamAlignmentIfcpublic java.util.Vector getJunctionVector()
getJunctionVector in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamElement newStreamElement()
newStreamElement in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamNode newStreamNode(StreamElement reach)
newStreamNode in interface hec.map.streamAlignment.StreamAlignmentIfcpublic void deleteStreamNode(StreamNode node)
deleteStreamNode in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamJunction newStreamJunction()
newStreamJunction in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamElement findNearestReach(hec.map.WorldPt wpt, hec.map.WorldPt wptbest)
findNearestReach in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamElement findNearestReach(hec.map.WorldPt wpt, hec.map.WorldPt wptbest, double[] mindist)
findNearestReach in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamElement findReach(hec.map.WorldPt wpt, double tol)
findReach in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamElement findReach(StreamNode node, hec.map.WorldPt wpt, double tol)
public StreamElement findReach(hec.map.WorldPt wpt, double tol, StreamElement rch0)
findReach in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamElement findReach(java.lang.String name)
findReach in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamElement findReach(int idx)
findReach in interface hec.map.streamAlignment.StreamAlignmentIfcpublic boolean deleteReach(int index)
public boolean deleteReach(java.lang.String name)
deleteReach in interface hec.map.streamAlignment.StreamAlignmentIfcpublic boolean deleteAll()
deleteAll in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamElement getReach(int id)
getReach in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamJunction getJunction(int id)
getJunction in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamNode getNode(int id)
getNode in interface hec.map.streamAlignment.StreamAlignmentNodeIfcpublic StreamElement createReach(StreamPolyLine line, double tol)
createReach in interface hec.map.streamAlignment.StreamAlignmentIfcpublic void connectAlignment(double tolerance)
connectAlignment in interface hec.map.streamAlignment.StreamAlignmentIfcpublic void connectReach(StreamElement elem, double tol)
connectReach in interface hec.map.streamAlignment.StreamAlignmentIfcpublic boolean connectNode(StreamElement elem, StreamNode node, double tol)
connectNode in interface hec.map.streamAlignment.StreamAlignmentIfcpublic void unload()
unload in interface hec.map.MapObjectInterfacepublic void load()
throws java.io.IOException
load in interface hec.map.MapObjectInterfacejava.io.IOExceptionpublic boolean readFile(Identifier id)
public boolean writeFile(Identifier id)
public void setMapIdentifier(hec.map.MapIdentifier id)
setMapIdentifier in interface hec.map.MapObjectInterfacepublic hec.map.MapIdentifier getMapIdentifier()
getMapIdentifier in interface hec.map.MapObjectInterfacepublic void setExtent(hec.map.WorldRect rc)
setExtent in interface hec.map.MapObjectInterfacepublic hec.map.WorldRect getExtent()
getExtent in interface hec.map.MapObjectInterfacepublic void updateJunctionLocations()
updateJunctionLocations in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamJunction findStreamJunction(StreamElement stream, hec.map.WorldPt wpt, double tol)
findStreamJunction in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamNode findStreamNode(StreamElement stream, hec.map.WorldPt wpt, double tol)
findStreamNode in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamNode findNearestStreamNode(StreamElement stream, hec.map.WorldPt wpt)
findNearestStreamNode in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamNode findDownstreamNode(StreamElement stream, double coord)
findDownstreamNode in interface hec.map.streamAlignment.StreamAlignmentIfcpublic StreamNode findUpstreamNode(StreamElement stream, double coord)
findUpstreamNode in interface hec.map.streamAlignment.StreamAlignmentIfcpublic boolean removeReachFromJunction(java.lang.String name,
boolean upStream)
removeReachFromJunction in interface hec.map.streamAlignment.StreamAlignmentIfcpublic java.lang.String getStreamSegmentsByNodes(java.util.Vector nodeVec,
java.util.Vector ndirVec,
java.util.Vector segVec)
getStreamSegmentsByNodes in interface hec.map.streamAlignment.StreamAlignmentIfcpublic int getNextLineIndex()
getNextLineIndex in interface hec.map.streamAlignment.StreamAlignmentIfcpublic hec.map.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
getCoordinateReferenceSystem in interface hec.map.MapObjectInterfacepublic void setCoordinateReferenceSystem(hec.map.crs.CoordinateReferenceSystem crs)
setCoordinateReferenceSystem in interface hec.map.streamAlignment.StreamAlignmentIfcpublic java.lang.String getNextDefaultElementName()
getNextDefaultElementName in interface hec.map.streamAlignment.StreamAlignmentIfcpublic java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorgetFieldObject in class Managerfld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorsetFieldObject in class Managerfld - The java field object representing the member field to be setfobj - The data to set in that field