|
||||||||||
| 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.AbstractOverlayPaintlet
public abstract class AbstractOverlayPaintlet
Abstract class for paintlets that draw the overlays.
| Field Summary | |
|---|---|
protected AxisPanel |
m_AxisBottom
X axis of scatter plot |
protected AxisPanel |
m_AxisLeft
y axis of scatter plot |
protected boolean |
m_Calculated
Whether the overlay has been calculated |
protected int |
m_XInd
Index of the attribute displayed on the x axis |
protected int |
m_YInd
Index of the attribute displayed on 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 | |
|---|---|
AbstractOverlayPaintlet()
|
|
| Method Summary | |
|---|---|
void |
calculate()
Calculates the data for the paintlet, doesn't handle the drawing of the overlay. |
protected abstract void |
drawData(Graphics g)
Draw the overlay onto the scatter plot, only calculates the value to position in this method |
boolean |
getCalculated()
Get whether the paintlet has been calculated |
PaintEvent.PaintMoment |
getPaintMoment()
|
void |
parameters(Instances inst,
int x,
int y)
Pass the parameters required by the overlay paintlet |
void |
performPaint(Graphics g,
PaintEvent.PaintMoment moment)
The paint routine of the paintlet. |
void |
setCalculated(boolean val)
set whether the paintlet has been calculated |
void |
setIndicator(boolean val)
Set whether an indicator should be shown on the sides |
void |
setWindowSize(int val)
Set the window size, only applicable for the lowess overlay paintlet |
| Methods inherited from class adams.gui.visualization.stats.paintlet.AbstractColorPaintlet |
|---|
colorTipText, defineOptions, 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, 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_XInd
protected int m_YInd
protected boolean m_Calculated
protected AxisPanel m_AxisBottom
protected AxisPanel m_AxisLeft
| Constructor Detail |
|---|
public AbstractOverlayPaintlet()
| Method Detail |
|---|
public PaintEvent.PaintMoment getPaintMoment()
getPaintMoment in interface PaintletgetPaintMoment in class AbstractPaintlet
public void parameters(Instances inst,
int x,
int y)
inst - instances to plotx - Index of attribute on x axisy - Index of attribute on y axispublic void setWindowSize(int val)
val - int size of windowpublic void setIndicator(boolean val)
val - true if indicator shownpublic void calculate()
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 paintedprotected abstract void drawData(Graphics g)
g - Graphics drawn onpublic void setCalculated(boolean val)
val - True if paintlet calculatedpublic boolean getCalculated()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||