visad.bio
Class MeasurePoint

java.lang.Object
  extended by visad.bio.MeasureThing
      extended by visad.bio.MeasurePoint

public class MeasurePoint
extends MeasureThing

An endpoint in the list of measurements.


Constructor Summary
MeasurePoint(double x, double y, double z)
          Constructs an endpoint with the given coordinates.
MeasurePoint(double x, double y, double z, java.awt.Color color, MeasureGroup group)
          Constructs an endpoint with the given coordinates, color, group and selection status.
MeasurePoint(MeasurePoint point, double z)
          Constructs an endpoint cloned from the given endpoint, but with a (possibly) different Z value.
 
Method Summary
 void refreshColor()
          Sets the point's color to match its associated lines.
 void setColor(java.awt.Color color)
          Sets the point's preferred color to the given one.
 void setCoordinates(PoolPoint p, double x, double y, double z)
          Sets the coordinates of the endpoint to match those given.
 void setStdId(int stdId)
          Sets the point's standard id to match the given id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeasurePoint

public MeasurePoint(double x,
                    double y,
                    double z)
Constructs an endpoint with the given coordinates.


MeasurePoint

public MeasurePoint(double x,
                    double y,
                    double z,
                    java.awt.Color color,
                    MeasureGroup group)
Constructs an endpoint with the given coordinates, color, group and selection status.


MeasurePoint

public MeasurePoint(MeasurePoint point,
                    double z)
Constructs an endpoint cloned from the given endpoint, but with a (possibly) different Z value.

Method Detail

setColor

public void setColor(java.awt.Color color)
Sets the point's preferred color to the given one.

Specified by:
setColor in class MeasureThing

setStdId

public void setStdId(int stdId)
Sets the point's standard id to match the given id.

Specified by:
setStdId in class MeasureThing

setCoordinates

public void setCoordinates(PoolPoint p,
                           double x,
                           double y,
                           double z)
Sets the coordinates of the endpoint to match those given.


refreshColor

public void refreshColor()
Sets the point's color to match its associated lines.