JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d.j2d.actions
Class SwitchRotateEyeAction

java.lang.Object
  |
  +--com.klg.jclass.chart3d.j2d.actions.BaseAction
        |
        +--com.klg.jclass.chart3d.j2d.actions.SwitchRotateEyeAction
All Implemented Interfaces:
JCAction, Serializable

public class SwitchRotateEyeAction
extends BaseAction

Handler object for rotate actions within JClass Chart 3D. When a rotate action is started, JCChart3dArea will create an instance of Chart3dRotateHandler and call start(), animate() and end() at appropriate points. The mapping between key combinations and JClass Chart3D events is specified by EventTrigger.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.klg.jclass.chart3d.j2d.actions.BaseAction
ANIMATING, chart3dArea, enabled, NONE, START, status
 
Constructor Summary
SwitchRotateEyeAction()
          Default constructor.
 
Method Summary
 void animate(InputEvent event, int x, int y)
          This action switches the rotation type to be about the eye
 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 JCChart3dArea 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
 

Constructor Detail

SwitchRotateEyeAction

public SwitchRotateEyeAction()
Default constructor.

Method Detail

start

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

Specified by:
start in interface JCAction
Specified by:
start in class BaseAction
Parameters:
event - The event for the action
x - The x pixel position where customizer is starting
y - The y pixel position where customizer is starting

animate

public void animate(InputEvent event,
                    int x,
                    int y)
This action switches the rotation type to be about the eye

Specified by:
animate in interface JCAction
Specified by:
animate in class BaseAction
Parameters:
event - The event for the action
x - The current x position to animate the action
y - The current y position to animate the action
See Also:
BaseAction, RotateAction

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
Specified by:
reanimate in class BaseAction
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
Specified by:
end in class BaseAction
Parameters:
event - The event for the 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
Specified by:
cancel in class BaseAction

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