com.jrefinery.chart
Class ChartMouseEvent

java.lang.Object
  extended by com.jrefinery.chart.ChartMouseEvent

public class ChartMouseEvent
extends java.lang.Object

A mouse event for a chart that is displayed in a ChartPanel.


Field Summary
protected  com.jrefinery.chart.entity.ChartEntity entity
          The chart entity (if any).
protected  java.awt.event.MouseEvent trigger
          The Java mouse event that triggered this event.
 
Constructor Summary
ChartMouseEvent(java.awt.event.MouseEvent trigger, com.jrefinery.chart.entity.ChartEntity entity)
          Constructs a new event.
 
Method Summary
 com.jrefinery.chart.entity.ChartEntity getEntity()
          Returns the chart entity (if any) under the mouse point.
 java.awt.event.MouseEvent getTrigger()
          Returns the mouse event that triggered this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trigger

protected java.awt.event.MouseEvent trigger
The Java mouse event that triggered this event.


entity

protected com.jrefinery.chart.entity.ChartEntity entity
The chart entity (if any).

Constructor Detail

ChartMouseEvent

public ChartMouseEvent(java.awt.event.MouseEvent trigger,
                       com.jrefinery.chart.entity.ChartEntity entity)
Constructs a new event.

Parameters:
trigger - The mouse event that triggered this event.
entity - The chart entity (if any) under the mouse point.
Method Detail

getTrigger

public java.awt.event.MouseEvent getTrigger()
Returns the mouse event that triggered this event.

Returns:
The event.

getEntity

public com.jrefinery.chart.entity.ChartEntity getEntity()
Returns the chart entity (if any) under the mouse point.

Returns:
The chart entity.


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.