|
SGT Home | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--gov.noaa.pmel.sgt.LineAttribute
Sets the rendering style for line data.
Color, width, and dash characteristics are
LineAttribute properties.
LineCartesianRenderer,
ContourLevels, Serialized Form| Field Summary | |
static int |
CAP_BUTT
Cap styles |
static int |
CAP_ROUND
|
static int |
CAP_SQUARE
|
static int |
DASHED
Dashed line style. |
static int |
HEAVY
Heavy line style |
static int |
HIGHLIGHT
Highlighted line style. |
static int |
JOIN_BEVEL
|
static int |
JOIN_MITER
Join styles |
static int |
JOIN_ROUND
|
static int |
MARK
Mark line style. |
static int |
MARK_LINE
Mark with connecting lines style. |
static int |
SOLID
Solid line style. |
static int |
STROKE
Stroke. |
| Constructor Summary | |
LineAttribute()
Default constructor. |
|
LineAttribute(int style)
Construct LineAttribute with Color.black. |
|
LineAttribute(int style,
java.awt.Color color)
LineAttribute constructor. |
|
LineAttribute(int style,
int mark,
java.awt.Color color)
LineAttribute constructor for plot marks. |
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add listener to changes in LineAttribute properties. |
java.lang.Object |
copy()
Copy the LineAttribute. |
int |
getCapStyle()
Get the current line cap style. |
java.awt.Color |
getColor()
Get line Color. |
float[] |
getDashArray()
Get line dash array. |
float |
getDashPhase()
Get line dash phase. |
int |
getMark()
Get plot mark |
double |
getMarkHeightP()
Get mark height |
float |
getMiterLimit()
Get the current miter limit. |
int |
getMiterStyle()
Get the current miter sytle. |
int |
getStyle()
Get line style. |
float |
getWidth()
Get line width. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove change listener. |
void |
setCapStyle(int style)
Set the current line cap style. |
void |
setColor(java.awt.Color c)
Set the line Color. |
void |
setDashArray(float[] dashes)
Set the dash characteristics. |
void |
setDashPhase(float phase)
Set line dash phase. |
void |
setMark(int mark)
Set plot mark Property Change: mark. |
void |
setMarkHeightP(double markh)
Set mark height. |
void |
setMiterLimit(float limit)
Set the miter limit. |
void |
setMiterStyle(int style)
Set the current miter style. |
void |
setStyle(int st)
Set the line style. |
void |
setWidth(float t)
Set the line width in physical units. |
java.lang.String |
toString()
Get a String representation of the
LineAttribute. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int SOLID
public static final int DASHED
public static final int HEAVY
public static final int HIGHLIGHT
public static final int MARK
public static final int MARK_LINE
public static final int STROKE
public static final int CAP_BUTT
public static final int CAP_ROUND
public static final int CAP_SQUARE
public static final int JOIN_MITER
public static final int JOIN_ROUND
public static final int JOIN_BEVEL
| Constructor Detail |
public LineAttribute()
public LineAttribute(int style)
LineAttribute with Color.black.
public LineAttribute(int style,
java.awt.Color color)
LineAttribute constructor.style - line stylecolor - line ColorColor
public LineAttribute(int style,
int mark,
java.awt.Color color)
LineAttribute constructor for plot marks.style - line sytlemark - plot markcolor - line Color| Method Detail |
public java.lang.Object copy()
LineAttribute.LineAttributepublic void setMarkHeightP(double markh)
markHeightP.markh - mark heightpublic double getMarkHeightP()
public void setStyle(int st)
style.st - line stylepublic void setColor(java.awt.Color c)
Color.
color.c - line Colorpublic void setWidth(float t)
width.t - line widthpublic void setDashArray(float[] dashes)
dashArray.public float[] getDashArray()
public void setDashPhase(float phase)
dashPhase.public float getDashPhase()
public int getStyle()
public java.awt.Color getColor()
Color.Colorpublic float getWidth()
public void setMark(int mark)
mark.mark - the plot markpublic int getMark()
public void setCapStyle(int style)
CAP_BUTT, CAP_ROUND, and
CAP_SQUARE.
capStyle.public int getCapStyle()
public void setMiterStyle(int style)
JOIN_MITER, JOIN_ROUND, and
JOIN_BEVEL.
miterStyle.public int getMiterStyle()
public void setMiterLimit(float limit)
miterLimit.public float getMiterLimit()
public java.lang.String toString()
String representation of the
LineAttribute.toString in interface AttributetoString in class java.lang.ObjectString representationpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
LineAttribute properties.addPropertyChangeListener in interface Attributepublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
AttributeremovePropertyChangeListener in interface Attribute
|
SGT Home | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||