|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
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
public abstract class AbstractProbabilityPaintlet
Abstract class for paintlets that plot the regression in the probability plot.
| Field Summary | |
|---|---|
protected boolean |
m_AntiAliasingEnabled
whether anti-aliasing is enabled. |
protected AxisPanel |
m_AxisBottom
y axis of the plot |
protected AxisPanel |
m_AxisLeft
x axis of the plot |
protected double[] |
m_Data
the sorted data. |
protected boolean |
m_Fill
Whether to fill the data points |
protected Color |
m_FillColor
Color to fill data points |
protected int |
m_Index
Index of the attribute in the instances |
protected boolean |
m_RegressionLine
Whether to draw a regression line |
protected int |
m_Size
Size of the points |
protected double[] |
m_TransformedY
Transformed data for the y axis |
| Fields inherited from class adams.gui.visualization.stats.paintlet.AbstractColorPaintlet |
|---|
m_Color, m_Instances |
| 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_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractProbabilityPaintlet()
|
|
| Method Summary | |
|---|---|
String |
antiAliasingEnabledTipText()
Returns the tip text for this property. |
abstract void |
calculateDimensions()
For calculating the dimensions of the plot area. |
abstract void |
configureAxes()
Sets the axes to the correct type for the distribution. |
void |
defineOptions()
Adds options to the internal list of options. |
String |
fillColorTipText()
Tip text for the fill color property |
String |
fillPointTipText()
Tip text for the fill point property |
Color |
getFillColor()
get the color for filling the data points |
boolean |
getFillPoint()
Get whether the data points should be filled with color |
PaintEvent.PaintMoment |
getPaintMoment()
Returns when this paintlet is to be executed. |
int |
getSize()
Get the size of the data points |
abstract boolean |
hasFitLine()
Whether a regression line has been implemented for this regresion paintlet |
protected void |
initialize()
Initializes the members. |
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 data points |
void |
setFillPoint(boolean val)
Set whether the data points are filled with color |
void |
setIndex(int val)
Set the index of the attribute used |
void |
setLine(boolean val)
Set whether a regression line is drawn |
void |
setSize(int val)
Set the size of the data points |
String |
sizeTipText()
Tip text for the data point size property |
| Methods inherited from class adams.gui.visualization.stats.paintlet.AbstractColorPaintlet |
|---|
colorTipText, getColor, getInstances, setColor, setInstances |
| Methods inherited from class adams.gui.visualization.core.AbstractStrokePaintlet |
|---|
getStrokeThickness, paint, setStrokeThickness, strokeThicknessTipText |
| Methods inherited from class adams.gui.visualization.core.AbstractPaintlet |
|---|
canPaint, finishInit, forCommandLine, forName, getPaintlets, getPanel, getPlot, getRepaintOnChange, hasPanel, isEnabled, isInitializing, memberChanged, memberChanged, performPaint, repaint, setEnabled, setPanel, setRepaintOnChange, shallowCopy, shallowCopy, updatePanel |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, getDebugLevel, getOptionManager, globalInfo, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int m_Index
protected boolean m_RegressionLine
protected int m_Size
protected boolean m_Fill
protected AxisPanel m_AxisLeft
protected AxisPanel m_AxisBottom
protected double[] m_Data
protected double[] m_TransformedY
protected Color m_FillColor
protected boolean m_AntiAliasingEnabled
| Constructor Detail |
|---|
public AbstractProbabilityPaintlet()
| Method Detail |
|---|
public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractColorPaintletprotected void initialize()
initialize in class AbstractPaintletpublic void setFillColor(Color val)
val - Color for filling pointspublic Color getFillColor()
public String fillColorTipText()
public void setFillPoint(boolean val)
val - True if data points filledpublic boolean getFillPoint()
public String fillPointTipText()
public void setSize(int val)
val - Size of the data points in pixelspublic int getSize()
public String sizeTipText()
public void setAntiAliasingEnabled(boolean value)
setAntiAliasingEnabled in interface AntiAliasingPaintletvalue - if true then anti-aliasing is usedpublic boolean isAntiAliasingEnabled()
isAntiAliasingEnabled in interface AntiAliasingPaintletpublic String antiAliasingEnabledTipText()
antiAliasingEnabledTipText in interface AntiAliasingPaintletpublic abstract void configureAxes()
public abstract void calculateDimensions()
public PaintEvent.PaintMoment getPaintMoment()
getPaintMoment in interface PaintletgetPaintMoment in class AbstractPaintletpublic void setIndex(int val)
val - Attribute indexpublic void setLine(boolean val)
val - True if regression line is to be drawnpublic abstract boolean hasFitLine()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||