gov.noaa.pmel.sgt
Class PlotMark

java.lang.Object
  extended by 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$, $Date$
Author:
Donald Denbo
See Also:
PointCartesianRenderer, PlotMarkIcon

Field Summary
protected  boolean circle_
           
protected  boolean fill_
           
protected  int fillMark_
           
protected  int firstPoint_
           
protected  int lastPoint_
           
protected  int mark_
           
protected  double markHeight_
           
protected static int[][] markTable
           
protected static int[] table
           
protected  int tableSize_
           
 
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
static void main(java.lang.String[] args)
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mark_

protected int mark_

tableSize_

protected int tableSize_

firstPoint_

protected int firstPoint_

lastPoint_

protected int lastPoint_

markHeight_

protected double markHeight_

fillMark_

protected int fillMark_

fill_

protected boolean fill_

circle_

protected boolean circle_

markTable

protected static final int[][] markTable

table

protected static final int[] table
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.


main

public static void main(java.lang.String[] args)

toString

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