|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.pmel.sgt.LineAttribute
public class LineAttribute
Sets the rendering style for line data.
Color
, width, and dash characteristics are
LineAttribute
properties.
LineCartesianRenderer
,
ContourLevels
,
Serialized FormField Summary | |
---|---|
static int |
CAP_BUTT
Cap styles |
static int |
CAP_ROUND
|
static int |
CAP_SQUARE
|
protected java.beans.PropertyChangeSupport |
changes_
|
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 . |
boolean |
equals(java.lang.Object obj)
|
protected void |
firePropertyChange(java.lang.String name,
java.lang.Object oldValue,
java.lang.Object newValue)
|
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. |
java.lang.String |
getId()
Get attribute id. |
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. |
boolean |
isBatch()
Is the attribute in batch mode? |
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 |
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 |
setId(java.lang.String id)
Set attribute id. |
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 |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected transient java.beans.PropertyChangeSupport changes_
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
PlotMark
,
Constant Field Valuespublic 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 Color
Color
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
.
LineAttribute
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public 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 Color
public 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
.
Color
public 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 Attribute
toString
in class java.lang.Object
String
representationpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
LineAttribute
properties.
addPropertyChangeListener
in interface Attribute
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Attribute
removePropertyChangeListener
in interface Attribute
public void setId(java.lang.String id)
Attribute
setId
in interface Attribute
public java.lang.String getId()
Attribute
getId
in interface Attribute
protected void firePropertyChange(java.lang.String name, java.lang.Object oldValue, java.lang.Object newValue)
public void setBatch(boolean batch)
Attribute
setBatch
in interface Attribute
public void setBatch(boolean batch, boolean local)
Attribute
AttributeChangeEvent
will be set local.
setBatch
in interface Attribute
public boolean isBatch()
Attribute
isBatch
in interface Attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |