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. |
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. |
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.
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 pickedindex
- the pick result index
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