|
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.LineAttribute
|
+--gov.noaa.pmel.sgt.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 Form| Field Summary |
| Fields inherited from class gov.noaa.pmel.sgt.LineAttribute |
CAP_BUTT, CAP_ROUND, CAP_SQUARE, 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, getId, getMark, getMarkHeightP, isBatch, removePropertyChangeListener, setBatch, setBatch, setCapStyle, setColor, setDashArray, setDashPhase, setId, setMark, setMarkHeightP, setMiterLimit, setMiterStyle, setWidth |
| Methods inherited from class java.lang.Object |
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 LineAttributepublic float getDashPhase()
ContourLineAttribute if it exists and has
dashPhaseOverrideen set to false.
getDashPhase in class LineAttributepublic void setStyle(int st)
setStyle in class LineAttributest - line stylepublic int getStyle()
ContourLineAttribute if it exists and has
styleOverrideen set to false.
getStyle in class LineAttributepublic java.awt.Color getColor()
ContourLineAttribute if it exists and has
colorOverrideen set to false.
getColor in class LineAttributeColorpublic float getWidth()
ContourLineAttribute if it exists and has
widthOverrideen set to false.
getWidth in class LineAttributepublic int getCapStyle()
ContourLineAttribute if it exists and has
capStyleOverrideen set to false.
getCapStyle in class LineAttributepublic int getMiterStyle()
ContourLineAttribute if it exists and has
miterStyleOverrideen set to false.
getMiterStyle in class LineAttributepublic float getMiterLimit()
ContourLineAttribute if it exists and has
miterLimitOverrideen set to false.
getMiterLimit in class LineAttributepublic java.lang.String toString()
LineAttributeString representation of the
LineAttribute.
toString in interface AttributetoString in class LineAttributeString representationpublic java.lang.Object copy()
LineAttributeLineAttribute.
copy in class LineAttributeLineAttribute
|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||