lt.monarch.chart.plugins
Class PointLineValue

java.lang.Object
  extended by lt.monarch.chart.plugins.AbstractChartPlugin<Chart2D>
      extended by lt.monarch.chart.plugins.PointLineValue
All Implemented Interfaces:
java.awt.event.MouseListener, java.io.Serializable, java.util.EventListener, ChartPlugin<Chart2D>

public class PointLineValue
extends AbstractChartPlugin<Chart2D>
implements java.awt.event.MouseListener

Plug-in for showing line value if selected on it.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
PointLineValue(Axis2D axisX, Axis2D axisY)
          PointLineValue constructor
PointLineValue(Axis2D axisX, Axis2D axisY, LineSeries[] series)
          PointLineValue constructor
PointLineValue(AxisMapper xMapper, AxisMapper yMapper)
          PointLineValue constructor
PointLineValue(AxisMapper xMapper, AxisMapper yMapper, LineSeries[] series)
          PointLineValue constructor
 
Method Summary
Modifier and Type Method and Description
 void activate()
          Prepares the plug-in, when it is installed.
 void addLineSeries(LineSeries series)
          Adding series to ArrayList
 void deactivate()
          Cleanups the plug-in, when it is uninstalled.
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void paint(AbstractGraphics g)
          Does nothing- must be overridden in extending classes.
 void setFaultTolerance(int tolerance)
          Set tolerance value
 
Methods inherited from class lt.monarch.chart.plugins.AbstractChartPlugin
adjustChart, chart, getChart, install, isActivated, uninstall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointLineValue

public PointLineValue(Axis2D axisX,
                      Axis2D axisY)
PointLineValue constructor

Parameters:
axisX - X axis
axisY - Y axis

PointLineValue

public PointLineValue(AxisMapper xMapper,
                      AxisMapper yMapper)
PointLineValue constructor

Parameters:
xMapper - X mapper
yMapper - Y mapper

PointLineValue

public PointLineValue(Axis2D axisX,
                      Axis2D axisY,
                      LineSeries[] series)
PointLineValue constructor

Parameters:
axisX - X axis
axisY - Y axis
series - Array of series type

PointLineValue

public PointLineValue(AxisMapper xMapper,
                      AxisMapper yMapper,
                      LineSeries[] series)
PointLineValue constructor

Parameters:
xMapper - X mapper
yMapper - Y mapper
series - Array of series type
Method Detail

addLineSeries

public void addLineSeries(LineSeries series)
Adding series to ArrayList

Parameters:
series - added series

setFaultTolerance

public void setFaultTolerance(int tolerance)
Set tolerance value

Parameters:
tolerance - value of integer type

activate

public void activate()
Description copied from class: AbstractChartPlugin
Prepares the plug-in, when it is installed. Also called when chart is activated.

Specified by:
activate in class AbstractChartPlugin<Chart2D>

deactivate

public void deactivate()
Description copied from class: AbstractChartPlugin
Cleanups the plug-in, when it is uninstalled. Also called when chart is deactivated.

Specified by:
deactivate in class AbstractChartPlugin<Chart2D>

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

paint

public void paint(AbstractGraphics g)
Description copied from class: AbstractChartPlugin
Does nothing- must be overridden in extending classes.

Specified by:
paint in interface ChartPlugin<Chart2D>
Overrides:
paint in class AbstractChartPlugin<Chart2D>
Parameters:
g - the Graphics context in which chart is painted
See Also:
ChartPlugin.paint(lt.monarch.chart.engine.AbstractGraphics)