Class ScatterPaintletMetaDataValue
- 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.ScatterPaintletMetaDataValue
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<Paintlet>
,SizeOfHandler
,AntiAliasingSupporter
,ColorProviderHandler
,Paintlet
,HitDetectorSupporter<AbstractScatterPlotHitDetector>
,SizeBasedPaintlet
,Serializable
public class ScatterPaintletMetaDataValue extends AbstractScatterPlotPaintlet implements SizeBasedPaintlet
Paintlet for displaying points on the scatter point as circles.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-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
-anti-aliasing-enabled <boolean> (property: antiAliasingEnabled) If enabled, uses anti-aliasing for drawing lines. default: true
-color-provider <adams.gui.visualization.core.ColorProvider> (property: colorProvider) The color provider to use when using a column for the plot colors. default: adams.gui.visualization.core.DefaultColorProvider
-meta-data-key <java.lang.String> (property: metaDataKey) The key of the meta-data value to paint. default:
-font <java.awt.Font> (property: font) The font to use for the meta-data value. default: Display-PLAIN-14
-size <int> (property: size) The size of each data point. default: 5 minimum: 1
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Dimension>
m_DimensionsCache
the dimensions cache (text -> dimension).protected Font
m_Font
the label font.protected String
m_MetaDataKey
the meta-data key.-
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 ScatterPaintletMetaDataValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.protected void
drawData(Graphics g)
draws the data on the graphics objectString
fontTipText()
Returns the tip text for this property.Font
getFont()
Returns the meta-data value font.String
getMetaDataKey()
Returns the meta-data key.int
getSize()
Get the size of each data pointString
globalInfo()
Returns a string describing the object.void
memberChanged()
Executes a repaints only if the changes to members are not ignored.String
metaDataKeyTipText()
Returns the tip text for this property.AbstractScatterPlotHitDetector
newHitDetector()
Returns a new instance of the hit detector to use.void
setFont(Font value)
Sets the meta-data value font.void
setMetaDataKey(String value)
Sets the meta-data key.void
setSize(int val)
Set the size of each data pointString
sizeTipText()
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, 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, 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
-
Methods inherited from interface adams.gui.visualization.core.Paintlet
canPaint, getPaintMoment, getPanel, getPlot, getRepaintOnChange, hasPanel, isEnabled, paint, performPaint, setEnabled, setPanel, setPanel, setRepaintOnChange
-
Methods inherited from interface adams.core.ShallowCopySupporter
shallowCopy, shallowCopy
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractScatterPlotPaintlet
-
memberChanged
public void memberChanged()
Executes a repaints only if the changes to members are not ignored.- Overrides:
memberChanged
in classAbstractPaintlet
- See Also:
AbstractPaintlet.getRepaintOnChange()
,AbstractPaintlet.isInitializing()
,AbstractPaintlet.repaint()
-
setMetaDataKey
public void setMetaDataKey(String value)
Sets the meta-data key.- Parameters:
value
- the key
-
getMetaDataKey
public String getMetaDataKey()
Returns the meta-data key.- Returns:
- the key
-
metaDataKeyTipText
public String metaDataKeyTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setFont
public void setFont(Font value)
Sets the meta-data value font.- Parameters:
value
- the font
-
getFont
public Font getFont()
Returns the meta-data value font.- Returns:
- the font
-
fontTipText
public String fontTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setSize
public void setSize(int val)
Set the size of each data point- Specified by:
setSize
in interfaceSizeBasedPaintlet
- Parameters:
val
- size in pixels
-
getSize
public int getSize()
Get the size of each data point- Specified by:
getSize
in interfaceSizeBasedPaintlet
- Returns:
- size in pixels
-
sizeTipText
public String sizeTipText()
Returns the tip text for this property.- Specified by:
sizeTipText
in interfaceSizeBasedPaintlet
- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
newHitDetector
public AbstractScatterPlotHitDetector newHitDetector()
Returns a new instance of the hit detector to use.- Overrides:
newHitDetector
in classAbstractScatterPlotPaintlet
- Returns:
- the hit detector
-
drawData
protected void drawData(Graphics g)
draws the data on the graphics object- Overrides:
drawData
in classAbstractScatterPlotPaintlet
- Parameters:
g
- Graphics object to draw on
-
-