|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.pmel.sgt.LineAttribute
gov.noaa.pmel.sgt.DefaultContourLineAttribute
public class DefaultContourLineAttribute
Sets the default rendering style for contour line data.
Color
, width, and dash characteristics are
DefaultContourLineAttribute
properties. For individual
contour lines, the characteristics can be overridden by
ContourLineAttribute
when used with
ContourLevels
.
GridCartesianRenderer
,
ContourLevels
,
ContourLineAttribute
,
Serialized FormField Summary |
---|
Fields inherited from class gov.noaa.pmel.sgt.LineAttribute |
---|
CAP_BUTT, CAP_ROUND, CAP_SQUARE, changes_, DASHED, HEAVY, HIGHLIGHT, JOIN_BEVEL, JOIN_MITER, JOIN_ROUND, MARK, MARK_LINE, SOLID, STROKE |
Constructor Summary | |
---|---|
DefaultContourLineAttribute()
Default constructor. |
Method Summary | |
---|---|
java.lang.Object |
copy()
Copy the LineAttribute . |
int |
getCapStyle()
Get the contour line cap style. |
java.awt.Color |
getColor()
Get the contour line color. |
ContourLineAttribute |
getContourLineAttribute()
Get the associated ContourLineAttribute |
float[] |
getDashArray()
Get dash array. |
float |
getDashPhase()
Get the dash phase. |
java.awt.Color |
getLabelColor()
Get the contour label color. |
java.awt.Font |
getLabelFont()
Get the contour label font. |
java.lang.String |
getLabelFormat()
Get the contour label format. |
double |
getLabelHeightP()
Get the contour label height. |
java.lang.String |
getLabelText()
Return label text from associated ContourLineAttribute , if none return empty string. |
float |
getMiterLimit()
Get the contour line miter limit. |
int |
getMiterStyle()
Get the contour line miter style. |
int |
getSignificantDigits()
Get the number of significant digits for auto labelling. |
int |
getStyle()
Get the contour line style. |
float |
getWidth()
Get the contour line width. |
boolean |
isAutoLabel()
Test if auto label is enabled. |
boolean |
isLabelEnabled()
Test if the contour label is enabled. |
DefaultContourLineAttribute |
setContourLineAttribute(ContourLineAttribute attr)
Set the ContourLineAttribute that will potentially
override attributes. |
void |
setLabelColor(java.awt.Color color)
Set the default contour label color Property Change: labelColor . |
void |
setLabelEnabled(boolean sle)
Enable/disable the contour label. |
void |
setLabelFont(java.awt.Font font)
Set the default contour label font. |
void |
setLabelFormat(java.lang.String format)
Set the default contour label format. |
void |
setLabelHeightP(double height)
Set the default contour label height. |
void |
setLabelText(java.lang.String label)
Set label text for associated ContourLineAttribute . |
void |
setSignificantDigits(int sig)
Set the number of significant digits for auto labelling. |
void |
setStyle(int st)
Override the default setStyle. |
java.lang.String |
toString()
Get a String representation of the
LineAttribute . |
Methods inherited from class gov.noaa.pmel.sgt.LineAttribute |
---|
addPropertyChangeListener, equals, firePropertyChange, getId, getMark, getMarkHeightP, isBatch, removePropertyChangeListener, setBatch, setBatch, setCapStyle, setColor, setDashArray, setDashPhase, setId, setMark, setMarkHeightP, setMiterLimit, setMiterStyle, setWidth |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultContourLineAttribute()
labelColor = Color.black
labelHeightP = 0.16
labelFont = null
labelFormat = ""
sigDigits = 2
Method Detail |
---|
public DefaultContourLineAttribute setContourLineAttribute(ContourLineAttribute attr)
ContourLineAttribute
that will potentially
override attributes.
public ContourLineAttribute getContourLineAttribute()
ContourLineAttribute
public void setLabelText(java.lang.String label)
ContourLineAttribute
.
public java.lang.String getLabelText()
ContourLineAttribute
, if none return empty string.
public void setLabelEnabled(boolean sle)
labelEnabled
.
public boolean isLabelEnabled()
ContourLineAttribute
if it exists and has
labelEnabledOverrideen set to false
.
public void setLabelColor(java.awt.Color color)
labelColor
.
public java.awt.Color getLabelColor()
ContourLineAttribute
if it exists and has
labelColorOverrideen set to false
.
public void setLabelHeightP(double height)
labelHeightP
.
public double getLabelHeightP()
ContourLineAttribute
if it exists and has
labelHeightPOverrideen set to false
.
public void setLabelFont(java.awt.Font font)
labelFont
.
public java.awt.Font getLabelFont()
ContourLineAttribute
if it exists and has
labelFontOverrideen set to false
.
public void setSignificantDigits(int sig)
significantDigits
.
public int getSignificantDigits()
public void setLabelFormat(java.lang.String format)
labelFormat
.
public java.lang.String getLabelFormat()
ContourLineAttribute
if it exists and has
labelFormatOverrideen set to false
.
public boolean isAutoLabel()
ContourLineAttribute
if it exists otherwise always
returns true
.
public float[] getDashArray()
ContourLineAttribute
if it exists and has
dashArrayOverrideen set to false
.
getDashArray
in class LineAttribute
public float getDashPhase()
ContourLineAttribute
if it exists and has
dashPhaseOverrideen set to false
.
getDashPhase
in class LineAttribute
public void setStyle(int st)
setStyle
in class LineAttribute
st
- line stylepublic int getStyle()
ContourLineAttribute
if it exists and has
styleOverrideen set to false
.
getStyle
in class LineAttribute
public java.awt.Color getColor()
ContourLineAttribute
if it exists and has
colorOverrideen set to false
.
getColor
in class LineAttribute
Color
public float getWidth()
ContourLineAttribute
if it exists and has
widthOverrideen set to false
.
getWidth
in class LineAttribute
public int getCapStyle()
ContourLineAttribute
if it exists and has
capStyleOverrideen set to false
.
getCapStyle
in class LineAttribute
public int getMiterStyle()
ContourLineAttribute
if it exists and has
miterStyleOverrideen set to false
.
getMiterStyle
in class LineAttribute
public float getMiterLimit()
ContourLineAttribute
if it exists and has
miterLimitOverrideen set to false
.
getMiterLimit
in class LineAttribute
public java.lang.String toString()
LineAttribute
String
representation of the
LineAttribute
.
toString
in interface Attribute
toString
in class LineAttribute
String
representationpublic java.lang.Object copy()
LineAttribute
LineAttribute
.
copy
in class LineAttribute
LineAttribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |