lt.monarch.chart.plugins
Class ChartRotator

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

public class ChartRotator
extends AbstractChartPlugin<Chart3D>
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener

Plug-in for 3D charts, which implements mouse rotation in 3D space by handling mouse events.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
ChartRotator()
           
ChartRotator(Pie3DSeries series)
          Constructor, if use Pie3D series
 
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.
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
          Checks if the LMB was pressed and none of the other modifier keys were down.
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void paint(AbstractGraphics g)
          Projects rotation point to physical coordinate system and passes it to Graphics3D.
 
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

ChartRotator

public ChartRotator()

ChartRotator

public ChartRotator(Pie3DSeries series)
Constructor, if use Pie3D series

Parameters:
series - of pie 3d
Method Detail

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<Chart3D>

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<Chart3D>

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)
Checks if the LMB was pressed and none of the other modifier keys were down.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
e - MouseEvent

mouseReleased

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

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

paint

public void paint(AbstractGraphics g)
Projects rotation point to physical coordinate system and passes it to Graphics3D.

Specified by:
paint in interface ChartPlugin<Chart3D>
Overrides:
paint in class AbstractChartPlugin<Chart3D>
Parameters:
g - - an abstract graphics
See Also:
ChartPlugin.paint(lt.monarch.chart.engine.AbstractGraphics)