public class StreamElement extends NamedType implements java.io.Serializable
_description, _index, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT| Constructor and Description |
|---|
StreamElement() |
StreamElement(hec.map.streamAlignment.StreamAlignmentNodeIfc sys,
int idx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(StreamNode node) |
void |
deleteStreamNode(StreamNode node) |
boolean |
equals(java.lang.Object obj) |
hec.map.streamAlignment.StreamAlignmentIfc |
getAlignment() |
double |
getCoordByLocation(hec.map.WorldPt wpt) |
double |
getCoordByStation(double station)
Given a stream station, return a stream coord based on stream node stations.
|
StreamNode |
getDownstreamNode() |
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
hec.map.WorldLine |
getLine() |
StreamPolyLine |
getLineSegment(double downStreamCoord,
double upStreamCoord)
return a line segment of this line
|
hec.map.WorldPt |
getLocationByCoord(double coord) |
hec.map.WorldPt |
getLocationByStation(double station) |
double |
getNameCoord()
get the center of longest interval between nodes
|
java.util.Vector |
getNodeVector() |
java.util.Vector |
getNodeVectorSorted() |
hec.map.WorldPt |
getReferencePt() |
double |
getStationByCoord(double coord)
Given a stream coordinate, return a station based on stream node stations.
|
double |
getStationByLocation(hec.map.WorldPt wpt)
Given a location, find the nearest station.
|
StreamNode |
getUpstreamNode() |
boolean |
isModified()
Check if the object has been modified.
|
boolean |
loadId() |
void |
locked(hec.event.LockEvent event) |
boolean |
readData(java.io.BufferedReader input) |
void |
resetNodeCoord() |
void |
reverseDirection()
Method to reverse the upstream to downstream orientation of the stream
element.
|
void |
setAlignment(hec.map.streamAlignment.StreamAlignmentNodeIfc alignment) |
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 |
setLine(StreamPolyLine reg) |
void |
setLinePoint(double coord,
hec.map.WorldPt wpt)
reset the location of a point on the stream line
|
void |
setName(java.lang.String name)
Set the NamedTypes's name to the argument String.
|
void |
setReferencePt(hec.map.WorldPt pt) |
java.lang.String |
toString() |
boolean |
writeData(java.io.BufferedWriter out) |
addModifiableListener, clone, compareTo, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isValid, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setValid, update, useRecursiveModifiedTestpublic StreamElement()
public StreamElement(hec.map.streamAlignment.StreamAlignmentNodeIfc sys,
int idx)
public void reverseDirection()
public hec.map.streamAlignment.StreamAlignmentIfc getAlignment()
public void setAlignment(hec.map.streamAlignment.StreamAlignmentNodeIfc alignment)
public hec.map.WorldLine getLine()
public java.util.Vector getNodeVector()
public java.util.Vector getNodeVectorSorted()
public hec.map.WorldPt getReferencePt()
public void setReferencePt(hec.map.WorldPt pt)
public void setLine(StreamPolyLine reg)
public hec.map.WorldPt getLocationByCoord(double coord)
public double getCoordByLocation(hec.map.WorldPt wpt)
public hec.map.WorldPt getLocationByStation(double station)
public double getStationByLocation(hec.map.WorldPt wpt)
public double getStationByCoord(double coord)
public double getCoordByStation(double station)
public void addNode(StreamNode node)
public void deleteStreamNode(StreamNode node)
public StreamNode getUpstreamNode()
public StreamNode getDownstreamNode()
public boolean readData(java.io.BufferedReader input)
public boolean writeData(java.io.BufferedWriter out)
public StreamPolyLine getLineSegment(double downStreamCoord, double upStreamCoord)
downStreamCoord - the down stream coordinate of the line segmentupStreamCoord - the up stream coordinate of the line segmentpublic void resetNodeCoord()
public double getNameCoord()
public void setLinePoint(double coord,
hec.map.WorldPt wpt)
public java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorgetFieldObject in class NamedTypefld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorsetFieldObject in class NamedTypefld - The java field object representing the member field to be setfobj - The data to set in that fieldpublic boolean loadId()
public void locked(hec.event.LockEvent event)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void setName(java.lang.String name)
NamedTypepublic boolean isModified()
NamedTypeisModified in interface rma.lang.ModifiableisModified in class NamedType