Class ScatterPaintletCross
- 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.AbstractScatterPlotPaintlet
-
- adams.gui.visualization.stats.paintlet.ScatterPaintletCross
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,ShallowCopySupporter<Paintlet>,SizeOfHandler,AntiAliasingSupporter,ColorProviderHandler,Paintlet,HitDetectorSupporter<AbstractScatterPlotHitDetector>,Serializable
public class ScatterPaintletCross extends AbstractScatterPlotPaintlet
Class for plotting data on a scatter plot as crosses.
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) The size of each data point. default: 5 minimum: 1
- Author:
- msf8
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.visualization.stats.paintlet.AbstractScatterPlotPaintlet
m_AntiAliasingEnabled, m_AxisBottom, m_AxisLeft, m_ColorData, m_ColorIndex, m_ColorMapping, m_ColorProvider, m_HitDetector, m_Size, m_XData, m_XIndex, m_YData, m_YIndex
-
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 ScatterPaintletCross()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.protected voiddrawData(Graphics g)draws the data on the graphics objectintgetSize()Get the size of each data pointStringglobalInfo()Returns a string describing the object.voidsetSize(int val)Set the size of each data pointStringsizeTipText()Returns the tip text for this property.-
Methods inherited from class adams.gui.visualization.stats.paintlet.AbstractScatterPlotPaintlet
antiAliasingEnabledTipText, colorProviderTipText, doPerformPaint, getActualColor, getColorIndex, getColorProvider, getHitDetector, getPaintMoment, getXIndex, getYIndex, initialize, isAntiAliasingEnabled, newHitDetector, reset, setAntiAliasingEnabled, setColorIndex, setColorProvider, setXIndex, setYIndex, toString
-
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, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine
-
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
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Description copied from class:AbstractOptionHandlerReturns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Description copied from class:AbstractScatterPlotPaintletAdds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractScatterPlotPaintlet
-
setSize
public void setSize(int val)
Set the size of each data point- Parameters:
val- size in pixels
-
getSize
public int getSize()
Get the size of each data point- Returns:
- size in pixels
-
sizeTipText
public String sizeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
drawData
protected void drawData(Graphics g)
Description copied from class:AbstractScatterPlotPaintletdraws the data on the graphics object- Overrides:
drawDatain classAbstractScatterPlotPaintlet- Parameters:
g- Graphics object to draw on
-
-