com.partnersoft.v3x.apps.Staker.domain
Class IntermediatePoint

java.lang.Object
  extended by com.partnersoft.v3x.apps.MapBrowser.MapPoint
      extended by com.partnersoft.v3x.apps.MapBrowser.MapTreeNode
          extended by com.partnersoft.v3x.apps.Staker.domain.StakingNode
              extended by com.partnersoft.v3x.apps.Staker.domain.IntermediatePoint
All Implemented Interfaces:
java.io.Serializable

public class IntermediatePoint
extends StakingNode

This is an intermediate point on a span. No units may be placed here; it is simply used to simulate curves with a polyline.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.partnersoft.v3x.apps.Staker.domain.StakingNode
job
 
Fields inherited from class com.partnersoft.v3x.apps.MapBrowser.MapPoint
coords
 
Constructor Summary
IntermediatePoint()
          Create a new, blank IntermediatePoint.
IntermediatePoint(Job job)
           
IntermediatePoint(Job job, Coord3D coord, StakingNode parent)
          Create a new IntermediatePoint at coord with parent.
 
Method Summary
 double getCalculatedSpan()
          The by-the-map distance in feet to the parent point.
 StakingNode getChildNode()
          Returns the single child.
 Location getDescendentLocation()
          Intermediate points should only have a single location descendent; here tis.
 void paintOn(java.awt.Graphics g, java.awt.Point p, boolean inverse)
          Subclasses should override this.
 void paintOn(java.awt.Graphics g, RenderMold mold)
          Figures out where the centerpoint should be and calls paintOn(Graphics, Point);
 void paintSpan(java.awt.Graphics g, RenderMold mold)
           
 java.lang.String toString()
           
 
Methods inherited from class com.partnersoft.v3x.apps.Staker.domain.StakingNode
deepCopy, getGpsID, getJob, getParentLocation, setGpsID
 
Methods inherited from class com.partnersoft.v3x.apps.MapBrowser.MapTreeNode
addChild, children, containsDescendent, descendents, formsLoop, getBackSpanDeflection, getBackSpanVector, getChildrenSet, getDistanceToParent, getFrontSpanDeflections, getFrontSpanVector, getNumberOfChildren, getParent, hasChildren, isLoopWith, listAllConnectedNodes, listChildren, remove, removeChild, setParent
 
Methods inherited from class com.partnersoft.v3x.apps.MapBrowser.MapPoint
clearGuid, copyFromExistingPoint, getCoords, getGuid, getPostprocessingPoint, getXyPoint, isSelected, setCoords, setGuid, setPostprocessingPoint, setSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntermediatePoint

public IntermediatePoint(Job job,
                         Coord3D coord,
                         StakingNode parent)
Create a new IntermediatePoint at coord with parent.


IntermediatePoint

public IntermediatePoint(Job job)

IntermediatePoint

public IntermediatePoint()
Create a new, blank IntermediatePoint.

Method Detail

getChildNode

public StakingNode getChildNode()
Returns the single child.


getDescendentLocation

public Location getDescendentLocation()
Intermediate points should only have a single location descendent; here tis.


getCalculatedSpan

public double getCalculatedSpan()
The by-the-map distance in feet to the parent point.

Overrides:
getCalculatedSpan in class StakingNode

paintOn

public void paintOn(java.awt.Graphics g,
                    RenderMold mold)
Figures out where the centerpoint should be and calls paintOn(Graphics, Point);

Overrides:
paintOn in class MapPoint

paintOn

public void paintOn(java.awt.Graphics g,
                    java.awt.Point p,
                    boolean inverse)
Description copied from class: MapPoint
Subclasses should override this.

Specified by:
paintOn in class MapPoint

paintSpan

public void paintSpan(java.awt.Graphics g,
                      RenderMold mold)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object