Class VsOrderPaintlet
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<Paintlet>
,SizeOfHandler
,AntiAliasingSupporter
,Paintlet
,Serializable
public class VsOrderPaintlet extends AbstractColorPaintlet implements AntiAliasingSupporter
Paints the data for the versus order graph
Valid options are:
-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-stroke-thickness <float> (property: strokeThickness) The thickness of the stroke. default: 1.0 minimum: 0.01
-color <java.awt.Color> (property: color) Stroke color for the paintlet default: #000000
-size <int> (property: size) Size of the data points default: 5
-fill-point (property: fillPoint) Whether to fill the data point with solid color
-fill-color <java.awt.Color> (property: fillColor) color for filling the data points default: #ff0000
- Version:
- $Revision$
- Author:
- msf8
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
m_AntiAliasingEnabled
whether anti-aliasing is enabled.protected boolean
m_Fill
Whether to fill the data pointsprotected Color
m_FillColor
Color to fill the data pointsprotected int
m_Index
Index of residuals attribute in the instancesprotected int
m_Size
Size of the data points-
Fields inherited from class adams.gui.visualization.stats.paintlet.AbstractColorPaintlet
m_Color, m_Data
-
Fields inherited from class adams.gui.visualization.core.AbstractStrokePaintlet
m_StrokeThickness
-
Fields inherited from class adams.gui.visualization.core.AbstractPaintlet
m_Enabled, m_Initializing, m_Panel, m_RepaintOnChange
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description VsOrderPaintlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
antiAliasingEnabledTipText()
Returns the tip text for this property.void
defineOptions()
Adds options to the internal list of options.protected void
doPerformPaint(Graphics g, PaintEvent.PaintMoment moment)
The paint routine of the paintlet.String
fillColorTipText()
Tip text for the color propertyString
fillPointTipText()
Tip text for the fill point propertyColor
getFillColor()
Get the color to fill the pointsboolean
getFillPoint()
get whether the data points should be filledPaintEvent.PaintMoment
getPaintMoment()
Returns when this paintlet is to be executed.int
getSize()
Get the size of the data pointsString
globalInfo()
Returns a string describing the object.boolean
isAntiAliasingEnabled()
Returns whether anti-aliasing is used.void
setAntiAliasingEnabled(boolean value)
Sets whether to use anti-aliasing.void
setFillColor(Color val)
Set the color for filling the pointsvoid
setFillPoint(boolean val)
Set whether the data points should be filledvoid
setIndex(int val)
Set the index of the residuals attribute in the instancesvoid
setSize(int val)
Set the size for the data pointsString
sizeTipText()
Tip text for the size property-
Methods inherited from class adams.gui.visualization.stats.paintlet.AbstractColorPaintlet
colorTipText, getColor, getData, setColor, setData
-
Methods inherited from class adams.gui.visualization.core.AbstractStrokePaintlet
applyStroke, getStrokeThickness, getStrokeWidth, performPaint, setStrokeThickness, strokeThicknessTipText
-
Methods inherited from class adams.gui.visualization.core.AbstractPaintlet
canPaint, finishInit, forCommandLine, forName, getPaintlets, getPanel, getPlot, getRepaintOnChange, hasPanel, initialize, isEnabled, isInitializing, memberChanged, memberChanged, paint, repaint, setEnabled, setPanel, setPanel, setRepaintOnChange, shallowCopy, shallowCopy, updatePanel
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Index
protected int m_Index
Index of residuals attribute in the instances
-
m_FillColor
protected Color m_FillColor
Color to fill the data points
-
m_Fill
protected boolean m_Fill
Whether to fill the data points
-
m_Size
protected int m_Size
Size of the data points
-
m_AntiAliasingEnabled
protected boolean m_AntiAliasingEnabled
whether anti-aliasing is enabled.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Description copied from class:AbstractOptionHandler
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Description copied from class:AbstractColorPaintlet
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractColorPaintlet
-
setFillPoint
public void setFillPoint(boolean val)
Set whether the data points should be filled- Parameters:
val
- True if points filled
-
getFillPoint
public boolean getFillPoint()
get whether the data points should be filled- Returns:
- true if data points filled
-
fillPointTipText
public String fillPointTipText()
Tip text for the fill point property- Returns:
- String describing the property
-
setFillColor
public void setFillColor(Color val)
Set the color for filling the points- Parameters:
val
- Fill color
-
getFillColor
public Color getFillColor()
Get the color to fill the points- Returns:
- Color to fill
-
fillColorTipText
public String fillColorTipText()
Tip text for the color property- Returns:
- String describing the property
-
setSize
public void setSize(int val)
Set the size for the data points- Parameters:
val
- Size in pixels
-
getSize
public int getSize()
Get the size of the data points- Returns:
- Size in pixels
-
sizeTipText
public String sizeTipText()
Tip text for the size property- Returns:
- String describing the property
-
setAntiAliasingEnabled
public void setAntiAliasingEnabled(boolean value)
Sets whether to use anti-aliasing.- Specified by:
setAntiAliasingEnabled
in interfaceAntiAliasingSupporter
- Parameters:
value
- if true then anti-aliasing is used
-
isAntiAliasingEnabled
public boolean isAntiAliasingEnabled()
Returns whether anti-aliasing is used.- Specified by:
isAntiAliasingEnabled
in interfaceAntiAliasingSupporter
- Returns:
- true if anti-aliasing is used
-
antiAliasingEnabledTipText
public String antiAliasingEnabledTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getPaintMoment
public PaintEvent.PaintMoment getPaintMoment()
Returns when this paintlet is to be executed.- Specified by:
getPaintMoment
in interfacePaintlet
- Specified by:
getPaintMoment
in classAbstractPaintlet
- Returns:
- when this paintlet is to be executed
-
doPerformPaint
protected void doPerformPaint(Graphics g, PaintEvent.PaintMoment moment)
The paint routine of the paintlet.- Specified by:
doPerformPaint
in classAbstractStrokePaintlet
- Parameters:
g
- the graphics context to use for paintingmoment
- whatPaintEvent.PaintMoment
is currently being painted
-
setIndex
public void setIndex(int val)
Set the index of the residuals attribute in the instances- Parameters:
val
- Index of residuals
-
-