|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.chart3d.j2d.actions.BaseAction | +--com.klg.jclass.chart3d.j2d.actions.EditAction
Handler object for edit actions within JClass Chart 3D Java2D. When
a edit action is started, JCChart3dArea
will create an
instance of EditAction
and call start()
,
animate()
and end()
at appropriate points. A
mapping from event to action type is stored the chart's JCActionTable.
JCAction
,
JCActionTable
,
BaseAction
,
Serialized FormField Summary | |
protected com.klg.jclass.chart3d.Chart3dData |
data
Points to the data object whose data is being edited. |
protected com.klg.jclass.chart3d.Chart3dDataView |
dataView
The dataview whose data is being edited |
protected com.klg.jclass.chart3d.JCData3dIndex |
index
Data index (either (x, y) or (series, point)) pointing to the data point being edited. |
protected double |
origZValue
Save in case cancel is called |
protected Point |
p
Current point |
Fields inherited from class com.klg.jclass.chart3d.j2d.actions.BaseAction |
ANIMATING, chart3dArea, enabled, NONE, START, status |
Constructor Summary | |
EditAction()
Default constructor. |
Method Summary | |
void |
animate(InputEvent event,
int x,
int y)
Called by JCChartArea when the action is to be
animated. |
void |
cancel()
Called by JCChart3dArea when the action is cancelled |
void |
end(InputEvent event,
int x,
int y)
Called by JCChart3dArea when the action is over. |
void |
reanimate(int x,
int y)
Called by JCChar3dtArea when the chart area has been refreshed
and the animation must be redrawn. |
void |
start(InputEvent event,
int x,
int y)
Called by JCChart3dArea when the action is started. |
Methods inherited from class com.klg.jclass.chart3d.j2d.actions.BaseAction |
drawPreview, getChart3d, getChart3dArea, initialize, isEnabled, setChart3dArea, setEnabled |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.chart3d.Chart3dDataView dataView
protected com.klg.jclass.chart3d.Chart3dData data
protected com.klg.jclass.chart3d.JCData3dIndex index
protected Point p
protected double origZValue
Constructor Detail |
public EditAction()
Method Detail |
public void start(InputEvent event, int x, int y)
JCChart3dArea
when the action is started. For
the edit action, this method picks a point to be edited.
start
in interface JCAction
start
in class BaseAction
event
- The event for the actionx
- The x position of the eventy
- The y position of the eventpublic void animate(InputEvent event, int x, int y)
JCChartArea
when the action is to be
animated. For the edit action, this method calls the showEdit()
method on the drawable. This technique allows bar charts and
line charts to show data editing differently.
animate
in interface JCAction
animate
in class BaseAction
event
- The event for the actionx
- The x position of the eventy
- The y position of the eventpublic void reanimate(int x, int y)
JCChar3dtArea
when the chart area has been refreshed
and the animation must be redrawn.
reanimate
in interface JCAction
reanimate
in class BaseAction
x
- The x position of the eventy
- The y position of the eventpublic void end(InputEvent event, int x, int y)
JCChart3dArea
when the action is over. For the edit
action, this method calls endEdit()
on the drawable, then edits
the point. Note that currently, points can only be edited in the z
direction.
end
in interface JCAction
end
in class BaseAction
event
- The event for the actionx
- The x position of the eventy
- The y position of the eventpublic void cancel()
JCChart3dArea
when the action is cancelled
cancel
in interface JCAction
cancel
in class BaseAction
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |