|
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.ContourLineAttribute
Sets the rendering style for a contour line.
Color, width, and dash characteristics are
ContourLineAttribute properties.
LineCartesianRenderer,
ContourLevels,
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 | |
ContourLineAttribute()
Default constructor. |
|
ContourLineAttribute(int style)
Constructor using default Color. |
|
ContourLineAttribute(int style,
java.awt.Color color)
ContourLineAttribute constructor. |
|
ContourLineAttribute(int style,
int mark,
java.awt.Color color)
ContourLineAttribute constructor for plot marks. |
|
| Method Summary | |
java.lang.Object |
copy()
Copy the ContourLineAttribute. |
java.awt.Color |
getLabelColor()
Get the color of the contour label |
java.awt.Font |
getLabelFont()
Get the contour label font |
java.lang.String |
getLabelFormat()
Get the contour label format |
double |
getLabelHeightP()
Get the label height in physical units |
java.lang.String |
getLabelText()
Get the label text. |
boolean |
isAutoLabel()
Is auto labelling on? |
boolean |
isCapStyleOverridden()
Test if cap style is overridden by DefaultContourLineAttribute. |
boolean |
isColorOverridden()
Test if color is overridden by DefaultContourLineAttribute. |
boolean |
isDashArrayOverridden()
Test if dashArray is overridden by DefaultContourLineAttribute. |
boolean |
isDashPhaseOverridden()
Test if dashPhase is overridden by DefaultContourLineAttribute. |
boolean |
isLabelColorOverridden()
Test if labelColor is overridden by DefaultContourLineAttribute. |
boolean |
isLabelEnabled()
Test if the contour label is enabled. |
boolean |
isLabelEnabledOverridden()
Test if labelEnabled is overridden by DefaultContourLineAttribute. |
boolean |
isLabelFontOverridden()
Test if labelFont is overridden by DefaultContourLineAttribute. |
boolean |
isLabelFormatOverridden()
Test if labelFormat is overridden by DefaultContourLineAttribute. |
boolean |
isLabelHeightPOverridden()
Test if labelHeightP is overridden by DefaultContourLineAttribute. |
boolean |
isMiterLimitOverridden()
Test if miter limit is overridden by DefaultContourLineAttribute. |
boolean |
isMiterStyleOverridden()
Test if miter style is overridden by DefaultContourLineAttribute. |
boolean |
isStyleOverridden()
Test if style is overridden by DefaultContourLineAttribute. |
boolean |
isWidthOverridden()
Test if width is overridden by DefaultContourLineAttribute. |
void |
setAutoLabel(boolean auto)
Create contour label from value and format. |
void |
setCapStyle(int style)
Set the current line cap style. |
void |
setCapStyleOverridden(boolean override)
Enable/disable having DefaultContourLineAttribute
override ContourLineAttribute behavior of
cap style. |
void |
setColor(java.awt.Color c)
Set the line Color. |
void |
setColorOverridden(boolean override)
Enable/disable having DefaultContourLineAttribute
override ContourLineAttribute behavior of
color. |
void |
setDashArray(float[] dashes)
Set the dash characteristics. |
void |
setDashArrayOverridden(boolean override)
Enable/disable having DefaultContourLineAttribute
override ContourLineAttribute behavior of
dashArray. |
void |
setDashPhase(float phase)
Set line dash phase. |
void |
setDashPhaseOverridden(boolean override)
Enable/disable having DefaultContourLineAttribute
override ContourLineAttribute behavior of
dashPhase. |
void |
setLabelColor(java.awt.Color color)
Change the color of the contour label Property Change: labelColor. |
void |
setLabelColorOverridden(boolean override)
Enable/disable having DefaultContourLineAttribute
override ContourLineAttribute behavior of
labelColor. |
void |
setLabelEnabled(boolean sle)
Enable/disable the contour label. |
void |
setLabelEnabledOverridden(boolean override)
Enable/disable having DefaultContourLineAttribute
override ContourLineAttribute behavior of
labelEnabled. |
void |
setLabelFont(java.awt.Font font)
Set the contour label font. |
void |
setLabelFontOverridden(boolean override)
Enable/disable having DefaultContourLineAttribute
override ContourLineAttribute behavior of
labelFont. |
void |
setLabelFormat(java.lang.String format)
Set the format for the contour label. |
void |
setLabelFormatOverridden(boolean override)
Enable/disable having DefaultContourLineAttribute
override ContourLineAttribute behavior of
labelFormat. |
void |
setLabelHeightP(double height)
Set the label height in physical units Property Change: labelHeightP. |
void |
setLabelHeightPOverridden(boolean override)
Enable/disable having DefaultContourLineAttribute
override ContourLineAttribute behavior of
labelHeightP. |
void |
setLabelText(java.lang.String label)
Set the text to be used for labelling the contour line. |
void |
setMiterLimit(float t)
Set the miter limit. |
void |
setMiterLimitOverridden(boolean override)
Enable/disable having DefaultContourLineAttribute
override ContourLineAttribute behavior of
miter limit. |
void |
setMiterStyle(int style)
Set the current miter style. |
void |
setMiterStyleOverridden(boolean override)
Enable/disable having DefaultContourLineAttribute
override ContourLineAttribute behavior of
miter style. |
void |
setStyle(int st)
Set the line style. |
void |
setStyleOverridden(boolean override)
Enable/disable having DefaultContourLineAttribute
override ContourLineAttribute behavior of
style. |
void |
setWidth(float t)
Set the line width in physical units. |
void |
setWidthOverridden(boolean override)
Enable/disable having DefaultContourLineAttribute
override ContourLineAttribute behavior of
width. |
java.lang.String |
toString()
Get a String representation of the
LineAttribute. |
| Methods inherited from class gov.noaa.pmel.sgt.LineAttribute |
addPropertyChangeListener, equals, getCapStyle, getColor, getDashArray, getDashPhase, getId, getMark, getMarkHeightP, getMiterLimit, getMiterStyle, getStyle, getWidth, isBatch, removePropertyChangeListener, setBatch, setBatch, setId, setMark, setMarkHeightP |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ContourLineAttribute()
public ContourLineAttribute(int style)
labelColor = Color.black
labelHeightP = 0.16
labelFont = null
labelFormat = ""
public ContourLineAttribute(int style,
java.awt.Color color)
ContourLineAttribute constructor.
style - line stylecolor - line ColorColor
public ContourLineAttribute(int style,
int mark,
java.awt.Color color)
ContourLineAttribute constructor for plot marks.
style - line sytlemark - plot markcolor - line Color| Method Detail |
public java.lang.Object copy()
ContourLineAttribute.
copy in class LineAttributeContourLineAttributepublic void setLabelText(java.lang.String label)
labelText.
public java.lang.String getLabelText()
public void setLabelEnabled(boolean sle)
labelEnabled.
public boolean isLabelEnabled()
public void setLabelColor(java.awt.Color color)
labelColor.
public java.awt.Color getLabelColor()
public void setLabelHeightP(double height)
labelHeightP.
public double getLabelHeightP()
public void setLabelFont(java.awt.Font font)
labelFont.
public java.awt.Font getLabelFont()
public void setLabelFormat(java.lang.String format)
Format.
labelFormat.
Formatpublic java.lang.String getLabelFormat()
public void setAutoLabel(boolean auto)
autoLabel.
public boolean isAutoLabel()
public boolean isLabelEnabledOverridden()
DefaultContourLineAttribute.
public void setLabelEnabledOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute behavior of
labelEnabled.
labelEnabledOverridden.
DefaultContourLineAttributepublic boolean isLabelColorOverridden()
DefaultContourLineAttribute.
public void setLabelColorOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute behavior of
labelColor.
labelColorOverridden.
DefaultContourLineAttributepublic boolean isLabelHeightPOverridden()
DefaultContourLineAttribute.
public void setLabelHeightPOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute behavior of
labelHeightP.
labelHeightPOverridden.
DefaultContourLineAttributepublic boolean isLabelFontOverridden()
DefaultContourLineAttribute.
public void setLabelFontOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute behavior of
labelFont.
labelFontOverridden.
DefaultContourLineAttributepublic boolean isLabelFormatOverridden()
DefaultContourLineAttribute.
public void setLabelFormatOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute behavior of
labelFormat.
labelFormatOverridden.
DefaultContourLineAttributepublic void setDashArray(float[] dashes)
LineAttributedashArray.
setDashArray in class LineAttributepublic boolean isDashArrayOverridden()
DefaultContourLineAttribute.
public void setDashArrayOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute behavior of
dashArray.
dashArrayOverridden.
DefaultContourLineAttributepublic void setDashPhase(float phase)
LineAttributedashPhase.
setDashPhase in class LineAttributepublic boolean isDashPhaseOverridden()
DefaultContourLineAttribute.
public void setDashPhaseOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute behavior of
dashPhase.
dashPhaseOverridden.
DefaultContourLineAttributepublic void setStyle(int st)
LineAttributestyle.
setStyle in class LineAttributest - line stylepublic boolean isStyleOverridden()
DefaultContourLineAttribute.
public void setStyleOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute behavior of
style.
styleOverridden.
DefaultContourLineAttributepublic void setColor(java.awt.Color c)
LineAttributeColor.
color.
setColor in class LineAttributec - line Colorpublic boolean isColorOverridden()
DefaultContourLineAttribute.
public void setColorOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute behavior of
color.
colorOverridden.
DefaultContourLineAttributepublic void setWidth(float t)
LineAttributewidth.
setWidth in class LineAttributet - line widthpublic boolean isWidthOverridden()
DefaultContourLineAttribute.
public void setWidthOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute behavior of
width.
widthOverridden.
DefaultContourLineAttributepublic void setCapStyle(int style)
LineAttributeCAP_BUTT, CAP_ROUND, and
CAP_SQUARE.
capStyle.
setCapStyle in class LineAttributepublic boolean isCapStyleOverridden()
DefaultContourLineAttribute.
public void setCapStyleOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute behavior of
cap style.
capStyleOverridden.
DefaultContourLineAttributepublic void setMiterStyle(int style)
LineAttributeJOIN_MITER, JOIN_ROUND, and
JOIN_BEVEL.
miterStyle.
setMiterStyle in class LineAttributepublic boolean isMiterStyleOverridden()
DefaultContourLineAttribute.
public void setMiterStyleOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute behavior of
miter style.
miterStyleOverridden.
DefaultContourLineAttributepublic void setMiterLimit(float t)
LineAttributemiterLimit.
setMiterLimit in class LineAttributepublic boolean isMiterLimitOverridden()
DefaultContourLineAttribute.
public void setMiterLimitOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute behavior of
miter limit.
miterLimitOverridden.
DefaultContourLineAttributepublic java.lang.String toString()
LineAttributeString representation of the
LineAttribute.
toString in interface AttributetoString in class LineAttributeString representation
|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||