Class AbstractZScorePaintlet
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.core.AbstractPaintlet
-
- adams.gui.visualization.core.AbstractStrokePaintlet
-
- adams.gui.visualization.stats.paintlet.AbstractColorPaintlet
-
- adams.gui.visualization.stats.paintlet.AbstractZScorePaintlet
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<Paintlet>
,SizeOfHandler
,AntiAliasingSupporter
,Paintlet
,Serializable
- Direct Known Subclasses:
ZScoreCircle
,ZScoreCross
public abstract class AbstractZScorePaintlet extends AbstractColorPaintlet implements AntiAliasingSupporter
Abstract class for creating z score paintlets.- 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 AxisPanel
m_AxisBottom
x axis of plotprotected AxisPanel
m_AxisLeft
y axis of plotprotected int
m_Index
index of the attribute being plottedprotected Color
m_LineColor
the line color.protected double[]
m_Values
data from the attribute-
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 AbstractZScorePaintlet()
-
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.protected void
drawData(Graphics g)
Color
getLineColor()
Get the color for drawing the linesPaintEvent.PaintMoment
getPaintMoment()
Returns when this paintlet is to be executed.protected void
initialize()
Initializes the members.boolean
isAntiAliasingEnabled()
Returns whether anti-aliasing is used.String
lineColorTipText()
Tip text for the line color property.void
parameters(SpreadSheet data, int ind)
pass the required parameters for the paintletvoid
setAntiAliasingEnabled(boolean value)
Sets whether to use anti-aliasing.void
setIndex(int ind)
set the index of the attributevoid
setLineColor(Color val)
Set the color to draw the lines.-
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, 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, globalInfo, 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 the attribute being plotted
-
m_Values
protected double[] m_Values
data from the attribute
-
m_AxisLeft
protected AxisPanel m_AxisLeft
y axis of plot
-
m_AxisBottom
protected AxisPanel m_AxisBottom
x axis of plot
-
m_LineColor
protected Color m_LineColor
the line color.
-
m_AntiAliasingEnabled
protected boolean m_AntiAliasingEnabled
whether anti-aliasing is enabled.
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractColorPaintlet
-
initialize
protected void initialize()
Description copied from class:AbstractPaintlet
Initializes the members.- Overrides:
initialize
in classAbstractPaintlet
-
setLineColor
public void setLineColor(Color val)
Set the color to draw the lines.- Parameters:
val
- color for lines
-
getLineColor
public Color getLineColor()
Get the color for drawing the lines- Returns:
- color for lines
-
lineColorTipText
public String lineColorTipText()
Tip text for the line color property.- Returns:
- String to describe 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()
Description copied from class:AbstractPaintlet
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 ind)
set the index of the attribute
-
parameters
public void parameters(SpreadSheet data, int ind)
pass the required parameters for the paintlet- Parameters:
data
- Instances to be plottedind
- index of the attribute
-
drawData
protected void drawData(Graphics g)
-
-