sgtplot
Class ContourLineAttribute
- java.lang.Object
-
- sgtplot.LineAttribute
-
- sgtplot.ContourLineAttribute
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Attribute
public class ContourLineAttribute extends LineAttribute
Sets the rendering style for a contour line.Color, width, and dash characteristics areContourLineAttributeproperties.- Since:
- 2.0
- See Also:
LineCartesianRenderer,ContourLevels, Serialized Form
-
-
Field Summary
-
Fields inherited from class sgtplot.LineAttribute
CAP_BUTT, CAP_ROUND, CAP_SQUARE, DASHED, HEAVY, HIGHLIGHT, JOIN_BEVEL, JOIN_MITER, JOIN_ROUND, MARK, MARK_LINE, SOLID, STROKE
-
-
Constructor Summary
Constructors Constructor and Description ContourLineAttribute()Default constructor.ContourLineAttribute(int style)Constructor using default Color.ContourLineAttribute(int style, java.awt.Color color)ContourLineAttributeconstructor.ContourLineAttribute(int style, int mark, java.awt.Color color)ContourLineAttributeconstructor for plot marks.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectcopy()Copy theContourLineAttribute.java.awt.ColorgetLabelColor()Get the color of the contour labeljava.awt.FontgetLabelFont()Get the contour label fontjava.lang.StringgetLabelFormat()Get the contour label formatdoublegetLabelHeightP()Get the label height in physical unitsjava.lang.StringgetLabelText()Get the label text.booleanisAutoLabel()Is auto labelling on?booleanisCapStyleOverridden()Test if cap style is overridden byDefaultContourLineAttribute.booleanisColorOverridden()Test if color is overridden byDefaultContourLineAttribute.booleanisDashArrayOverridden()Test if dashArray is overridden byDefaultContourLineAttribute.booleanisDashPhaseOverridden()Test if dashPhase is overridden byDefaultContourLineAttribute.booleanisLabelColorOverridden()Test if labelColor is overridden byDefaultContourLineAttribute.booleanisLabelEnabled()Test if the contour label is enabled.booleanisLabelEnabledOverridden()Test if labelEnabled is overridden byDefaultContourLineAttribute.booleanisLabelFontOverridden()Test if labelFont is overridden byDefaultContourLineAttribute.booleanisLabelFormatOverridden()Test if labelFormat is overridden byDefaultContourLineAttribute.booleanisLabelHeightPOverridden()Test if labelHeightP is overridden byDefaultContourLineAttribute.booleanisMiterLimitOverridden()Test if miter limit is overridden byDefaultContourLineAttribute.booleanisMiterStyleOverridden()Test if miter style is overridden byDefaultContourLineAttribute.booleanisStyleOverridden()Test if style is overridden byDefaultContourLineAttribute.booleanisWidthOverridden()Test if width is overridden byDefaultContourLineAttribute.voidsetAutoLabel(boolean auto)Create contour label from value and format.voidsetCapStyle(int style)Set the current line cap style.voidsetCapStyleOverridden(boolean override)Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of cap style.voidsetColor(java.awt.Color c)Set the lineColor.voidsetColorOverridden(boolean override)Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of color.voidsetDashArray(float[] dashes)Set the dash characteristics.voidsetDashArrayOverridden(boolean override)Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of dashArray.voidsetDashPhase(float phase)Set line dash phase.voidsetDashPhaseOverridden(boolean override)Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of dashPhase.voidsetLabelColor(java.awt.Color color)Change the color of the contour label
Property Change:labelColor.voidsetLabelColorOverridden(boolean override)Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of labelColor.voidsetLabelEnabled(boolean sle)Enable/disable the contour label.voidsetLabelEnabledOverridden(boolean override)Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of labelEnabled.voidsetLabelFont(java.awt.Font font)Set the contour label font.voidsetLabelFontOverridden(boolean override)Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of labelFont.voidsetLabelFormat(java.lang.String format)Set the format for the contour label.voidsetLabelFormatOverridden(boolean override)Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of labelFormat.voidsetLabelHeightP(double height)Set the label height in physical units
Property Change:labelHeightP.voidsetLabelHeightPOverridden(boolean override)Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of labelHeightP.voidsetLabelText(java.lang.String label)Set the text to be used for labelling the contour line.voidsetMiterLimit(float t)Set the miter limit.voidsetMiterLimitOverridden(boolean override)Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of miter limit.voidsetMiterStyle(int style)Set the current miter style.voidsetMiterStyleOverridden(boolean override)Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of miter style.voidsetStyle(int st)Set the line style.voidsetStyleOverridden(boolean override)Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of style.voidsetWidth(float t)Set the line width in physical units.voidsetWidthOverridden(boolean override)Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of width.java.lang.StringtoString()Get aStringrepresentation of theLineAttribute.-
Methods inherited from class sgtplot.LineAttribute
addPropertyChangeListener, equals, getCapStyle, getColor, getDashArray, getDashPhase, getId, getMark, getMarkHeightP, getMiterLimit, getMiterStyle, getStyle, getWidth, isBatch, removePropertyChangeListener, setBatch, setBatch, setId, setMark, setMarkHeightP
-
-
-
-
Constructor Detail
-
ContourLineAttribute
public ContourLineAttribute()
Default constructor.
-
ContourLineAttribute
public ContourLineAttribute(int style)
Constructor using default Color. Default are:labelColor =
Color.blacklabelHeightP = 0.16 labelFont = null labelFormat = ""
-
ContourLineAttribute
public ContourLineAttribute(int style, java.awt.Color color)ContourLineAttributeconstructor.- Parameters:
style- line stylecolor- lineColor- See Also:
Color
-
ContourLineAttribute
public ContourLineAttribute(int style, int mark, java.awt.Color color)ContourLineAttributeconstructor for plot marks.- Parameters:
style- line sytlemark- plot markcolor- lineColor
-
-
Method Detail
-
copy
public java.lang.Object copy()
Copy theContourLineAttribute.- Overrides:
copyin classLineAttribute- Returns:
- new
ContourLineAttribute
-
setLabelText
public void setLabelText(java.lang.String label)
Set the text to be used for labelling the contour line.
Property Change:labelText.
-
getLabelText
public java.lang.String getLabelText()
Get the label text.
-
setLabelEnabled
public void setLabelEnabled(boolean sle)
Enable/disable the contour label.
Property Change:labelEnabled.
-
isLabelEnabled
public boolean isLabelEnabled()
Test if the contour label is enabled.
-
setLabelColor
public void setLabelColor(java.awt.Color color)
Change the color of the contour label
Property Change:labelColor.
-
getLabelColor
public java.awt.Color getLabelColor()
Get the color of the contour label
-
setLabelHeightP
public void setLabelHeightP(double height)
Set the label height in physical units
Property Change:labelHeightP.
-
getLabelHeightP
public double getLabelHeightP()
Get the label height in physical units
-
setLabelFont
public void setLabelFont(java.awt.Font font)
Set the contour label font.
Property Change:labelFont.
-
getLabelFont
public java.awt.Font getLabelFont()
Get the contour label font
-
setLabelFormat
public void setLabelFormat(java.lang.String format)
Set the format for the contour label. The format is used withFormat.
Property Change:labelFormat.- See Also:
Format
-
getLabelFormat
public java.lang.String getLabelFormat()
Get the contour label format
-
setAutoLabel
public void setAutoLabel(boolean auto)
Create contour label from value and format.
Property Change:autoLabel.
-
isAutoLabel
public boolean isAutoLabel()
Is auto labelling on?
-
isLabelEnabledOverridden
public boolean isLabelEnabledOverridden()
Test if labelEnabled is overridden byDefaultContourLineAttribute.
-
setLabelEnabledOverridden
public void setLabelEnabledOverridden(boolean override)
Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of labelEnabled.
Property Change:labelEnabledOverridden.- See Also:
DefaultContourLineAttribute
-
isLabelColorOverridden
public boolean isLabelColorOverridden()
Test if labelColor is overridden byDefaultContourLineAttribute.
-
setLabelColorOverridden
public void setLabelColorOverridden(boolean override)
Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of labelColor.
Property Change:labelColorOverridden.- See Also:
DefaultContourLineAttribute
-
isLabelHeightPOverridden
public boolean isLabelHeightPOverridden()
Test if labelHeightP is overridden byDefaultContourLineAttribute.
-
setLabelHeightPOverridden
public void setLabelHeightPOverridden(boolean override)
Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of labelHeightP.
Property Change:labelHeightPOverridden.- See Also:
DefaultContourLineAttribute
-
isLabelFontOverridden
public boolean isLabelFontOverridden()
Test if labelFont is overridden byDefaultContourLineAttribute.
-
setLabelFontOverridden
public void setLabelFontOverridden(boolean override)
Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of labelFont.
Property Change:labelFontOverridden.- See Also:
DefaultContourLineAttribute
-
isLabelFormatOverridden
public boolean isLabelFormatOverridden()
Test if labelFormat is overridden byDefaultContourLineAttribute.
-
setLabelFormatOverridden
public void setLabelFormatOverridden(boolean override)
Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of labelFormat.
Property Change:labelFormatOverridden.- See Also:
DefaultContourLineAttribute
-
setDashArray
public void setDashArray(float[] dashes)
Description copied from class:LineAttributeSet the dash characteristics. Lengths are in physical units.
Property Change:dashArray.- Overrides:
setDashArrayin classLineAttribute
-
isDashArrayOverridden
public boolean isDashArrayOverridden()
Test if dashArray is overridden byDefaultContourLineAttribute.
-
setDashArrayOverridden
public void setDashArrayOverridden(boolean override)
Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of dashArray.
Property Change:dashArrayOverridden.- See Also:
DefaultContourLineAttribute
-
setDashPhase
public void setDashPhase(float phase)
Description copied from class:LineAttributeSet line dash phase.
Property Change:dashPhase.- Overrides:
setDashPhasein classLineAttribute
-
isDashPhaseOverridden
public boolean isDashPhaseOverridden()
Test if dashPhase is overridden byDefaultContourLineAttribute.
-
setDashPhaseOverridden
public void setDashPhaseOverridden(boolean override)
Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of dashPhase.
Property Change:dashPhaseOverridden.- See Also:
DefaultContourLineAttribute
-
setStyle
public void setStyle(int st)
Description copied from class:LineAttributeSet the line style.
Property Change:style.- Overrides:
setStylein classLineAttribute- Parameters:
st- line style
-
isStyleOverridden
public boolean isStyleOverridden()
Test if style is overridden byDefaultContourLineAttribute.
-
setStyleOverridden
public void setStyleOverridden(boolean override)
Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of style.
Property Change:styleOverridden.- See Also:
DefaultContourLineAttribute
-
setColor
public void setColor(java.awt.Color c)
Description copied from class:LineAttributeSet the lineColor.
Property Change:color.- Overrides:
setColorin classLineAttribute- Parameters:
c- lineColor
-
isColorOverridden
public boolean isColorOverridden()
Test if color is overridden byDefaultContourLineAttribute.
-
setColorOverridden
public void setColorOverridden(boolean override)
Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of color.
Property Change:colorOverridden.- See Also:
DefaultContourLineAttribute
-
setWidth
public void setWidth(float t)
Description copied from class:LineAttributeSet the line width in physical units.
Property Change:width.- Overrides:
setWidthin classLineAttribute- Parameters:
t- line width
-
isWidthOverridden
public boolean isWidthOverridden()
Test if width is overridden byDefaultContourLineAttribute.
-
setWidthOverridden
public void setWidthOverridden(boolean override)
Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of width.
Property Change:widthOverridden.- See Also:
DefaultContourLineAttribute
-
setCapStyle
public void setCapStyle(int style)
Description copied from class:LineAttributeSet the current line cap style. Cap styles includeCAP_BUTT,CAP_ROUND, andCAP_SQUARE.
Property Change:capStyle.- Overrides:
setCapStylein classLineAttribute
-
isCapStyleOverridden
public boolean isCapStyleOverridden()
Test if cap style is overridden byDefaultContourLineAttribute.
-
setCapStyleOverridden
public void setCapStyleOverridden(boolean override)
Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of cap style.
Property Change:capStyleOverridden.- See Also:
DefaultContourLineAttribute
-
setMiterStyle
public void setMiterStyle(int style)
Description copied from class:LineAttributeSet the current miter style. Styles includeJOIN_MITER,JOIN_ROUND, andJOIN_BEVEL.
Property Change:miterStyle.- Overrides:
setMiterStylein classLineAttribute
-
isMiterStyleOverridden
public boolean isMiterStyleOverridden()
Test if miter style is overridden byDefaultContourLineAttribute.
-
setMiterStyleOverridden
public void setMiterStyleOverridden(boolean override)
Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of miter style.
Property Change:miterStyleOverridden.- See Also:
DefaultContourLineAttribute
-
setMiterLimit
public void setMiterLimit(float t)
Description copied from class:LineAttributeSet the miter limit.
Property Change:miterLimit.- Overrides:
setMiterLimitin classLineAttribute
-
isMiterLimitOverridden
public boolean isMiterLimitOverridden()
Test if miter limit is overridden byDefaultContourLineAttribute.
-
setMiterLimitOverridden
public void setMiterLimitOverridden(boolean override)
Enable/disable havingDefaultContourLineAttributeoverrideContourLineAttributebehavior of miter limit.
Property Change:miterLimitOverridden.- See Also:
DefaultContourLineAttribute
-
toString
public java.lang.String toString()
Description copied from class:LineAttributeGet aStringrepresentation of theLineAttribute.- Specified by:
toStringin interfaceAttribute- Overrides:
toStringin classLineAttribute- Returns:
Stringrepresentation
-
-
DMelt 3.0 © DataMelt by jWork.ORG