javawrapper::EpisodicEventsMouseListener Class Reference

Class for interpreting mouse clicks on the chart for selecting cells for episodic event editing. More...

List of all members.

Public Member Functions

void chartMouseClicked (org.jfree.chart.ChartMouseEvent oEvent)
 Interprets a mouse click on the chart.
void mousePressed (java.awt.event.MouseEvent oEvent)
 Captures the point of click for possible dragging.
void mouseDragged (java.awt.event.MouseEvent oEvent)
 Handles a 'mouse dragged' event.
void mouseReleased (java.awt.event.MouseEvent oEvent)
 Handles a mouse button release event, presumably after a drag to select cells.
void mouseClicked (java.awt.event.MouseEvent oEvent)
 Does nothing.
void chartMouseMoved (org.jfree.chart.ChartMouseEvent oEvent)
 Does nothing.
void mouseEntered (java.awt.event.MouseEvent oEvent)
 Does nothing.
void mouseExited (java.awt.event.MouseEvent oEvent)
 Does nothing.
void mouseMoved (java.awt.event.MouseEvent oEvent)
 Does nothing.

Package Functions

 EpisodicEventsMouseListener (EpisodicEventsEdit oWindow)
 Constructor.


Detailed Description

Class for interpreting mouse clicks on the chart for selecting cells for episodic event editing.

This will detect both single clicks on the chart and click-and-drag. When a user has selected a cell or group of cells on this chart, this will toggle them as selected/unselected with the parent window.

Copyright: Copyright (c) Charles D. Canham 2003

Company: Institute of Ecosystem Studies

Author:
Lora E. Murphy
Version:
1.0


Constructor & Destructor Documentation

javawrapper::EpisodicEventsMouseListener::EpisodicEventsMouseListener ( EpisodicEventsEdit  oWindow  )  [inline, package]

Constructor.

Parameters:
oWindow Object to exchange data with.


Member Function Documentation

void javawrapper::EpisodicEventsMouseListener::chartMouseClicked ( org.jfree.chart.ChartMouseEvent  oEvent  )  [inline]

Interprets a mouse click on the chart.

This takes the point of the click and translates the click point to chart coordinates. The cell containing the click point is toggled between a value of 0 and 1 in HarvestEdit::mp_iCells.

Parameters:
oEvent MouseEvent from which to get the click point.

void javawrapper::EpisodicEventsMouseListener::mousePressed ( java.awt.event.MouseEvent  oEvent  )  [inline]

Captures the point of click for possible dragging.

I modified this code from org.jfree.chart.ChartPanel::mousePressed by David Gilbert.

Parameters:
oEvent MouseEvent from which to get the click point.

void javawrapper::EpisodicEventsMouseListener::mouseDragged ( java.awt.event.MouseEvent  oEvent  )  [inline]

Handles a 'mouse dragged' event.

Draws a rectangle of the drag. I modified this code from org.jfree.chart.ChartPanel::mouseDragged by David Gilbert.

Parameters:
oEvent the mouse event.

void javawrapper::EpisodicEventsMouseListener::mouseReleased ( java.awt.event.MouseEvent  oEvent  )  [inline]

Handles a mouse button release event, presumably after a drag to select cells.

This will take all the cells selected in the drag, and toggle their value in mp_iCells between 0 and 1. I modified the code for retrieving drag coordinates from from org.jfree.chart.ChartPanel::mouseReleased by David Gilbert.

Parameters:
oEvent Mouse event.

void javawrapper::EpisodicEventsMouseListener::mouseClicked ( java.awt.event.MouseEvent  oEvent  )  [inline]

Does nothing.

Parameters:
oEvent Ignored.

void javawrapper::EpisodicEventsMouseListener::chartMouseMoved ( org.jfree.chart.ChartMouseEvent  oEvent  )  [inline]

Does nothing.

Parameters:
oEvent Ignored.

void javawrapper::EpisodicEventsMouseListener::mouseEntered ( java.awt.event.MouseEvent  oEvent  )  [inline]

Does nothing.

Parameters:
oEvent Ignored.

void javawrapper::EpisodicEventsMouseListener::mouseExited ( java.awt.event.MouseEvent  oEvent  )  [inline]

Does nothing.

Parameters:
oEvent Ignored.

void javawrapper::EpisodicEventsMouseListener::mouseMoved ( java.awt.event.MouseEvent  oEvent  )  [inline]

Does nothing.

Parameters:
oEvent Ignored.


The documentation for this class was generated from the following file:
Generated on Thu May 24 09:34:53 2007 for SORTIE Java Interface by  doxygen 1.5.2