gov.noaa.pmel.sgt
Class PlotMark

java.lang.Object
  |
  +--gov.noaa.pmel.sgt.PlotMark
Direct Known Subclasses:
PlotMarkIcon

public class PlotMark
extends java.lang.Object

Support class used to draw a PlotMark. Plot mark codes are defined in the following table.

Since:
2.0
Version:
$Revision: 1.4 $, $Date: 2001/02/06 20:05:51 $
Author:
Donald Denbo
See Also:
PointCartesianRenderer, PlotMarkIcon

Constructor Summary
PlotMark(int mark)
          Construct a PlotMark using the code from the mark code.
PlotMark(LineAttribute attr)
          Construct a PlotMark using the code and height from the LineAttribute.
PlotMark(PointAttribute attr)
          Construct a PlotMark using the code and height from the PointAttribute.
 
Method Summary
 int getMark()
          Get the mark code.
 double getMarkHeightP()
          Get the mark height
 void paintMark(java.awt.Graphics g, Layer ly, int xp, int yp)
          Used internally by sgt.
 void setLineAttribute(LineAttribute attr)
          Set the mark and height from the LineAttribute.
 void setMark(int mark)
          Set the mark.
 void setMarkHeightP(double mHeight)
          Set the mark height.
 void setPointAttribute(PointAttribute attr)
          Set the mark and height from the PointAttribute.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlotMark

public PlotMark(LineAttribute attr)
Construct a PlotMark using the code and height from the LineAttribute.

PlotMark

public PlotMark(PointAttribute attr)
Construct a PlotMark using the code and height from the PointAttribute.

PlotMark

public PlotMark(int mark)
Construct a PlotMark using the code from the mark code. Default height = 0.08.
Method Detail

setPointAttribute

public void setPointAttribute(PointAttribute attr)
Set the mark and height from the PointAttribute.

setLineAttribute

public void setLineAttribute(LineAttribute attr)
Set the mark and height from the LineAttribute.

setMark

public void setMark(int mark)
Set the mark.

getMark

public int getMark()
Get the mark code.

setMarkHeightP

public void setMarkHeightP(double mHeight)
Set the mark height.

getMarkHeightP

public double getMarkHeightP()
Get the mark height

paintMark

public void paintMark(java.awt.Graphics g,
                      Layer ly,
                      int xp,
                      int yp)
Used internally by sgt.

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 
Overrides:
toString in class java.lang.Object
Following copied from class: java.lang.Object
Returns:
a string representation of the object.


Send comments about the Scientific Graphics toolkit to dwd@pmel.noaa.gov. For more information about Java Development in the EPIC Group see the EPIC Software Page
Generated on December 13 2001