JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Interface JCAction

All Known Subinterfaces:
JCActionJ3D
All Known Implementing Classes:
BaseAction, BaseAction, JCActionAdapter

public interface JCAction

The action interface for JClass Chart 3D. The methods in this interface are called by the JCChart3dArea object when a user action is started, annimated, reanimated, ended, or cancelled.


Method Summary
 void animate(InputEvent event, int x, int y)
          Called by JCChart3dArea 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.
 com.klg.jclass.chart3d.JCChart3dArea getChart3dArea()
          Returns the associated JCChart3dArea object
 void initialize(Object object)
          Called by JCChart3dArea when the action is initialized.
 void reanimate(int x, int y)
          Called by JCChart3dArea when the chart area has been refreshed and the animation must be redrawn.
 void setChart3dArea(com.klg.jclass.chart3d.JCChart3dArea chart3dArea)
          Sets the associated JCChart3dArea object
 void start(InputEvent event, int x, int y)
          Called by JCChart3dArea when the action is started.
 

Method Detail

setChart3dArea

public void setChart3dArea(com.klg.jclass.chart3d.JCChart3dArea chart3dArea)
Sets the associated JCChart3dArea object

Parameters:
chart3dArea - The new JCChart3dArea object

getChart3dArea

public com.klg.jclass.chart3d.JCChart3dArea getChart3dArea()
Returns the associated JCChart3dArea object

Returns:
The current JCChart3dArea object

initialize

public void initialize(Object object)
Called by JCChart3dArea when the action is initialized.

Parameters:
object - Initialization parameters

start

public void start(InputEvent event,
                  int x,
                  int y)
Called by JCChart3dArea when the action is started.

Parameters:
event - The InputEvent that triggered this action
x - The x position to start the action
y - The y position to start the action

animate

public void animate(InputEvent event,
                    int x,
                    int y)
Called by JCChart3dArea when the action is to be animated.

Parameters:
event - The InputEvent that triggered this action
x - The current x position to animate the action
y - The current y position to animate the action

reanimate

public void reanimate(int x,
                      int y)
Called by JCChart3dArea when the chart area has been refreshed and the animation must be redrawn.

Parameters:
x - The x position to re-animate the action
y - The y position to re-animate the action

end

public void end(InputEvent event,
                int x,
                int y)
Called by JCChart3dArea when the action is over.

Parameters:
event - The InputEvent that triggered this action
x - The x position to end the action
y - The y position to end the action

cancel

public void cancel()
Called by JCChart3dArea when the action is cancelled


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