JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d.event
Class JCPick3dEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.klg.jclass.chart3d.event.JCPick3dEvent
All Implemented Interfaces:
Serializable

public class JCPick3dEvent
extends EventObject

Represents a pick event in JCChart3d. A pick event occurs when a JCPick3dListener is installed on a 3D chart and the mouse button is pressed down over a JCChart3d object.

See Also:
Serialized Form

Field Summary
protected  com.klg.jclass.chart3d.JCData3dIndex pickResult
          The result of a pick event.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JCPick3dEvent(com.klg.jclass.chart3d.JCChart3d chart3d, com.klg.jclass.chart3d.JCData3dIndex index)
          Constructor to create a pick event.
 
Method Summary
 com.klg.jclass.chart3d.JCData3dIndex getPickResult()
          Gets the result of a pick event, which is a JCData3dIndex object.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pickResult

protected com.klg.jclass.chart3d.JCData3dIndex pickResult
The result of a pick event. Holds the data index of the point picked. If this index is a JCData3dGridIndex, the index points to the (x, y) grid point that was selected. If it is a JCData3dPointIndex, it references the selected point in the point data set. If it is a JCData3dContourIndex, it references a contour level.

Constructor Detail

JCPick3dEvent

public JCPick3dEvent(com.klg.jclass.chart3d.JCChart3d chart3d,
                     com.klg.jclass.chart3d.JCData3dIndex index)
Constructor to create a pick event. It is passed in a chart3d object and a JCData3dIndex, which is the result of a pick event.

Parameters:
chart3d - the chart3d object which was picked
index - the pick result index
Method Detail

getPickResult

public com.klg.jclass.chart3d.JCData3dIndex getPickResult()
Gets the result of a pick event, which is a JCData3dIndex object. If no subcomponent of a JCChart3d (header, footer, legend, chart area) was picked, this will be null.

Returns:
a JCData3dIndex instance holding the pick result

Copyright © 2004 Quest Software Inc..
All rights reserved.