lt.monarch.chart.plugins
Class ClickZoom

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

public class ClickZoom
extends AbstractChartPlugin<AbstractChart<?,?>>
implements java.awt.event.MouseListener

This plugin is for one day information zooming.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
ClickZoom(Axis2D axisX)
          Constructor with axis.
ClickZoom(DateAxisMapper xMapper)
          Constructor with mapper.
 
Method Summary
Modifier and Type Method and Description
 void activate()
          Activates this plugin.
 void deactivate()
          Deactivates this plugin.
 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)
           
 
Methods inherited from class lt.monarch.chart.plugins.AbstractChartPlugin
adjustChart, chart, getChart, install, isActivated, paint, uninstall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClickZoom

public ClickZoom(Axis2D axisX)
Constructor with axis.

Parameters:
axisX - Axis2DX type and must be with DateAxisMapper

ClickZoom

public ClickZoom(DateAxisMapper xMapper)
Constructor with mapper.

Parameters:
xMapper - DateAxisMapper
Method Detail

activate

public void activate()
Activates this plugin. Add this mouse listener to the chart container.

Specified by:
activate in class AbstractChartPlugin<AbstractChart<?,?>>

deactivate

public void deactivate()
Deactivates this plugin. Removes this mouse listener from the chart container.

Specified by:
deactivate in class AbstractChartPlugin<AbstractChart<?,?>>

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