visad.bio
Class MeasureLine

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

public class MeasureLine
extends MeasureThing

A connecting line in the list of measurements.


Constructor Summary
MeasureLine(MeasureLine line, double z)
          Constructs a line cloned from the given line, but with a (possibly) different Z value.
MeasureLine(MeasurePoint ep1, MeasurePoint ep2, java.awt.Color color, MeasureGroup group, boolean selected)
          Constructs a line with the given endpoints, color, group and selection status.
 
Method Summary
 void setColor(java.awt.Color color)
          Sets the line's color to match the given one.
 void setStdId(int stdId)
          Sets the line'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

MeasureLine

public MeasureLine(MeasurePoint ep1,
                   MeasurePoint ep2,
                   java.awt.Color color,
                   MeasureGroup group,
                   boolean selected)
Constructs a line with the given endpoints, color, group and selection status.


MeasureLine

public MeasureLine(MeasureLine line,
                   double z)
Constructs a line cloned from the given line, but with a (possibly) different Z value.

Method Detail

setColor

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

Specified by:
setColor in class MeasureThing

setStdId

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

Specified by:
setStdId in class MeasureThing