|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.apps.Staker.domain.Span
public class Span
A Span is the distance connecting a Location to its parent (or first ancestor that isn't an intermediate point). SpanUnits may be placed upon it; it also has some other properties of interest to stakers.
| Constructor Summary | |
|---|---|
Span()
Create a new, blank Span. |
|
Span(Location location)
Create a span for the given location. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
XyPolyline |
convertToPolyline()
Returns the span's shape as an XyPolyline. |
java.lang.Object |
deepCopy()
|
void |
forceAccountedToCalculated()
|
void |
forceCalculatedToAccounted()
|
int |
getAccountedSpan()
|
double |
getCalculatedSpan()
|
java.awt.Color |
getColor()
|
java.util.List<StakedUnitCombo> |
getCombos()
|
java.util.List<StakedUnitComboState> |
getComboStates()
This accessor is used to store the combos in TOF format. |
XyDirection |
getDirection()
Returns the direction of the backspan (from this location to the parent). |
LineDrawer |
getLineDrawer()
|
Linetype |
getLinetype()
|
java.lang.String |
getLinetypeName()
Get name of linetype used to draw span. |
Location |
getLocation()
|
OverUnder |
getOverUnder()
Overhead or underground? One lump or two? |
Phase |
getPhase()
Phase of the span. |
byte[] |
getSpanShape()
|
SpanType |
getSpanType()
This is the type of span for accounting purposes. |
StakeStatus |
getStatus()
Existing, retired, or new. |
java.util.Set<UnitOnASpan> |
getUnits()
Stuff on the span. |
boolean |
hasBackspan()
Returns true if there is a backspan (parent != null) and it contains stations (intermediate points). |
boolean |
isConnected()
Returns true if there is a backspan (parent != null). |
boolean |
isMatching()
|
boolean |
isStraight()
Returns true if there is a backspan (parent != null) and it contains no intermediate points. |
java.util.List<StakingNode> |
listNodes()
Returns a list of nodes in this span. |
void |
paintOn(java.awt.Graphics g,
RenderMold mold)
Figures out where the centerpoint should be and calls paintOn(Graphics, Point); |
void |
setAccountedSpan(int newSpan)
|
void |
setComboStates(java.util.List<StakedUnitComboState> newStates)
This accessor is used to store the combos in TOF format. |
void |
setLinetypeName(java.lang.String newLinetypeName)
Set name of linetype used to draw span. |
void |
setLocation(Location newLocation)
|
void |
setMatching(boolean match)
|
void |
setPhase(Phase newPhase)
|
void |
setSpanType(SpanType newType)
|
void |
setUnits(java.util.Set newUnits)
|
UnitOnASpan |
stakedUnitWithGuid(java.lang.String guid)
|
java.lang.String |
toString()
|
void |
updateLineDrawer()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Span()
public Span(Location location)
| Method Detail |
|---|
public void forceAccountedToCalculated()
public void forceCalculatedToAccounted()
public void paintOn(java.awt.Graphics g,
RenderMold mold)
public java.awt.Color getColor()
public LineDrawer getLineDrawer()
public Linetype getLinetype()
public java.lang.String toString()
toString in class java.lang.Objectpublic void updateLineDrawer()
public boolean isConnected()
public boolean isStraight()
public boolean hasBackspan()
public XyDirection getDirection()
public XyPolyline convertToPolyline()
public byte[] getSpanShape()
public int getAccountedSpan()
public void setAccountedSpan(int newSpan)
public double getCalculatedSpan()
public boolean isMatching()
public void setMatching(boolean match)
public SpanType getSpanType()
public void setSpanType(SpanType newType)
public java.util.Set<UnitOnASpan> getUnits()
public void setUnits(java.util.Set newUnits)
public Phase getPhase()
public void setPhase(Phase newPhase)
public Location getLocation()
public void setLocation(Location newLocation)
public java.lang.String getLinetypeName()
public void setLinetypeName(java.lang.String newLinetypeName)
public StakeStatus getStatus()
public OverUnder getOverUnder()
public java.util.List<StakingNode> listNodes()
public java.util.List<StakedUnitCombo> getCombos()
public java.util.List<StakedUnitComboState> getComboStates()
public void setComboStates(java.util.List<StakedUnitComboState> newStates)
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.Object deepCopy()
public UnitOnASpan stakedUnitWithGuid(java.lang.String guid)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||