|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--gov.noaa.pmel.sgt.PointAttribute
Set the rendereing style for point data.
Color, width, and mark type are
PointAttribute properties.
CartesianGraph,
PointCartesianRenderer,
PlotMark,
Serialized Form| 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. |
boolean |
equals(java.lang.Object obj)
|
java.awt.Color |
getColor()
Get Point Color. |
java.lang.String |
getId()
Get attribute id. |
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 |
isBatch()
Is the attribute in batch mode? |
boolean |
isDrawLabel()
Is label drawing on? |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove change listener. |
void |
setBatch(boolean batch)
Batch the changes to the attribute. |
void |
setBatch(boolean batch,
boolean local)
Batch the changes to the attribute and set local flag. |
void |
setColor(java.awt.Color c)
Set the point Color. |
void |
setDrawLabel(boolean dl)
Set label drawing. |
void |
setId(java.lang.String id)
Set attribute id. |
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 |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int CENTERED
public static final int N
public static final int NE
public static final int E
public static final int SE
public static final int S
public static final int SW
public static final int W
public static final int NW
| Constructor Detail |
public PointAttribute()
public PointAttribute(int mark,
java.awt.Color color)
mark - plot markcolor - Point colorPlotMark| Method Detail |
public PointAttribute copy()
PointAttribute.
PointAttributepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void setMarkHeightP(double markh)
markHeightP.
markh - mark heightpublic double getMarkHeightP()
public void setColor(java.awt.Color c)
Color.
color.
c - point Colorpublic void setWidthP(double t)
widthP.
t - Point widthpublic java.awt.Color getColor()
Color.
Colorpublic double getWidthP()
public void setMark(int mark)
mark.
mark - the plot markPlotMarkpublic int getMark()
PlotMarkpublic void setLabelPosition(int pos)
labelPosition.
public int getLabelPosition()
public void setLabelColor(java.awt.Color col)
Color.
labelColor.
public java.awt.Color getLabelColor()
Color.
public void setLabelFont(java.awt.Font font)
Font.
labelFont.
public java.awt.Font getLabelFont()
Font.
public void setLabelHeightP(double h)
labelHeightP.
public double getLabelHeightP()
public void setDrawLabel(boolean dl)
drawLabel.
public boolean isDrawLabel()
public java.lang.String toString()
String representation of the
PointAttribute.
toString in interface AttributetoString in class java.lang.ObjectString representationpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
PointAttribute properties.
addPropertyChangeListener in interface Attributepublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Attribute
removePropertyChangeListener in interface Attributepublic void setId(java.lang.String id)
Attribute
setId in interface Attributepublic java.lang.String getId()
Attribute
getId in interface Attributepublic void setBatch(boolean batch)
Attribute
setBatch in interface Attribute
public void setBatch(boolean batch,
boolean local)
AttributeAttributeChangeEvent will be set local.
setBatch in interface Attributepublic boolean isBatch()
Attribute
isBatch in interface Attribute
|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||