Class AbstractProbabilityPaintlet
- 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.AbstractProbabilityPaintlet
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,ShallowCopySupporter<Paintlet>,SizeOfHandler,AntiAliasingSupporter,Paintlet,Serializable
- Direct Known Subclasses:
Exponential,Gamma,Logistic,Loglogistic,Lognormal,Normal
public abstract class AbstractProbabilityPaintlet extends AbstractColorPaintlet implements AntiAliasingSupporter
Abstract class for paintlets that plot the regression in the probability plot.- Version:
- $Revision$
- Author:
- msf8
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanm_AntiAliasingEnabledwhether anti-aliasing is enabled.protected AxisPanelm_AxisBottomy axis of the plotprotected AxisPanelm_AxisLeftx axis of the plotprotected booleanm_FillWhether to fill the data pointsprotected Colorm_FillColorColor to fill data pointsprotected intm_IndexIndex of the attribute in the instancesprotected booleanm_RegressionLineWhether to draw a regression lineprotected intm_SizeSize of the pointsprotected double[]m_Sortedthe sorted data.protected double[]m_TransformedYTransformed data for the y axis-
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 AbstractProbabilityPaintlet()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringantiAliasingEnabledTipText()Returns the tip text for this property.abstract voidcalculateDimensions()For calculating the dimensions of the plot area.abstract voidconfigureAxes()Sets the axes to the correct type for the distribution.voiddefineOptions()Adds options to the internal list of options.StringfillColorTipText()Tip text for the fill color propertyStringfillPointTipText()Tip text for the fill point propertyColorgetFillColor()get the color for filling the data pointsbooleangetFillPoint()Get whether the data points should be filled with colorPaintEvent.PaintMomentgetPaintMoment()Returns when this paintlet is to be executed.intgetSize()Get the size of the data pointsabstract booleanhasFitLine()Whether a regression line has been implemented for this regresion paintletprotected voidinitialize()Initializes the members.booleanisAntiAliasingEnabled()Returns whether anti-aliasing is used.voidsetAntiAliasingEnabled(boolean value)Sets whether to use anti-aliasing.voidsetFillColor(Color val)Set the color for filling the data pointsvoidsetFillPoint(boolean val)Set whether the data points are filled with colorvoidsetIndex(int val)Set the index of the attribute usedvoidsetLine(boolean val)Set whether a regression line is drawnvoidsetSize(int val)Set the size of the data pointsStringsizeTipText()Tip text for the data point 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, doPerformPaint, 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 in the instances
-
m_RegressionLine
protected boolean m_RegressionLine
Whether to draw a regression line
-
m_Size
protected int m_Size
Size of the points
-
m_Fill
protected boolean m_Fill
Whether to fill the data points
-
m_AxisLeft
protected AxisPanel m_AxisLeft
x axis of the plot
-
m_AxisBottom
protected AxisPanel m_AxisBottom
y axis of the plot
-
m_Sorted
protected double[] m_Sorted
the sorted data.
-
m_TransformedY
protected double[] m_TransformedY
Transformed data for the y axis
-
m_FillColor
protected Color m_FillColor
Color to fill data points
-
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:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractColorPaintlet
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initializein classAbstractPaintlet
-
setFillColor
public void setFillColor(Color val)
Set the color for filling the data points- Parameters:
val- Color for filling points
-
getFillColor
public Color getFillColor()
get the color for filling the data points- Returns:
- Color for filling the data points
-
fillColorTipText
public String fillColorTipText()
Tip text for the fill color property- Returns:
- String describing the property
-
setFillPoint
public void setFillPoint(boolean val)
Set whether the data points are filled with color- Parameters:
val- True if data points filled
-
getFillPoint
public boolean getFillPoint()
Get whether the data points should be filled with color- Returns:
- True if filled
-
fillPointTipText
public String fillPointTipText()
Tip text for the fill point property- Returns:
- String describing the property
-
setSize
public void setSize(int val)
Set the size of the data points- Parameters:
val- Size of the data points in pixels
-
getSize
public int getSize()
Get the size of the data points- Returns:
- Size of the points in pixels
-
sizeTipText
public String sizeTipText()
Tip text for the data point size property- Returns:
-
setAntiAliasingEnabled
public void setAntiAliasingEnabled(boolean value)
Sets whether to use anti-aliasing.- Specified by:
setAntiAliasingEnabledin interfaceAntiAliasingSupporter- Parameters:
value- if true then anti-aliasing is used
-
isAntiAliasingEnabled
public boolean isAntiAliasingEnabled()
Returns whether anti-aliasing is used.- Specified by:
isAntiAliasingEnabledin 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.
-
configureAxes
public abstract void configureAxes()
Sets the axes to the correct type for the distribution.
-
calculateDimensions
public abstract void calculateDimensions()
For calculating the dimensions of the plot area.
-
getPaintMoment
public PaintEvent.PaintMoment getPaintMoment()
Returns when this paintlet is to be executed.- Specified by:
getPaintMomentin interfacePaintlet- Specified by:
getPaintMomentin classAbstractPaintlet- Returns:
- when this paintlet is to be executed
-
setIndex
public void setIndex(int val)
Set the index of the attribute used- Parameters:
val- Attribute index
-
setLine
public void setLine(boolean val)
Set whether a regression line is drawn- Parameters:
val- True if regression line is to be drawn
-
hasFitLine
public abstract boolean hasFitLine()
Whether a regression line has been implemented for this regresion paintlet- Returns:
- True if regression line implemented
-
-