gov.noaa.pmel.sgt
Class PointAttribute

java.lang.Object
  |
  +--gov.noaa.pmel.sgt.PointAttribute
All Implemented Interfaces:
Attribute, java.lang.Cloneable

public class PointAttribute
extends java.lang.Object
implements Attribute, java.lang.Cloneable

Set the rendereing style for point data. Color, width, and mark type are PointAttribute properties.

Since:
1.0
Version:
$Revision: 1.7 $, $Date: 2001/12/13 19:07:04 $
Author:
Donald Denbo
See Also:
CartesianGraph, PointCartesianRenderer, PlotMark

Field Summary
static int CENTERED
          Position label over the point
static int E
          Position label east of the point
static int N
          Position label north of the point
static int NE
          Position label northeast of the point
static int NW
          Position label northwest of the point
static int S
          Position label south of the point
static int SE
          Position label southeast of the point
static int SW
          Position label southwest of the point
static int W
          Position label west of the point
 
Constructor Summary
PointAttribute()
          Default constructor.
PointAttribute(int mark, java.awt.Color color)
          Constructor for plot marks.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Add listener to changes in PointAttribute properties.
 PointAttribute copy()
          Copy the PointAttribute.
 java.awt.Color getColor()
          Get Point Color.
 java.awt.Color getLabelColor()
          Get label Color.
 java.awt.Font getLabelFont()
          Get label Font.
 double getLabelHeightP()
          Get label height.
 int getLabelPosition()
          Get label position.
 int getMark()
          Get plot mark
 double getMarkHeightP()
          Get mark height
 double getWidthP()
          Get Point width.
 boolean isDrawLabel()
          Is label drawing on?
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Remove change listener.
 void setColor(java.awt.Color c)
          Set the point Color.
 void setDrawLabel(boolean dl)
          Set label drawing.
 void setLabelColor(java.awt.Color col)
          Set label Color.
 void setLabelFont(java.awt.Font font)
          Set label Font.
 void setLabelHeightP(double h)
          Set label height.
 void setLabelPosition(int pos)
          Set label position.
 void setMark(int mark)
          Set plot mark
Property Change: mark.
 void setMarkHeightP(double markh)
          Set mark height.
 void setWidthP(double t)
          Set the Point width in physical units.
 java.lang.String toString()
          Get a String representation of the PointAttribute.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CENTERED

public static final int CENTERED
Position label over the point

N

public static final int N
Position label north of the point

NE

public static final int NE
Position label northeast of the point

E

public static final int E
Position label east of the point

SE

public static final int SE
Position label southeast of the point

S

public static final int S
Position label south of the point

SW

public static final int SW
Position label southwest of the point

W

public static final int W
Position label west of the point

NW

public static final int NW
Position label northwest of the point
Constructor Detail

PointAttribute

public PointAttribute()
Default constructor. Default mark is 2 and default color is red.

PointAttribute

public PointAttribute(int mark,
                      java.awt.Color color)
Constructor for plot marks.
Parameters:
mark - plot mark
color - Point color
See Also:
PlotMark
Method Detail

copy

public PointAttribute copy()
Copy the PointAttribute.
Returns:
new PointAttribute

setMarkHeightP

public void setMarkHeightP(double markh)
Set mark height.
Property Change: markHeightP.
Parameters:
markh - mark height

getMarkHeightP

public double getMarkHeightP()
Get mark height
Returns:
mark height

setColor

public void setColor(java.awt.Color c)
Set the point Color.
Property Change: color.
Parameters:
c - point Color

setWidthP

public void setWidthP(double t)
Set the Point width in physical units.
Property Change: widthP.
Parameters:
t - Point width

getColor

public java.awt.Color getColor()
Get Point Color.
Returns:
Point Color

getWidthP

public double getWidthP()
Get Point width.
Returns:
Point width in physcial coordinates.

setMark

public void setMark(int mark)
Set plot mark
Property Change: mark.
Parameters:
mark - the plot mark
See Also:
PlotMark

getMark

public int getMark()
Get plot mark
Returns:
plot mark
See Also:
PlotMark

setLabelPosition

public void setLabelPosition(int pos)
Set label position.
Property Change: labelPosition.

getLabelPosition

public int getLabelPosition()
Get label position.

setLabelColor

public void setLabelColor(java.awt.Color col)
Set label Color.
Property Change: labelColor.

getLabelColor

public java.awt.Color getLabelColor()
Get label Color.

setLabelFont

public void setLabelFont(java.awt.Font font)
Set label Font.
Property Change: labelFont.

getLabelFont

public java.awt.Font getLabelFont()
Get label Font.

setLabelHeightP

public void setLabelHeightP(double h)
Set label height.
Property Change: labelHeightP.

getLabelHeightP

public double getLabelHeightP()
Get label height.

setDrawLabel

public void setDrawLabel(boolean dl)
Set label drawing.
Property Change: drawLabel.

isDrawLabel

public boolean isDrawLabel()
Is label drawing on?

toString

public java.lang.String toString()
Get a String representation of the PointAttribute.
Specified by:
toString in interface Attribute
Overrides:
toString in class java.lang.Object
Returns:
String representation

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add listener to changes in PointAttribute properties.
Specified by:
addPropertyChangeListener in interface Attribute

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Description copied from interface: Attribute
Remove change listener.
Specified by:
removePropertyChangeListener in interface Attribute


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