JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class JCActionAdapter

java.lang.Object
  |
  +--com.klg.jclass.chart3d.JCActionAdapter
All Implemented Interfaces:
JCAction

public class JCActionAdapter
extends Object
implements JCAction

Convenience class that implements the JCACtion interface. The methods in this adapter are called by the JCChart3dArea object when a user action is started, animated, reanimated, ended, or cancelled.


Constructor Summary
JCActionAdapter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCActionAdapter

public JCActionAdapter()
Method Detail

setChart3dArea

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

Specified by:
setChart3dArea in interface JCAction
Parameters:
chart3dArea - the new JCChart3dArea object

getChart3dArea

public com.klg.jclass.chart3d.JCChart3dArea getChart3dArea()
Returns the associated JCChart3dArea object. This must be overridden by subclasses.

Specified by:
getChart3dArea in interface JCAction
Returns:
the current JCChart3dArea object

initialize

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

Specified by:
initialize in interface JCAction
Parameters:
object - initialization parameters

start

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

Specified by:
start in interface JCAction
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.

Specified by:
animate in interface JCAction
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.

Specified by:
reanimate in interface JCAction
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.

Specified by:
end in interface JCAction
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.

Specified by:
cancel in interface JCAction

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