|
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 | +--gov.noaa.pmel.sgt.ContourLineAttribute
Sets the rendering style for a contour line.
Color
, width, and dash characteristics are
ContourLineAttribute
properties.
LineCartesianRenderer
,
ContourLevels
, Serialized FormFields 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, getCapStyle, getColor, getDashArray, getDashPhase, getMark, getMarkHeightP, getMiterLimit, getMiterStyle, getStyle, getWidth, removePropertyChangeListener, setMark, setMarkHeightP |
Methods inherited from class java.lang.Object |
equals, 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 Color
Color
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 LineAttribute
ContourLineAttribute
public 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
.Format
public 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
.DefaultContourLineAttribute
public boolean isLabelColorOverridden()
DefaultContourLineAttribute
.public void setLabelColorOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute
behavior of
labelColor.
labelColorOverridden
.DefaultContourLineAttribute
public boolean isLabelHeightPOverridden()
DefaultContourLineAttribute
.public void setLabelHeightPOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute
behavior of
labelHeightP.
labelHeightPOverridden
.DefaultContourLineAttribute
public boolean isLabelFontOverridden()
DefaultContourLineAttribute
.public void setLabelFontOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute
behavior of
labelFont.
labelFontOverridden
.DefaultContourLineAttribute
public boolean isLabelFormatOverridden()
DefaultContourLineAttribute
.public void setLabelFormatOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute
behavior of
labelFormat.
labelFormatOverridden
.DefaultContourLineAttribute
public void setDashArray(float[] dashes)
LineAttribute
dashArray
.setDashArray
in class LineAttribute
public boolean isDashArrayOverridden()
DefaultContourLineAttribute
.public void setDashArrayOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute
behavior of
dashArray.
dashArrayOverridden
.DefaultContourLineAttribute
public void setDashPhase(float phase)
LineAttribute
dashPhase
.setDashPhase
in class LineAttribute
public boolean isDashPhaseOverridden()
DefaultContourLineAttribute
.public void setDashPhaseOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute
behavior of
dashPhase.
dashPhaseOverridden
.DefaultContourLineAttribute
public void setStyle(int st)
LineAttribute
style
.setStyle
in class LineAttribute
gov.noaa.pmel.sgt.LineAttribute
st
- line stylepublic boolean isStyleOverridden()
DefaultContourLineAttribute
.public void setStyleOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute
behavior of
style.
styleOverridden
.DefaultContourLineAttribute
public void setColor(java.awt.Color c)
LineAttribute
Color
.
color
.setColor
in class LineAttribute
gov.noaa.pmel.sgt.LineAttribute
c
- line Color
public boolean isColorOverridden()
DefaultContourLineAttribute
.public void setColorOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute
behavior of
color.
colorOverridden
.DefaultContourLineAttribute
public void setWidth(float t)
LineAttribute
width
.setWidth
in class LineAttribute
gov.noaa.pmel.sgt.LineAttribute
t
- line widthpublic boolean isWidthOverridden()
DefaultContourLineAttribute
.public void setWidthOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute
behavior of
width.
widthOverridden
.DefaultContourLineAttribute
public void setCapStyle(int style)
LineAttribute
CAP_BUTT
, CAP_ROUND
, and
CAP_SQUARE
.
capStyle
.setCapStyle
in class LineAttribute
public boolean isCapStyleOverridden()
DefaultContourLineAttribute
.public void setCapStyleOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute
behavior of
cap style.
capStyleOverridden
.DefaultContourLineAttribute
public void setMiterStyle(int style)
LineAttribute
JOIN_MITER
, JOIN_ROUND
, and
JOIN_BEVEL
.
miterStyle
.setMiterStyle
in class LineAttribute
public boolean isMiterStyleOverridden()
DefaultContourLineAttribute
.public void setMiterStyleOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute
behavior of
miter style.
miterStyleOverridden
.DefaultContourLineAttribute
public void setMiterLimit(float t)
LineAttribute
miterLimit
.setMiterLimit
in class LineAttribute
public boolean isMiterLimitOverridden()
DefaultContourLineAttribute
.public void setMiterLimitOverridden(boolean override)
DefaultContourLineAttribute
override ContourLineAttribute
behavior of
miter limit.
miterLimitOverridden
.DefaultContourLineAttribute
public java.lang.String toString()
LineAttribute
String
representation of the
LineAttribute
.toString
in class LineAttribute
gov.noaa.pmel.sgt.LineAttribute
String
representation
|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |