adams.gui.visualization.stats.zscore
Class AbstractZScoreOverlay

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.core.option.AbstractOptionHandler
          extended by adams.gui.visualization.stats.zscore.AbstractZScoreOverlay
All Implemented Interfaces:
Debuggable, Destroyable, OptionHandler, SizeOfHandler, Serializable
Direct Known Subclasses:
Mean, StdDev

public abstract class AbstractZScoreOverlay
extends AbstractOptionHandler

Abstract superclass for overlays on the z score graph.

Version:
$Revision: 4584 $
Author:
msf8
See Also:
Serialized Form

Field Summary
protected  Color m_Color
          colour to draw the overlay line
protected  Instances m_Instances
          Instances object containing the data
protected  AbstractZOverlayPaintlet m_Paintlet
          Paintlet for the plotting
protected  ZScore m_Parent
          parent z score plot to plot data on
protected  float m_Thickness
          Thickness of overlay
 
Fields inherited from class adams.core.option.AbstractOptionHandler
m_DebugLevel, m_OptionManager
 
Constructor Summary
AbstractZScoreOverlay()
           
 
Method Summary
 String colorTipText()
          Tip text for the color property
 void defineOptions()
           
 Color getColor()
          get the color of the overlay
 AbstractZOverlayPaintlet getPaintlet()
          get the paintlet used to plot the overlay
protected  ZScore getParent()
          get the parent of the overlay
 float getThickness()
          Get the thickness of the overlay
 void setColor(Color val)
          Set the color of the overlay
 void setInstances(Instances inst)
          Set the instances for the overlay
 void setParent(ZScore val)
          set the parent for the overlay
 void setThickness(float val)
          Set the thickness of the overlay
abstract  void setUp()
          set up the overlay and it's paintlet
 AbstractZScoreOverlay shallowCopy()
          create a shallow copy of an overlay
 AbstractZScoreOverlay shallowCopy(boolean expand)
          create a shallow copy of an overlay
abstract  String shortName()
          Return a short name for the overlay to display in the key
 String thicknessTipText()
          Return a tip text for the thickness property
 
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, 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

m_Parent

protected ZScore m_Parent
parent z score plot to plot data on


m_Instances

protected Instances m_Instances
Instances object containing the data


m_Paintlet

protected AbstractZOverlayPaintlet m_Paintlet
Paintlet for the plotting


m_Color

protected Color m_Color
colour to draw the overlay line


m_Thickness

protected float m_Thickness
Thickness of overlay

Constructor Detail

AbstractZScoreOverlay

public AbstractZScoreOverlay()
Method Detail

defineOptions

public void defineOptions()
Specified by:
defineOptions in interface OptionHandler
Overrides:
defineOptions in class AbstractOptionHandler

setThickness

public void setThickness(float val)
Set the thickness of the overlay

Parameters:
val - Thickness in pixels

getThickness

public float getThickness()
Get the thickness of the overlay

Returns:
Thickness in pixels

thicknessTipText

public String thicknessTipText()
Return a tip text for the thickness property

Returns:
Tip text string

setUp

public abstract void setUp()
set up the overlay and it's paintlet


getParent

protected ZScore getParent()
get the parent of the overlay

Returns:
parent z score plot

setParent

public void setParent(ZScore val)
set the parent for the overlay

Parameters:
val - parent z score plot

setInstances

public void setInstances(Instances inst)
Set the instances for the overlay

Parameters:
inst - Instances for plotting

getPaintlet

public AbstractZOverlayPaintlet getPaintlet()
get the paintlet used to plot the overlay

Returns:
Paintlet used

shallowCopy

public AbstractZScoreOverlay shallowCopy()
create a shallow copy of an overlay

Returns:
Copy of the overlay

shallowCopy

public AbstractZScoreOverlay shallowCopy(boolean expand)
create a shallow copy of an overlay

Parameters:
expand - whether to expand variables to their current values
Returns:
Copy of the overlay

shortName

public abstract String shortName()
Return a short name for the overlay to display in the key

Returns:

setColor

public void setColor(Color val)
Set the color of the overlay

Parameters:
val - Color for the overlay

getColor

public Color getColor()
get the color of the overlay

Returns:
Color of overlay

colorTipText

public String colorTipText()
Tip text for the color property

Returns:
String to describe this property


Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.