|
||||||||||
| 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.VsFitPaintlet
public class VsFitPaintlet
Paints the data for the versus fit 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
| Field Summary | |
|---|---|
protected boolean |
m_AntiAliasingEnabled
whether anti-aliasing is enabled. |
protected boolean |
m_Fill
Whether to fill data points |
protected Color |
m_FillColor
Color for filling data points |
protected int |
m_Index
Index of residuals in the instances |
protected int |
m_PredInd
Index of the predicted attribute in the instances |
protected int |
m_Size
Size of data points |
| 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 | |
|---|---|
VsFitPaintlet()
|
|
| Method Summary | |
|---|---|
String |
antiAliasingEnabledTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
String |
fillColorTipText()
Tip text for the color property |
String |
fillPointTipText()
Tip text for the fill points property |
Color |
getFillColor()
Get the color for filling the data points |
boolean |
getFillPoint()
get whether the data points should be filled |
PaintEvent.PaintMoment |
getPaintMoment()
|
int |
getSize()
Get the size of the data points |
String |
globalInfo()
|
boolean |
isAntiAliasingEnabled()
Returns whether anti-aliasing is used. |
void |
performPaint(Graphics g,
PaintEvent.PaintMoment moment)
The paint routine of the paintlet. |
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 data points should be filled |
void |
setIndices(int res,
int pred)
Set the indices of the residuals attribute and the predicted attribute in the instances |
void |
setSize(int val)
Set the size of each data point |
String |
sizeTipText()
Tip text for the 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, initialize, isEnabled, isInitializing, memberChanged, memberChanged, repaint, setEnabled, setPanel, setRepaintOnChange, shallowCopy, shallowCopy, updatePanel |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, getDebugLevel, getOptionManager, 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 int m_PredInd
protected boolean m_Fill
protected int m_Size
protected Color m_FillColor
protected boolean m_AntiAliasingEnabled
| Constructor Detail |
|---|
public VsFitPaintlet()
| Method Detail |
|---|
public PaintEvent.PaintMoment getPaintMoment()
getPaintMoment in interface PaintletgetPaintMoment in class AbstractPaintletpublic void defineOptions()
AbstractColorPaintlet
defineOptions in interface OptionHandlerdefineOptions in class AbstractColorPaintletpublic void setFillPoint(boolean val)
val - True if points filledpublic boolean getFillPoint()
public String fillPointTipText()
public void setFillColor(Color val)
val - Color for fillpublic Color getFillColor()
public String fillColorTipText()
public void setSize(int val)
val - Size 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 AntiAliasingPaintlet
public void performPaint(Graphics g,
PaintEvent.PaintMoment moment)
performPaint in interface PaintletperformPaint in class AbstractPaintletg - the graphics context to use for paintingmoment - what PaintEvent.PaintMoment is currently being paintedpublic String globalInfo()
globalInfo in class AbstractOptionHandler
public void setIndices(int res,
int pred)
res - index of residuals attributepred - index of predicted attribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||