lt.monarch.chart.plugins
Class CursorChangerPlugin

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

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

Plug-in which allows to change cursor when chart area is selected.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
CursorChangerPlugin()
           
 
Method Summary
Modifier and Type Method and Description
 void activate()
          Prepares the plug-in, when it is installed.
 void deactivate()
          Cleanups the plug-in, when it is uninstalled.
 java.awt.Cursor getDefaultSelectionCursor()
           
 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 setDefaultScrollMask(java.awt.Cursor defaultScrollMask)
          Sets cursor which shows up when mouse is pressed.
 
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

CursorChangerPlugin

public CursorChangerPlugin()
Method Detail

getDefaultSelectionCursor

public java.awt.Cursor getDefaultSelectionCursor()

setDefaultScrollMask

public void setDefaultScrollMask(java.awt.Cursor defaultScrollMask)
Sets cursor which shows up when mouse is pressed.

Parameters:
defaultScrollMask -

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<AbstractChart<?,?>>

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<AbstractChart<?,?>>

mouseClicked

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

mouseExited

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

mouseEntered

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

mouseReleased

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

mousePressed

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