com.partnersoft.v3x.apps.MapBrowser
Class MapPoint

java.lang.Object
  extended by com.partnersoft.v3x.apps.MapBrowser.MapPoint
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GPSPoint, MapTreeNode, RedlineSticker, RedlineText

public abstract class MapPoint
extends java.lang.Object
implements java.io.Serializable

A point in a MapPointLayer. Subclasses might be any number of things - houses, telephone poles, plot centroids, whatever. They just need to be able to paint themselves with the paintOn() methods.

See Also:
Serialized Form

Field Summary
 Coord3D coords
           
 
Constructor Summary
MapPoint()
           
MapPoint(Coord3D someCoords)
           
 
Method Summary
 void clearGuid()
          Clears the current GUID so that it will be regenerated.
 void copyFromExistingPoint(MapPoint source)
           Every deepCopy() method should call this function to copy the MapPoint's fields.
 Coord3D getCoords()
           
 java.lang.String getGuid()
           
 PostprocessingPoint getPostprocessingPoint()
           
 XyPoint getXyPoint()
          Returns the more modern XyPoint representation of the point's position.
 boolean isSelected()
           
abstract  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); Override if you need more complex behavior.
 void setCoords(Coord3D someCoords)
           
 void setGuid(java.lang.String newGuid)
           
 void setPostprocessingPoint(PostprocessingPoint inPostprocessingPoint)
           If the input argument is null, which happens during TOF file loading for example, then this function ignores it.
 void setSelected(boolean selected)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coords

public Coord3D coords
Constructor Detail

MapPoint

public MapPoint()

MapPoint

public MapPoint(Coord3D someCoords)
Method Detail

paintOn

public void paintOn(java.awt.Graphics g,
                    RenderMold mold)
Figures out where the centerpoint should be and calls paintOn(Graphics, Point); Override if you need more complex behavior.


paintOn

public abstract void paintOn(java.awt.Graphics g,
                             java.awt.Point p,
                             boolean inverse)
Subclasses should override this.


getCoords

public Coord3D getCoords()

setCoords

public void setCoords(Coord3D someCoords)

isSelected

public boolean isSelected()

setSelected

public void setSelected(boolean selected)

clearGuid

public void clearGuid()
Clears the current GUID so that it will be regenerated.


setGuid

public void setGuid(java.lang.String newGuid)

getGuid

public java.lang.String getGuid()

copyFromExistingPoint

public void copyFromExistingPoint(MapPoint source)

Every deepCopy() method should call this function to copy the MapPoint's fields.

Parameters:
source -

getXyPoint

public XyPoint getXyPoint()
Returns the more modern XyPoint representation of the point's position.


getPostprocessingPoint

public PostprocessingPoint getPostprocessingPoint()

setPostprocessingPoint

public void setPostprocessingPoint(PostprocessingPoint inPostprocessingPoint)

If the input argument is null, which happens during TOF file loading for example, then this function ignores it.

Parameters:
inPostprocessingPoint -