JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d.j3d.actions
Class EditAction

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

public class EditAction
extends BaseAction

Handler object for edit actions within JClass Chart 3D Java3D. 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.

See Also:
JCAction, JCActionTable, BaseAction, Serialized Form

Field Summary
protected  com.klg.jclass.chart3d.j3d.DataAdjustmentAxis adjustAxis
           
protected  com.klg.jclass.chart3d.j3d.JCChart3dAreaJava3d area
           
protected  Canvas3D canvas3D
           
protected  BranchGroup objRoot
           
protected  double radiusOfInfluence
           
protected  Vector3d unitZ
           
 
Fields inherited from class com.klg.jclass.chart3d.j3d.actions.BaseAction
ANIMATING, chart3d, chart3dArea, currXform, enabled, invert, last, NONE, pickCanvas, plotCube, START, status, transformGroup, transformX, transformY, translation, ViewerTG, virtualUniverse, x_factor, y_factor, z_factor
 
Constructor Summary
EditAction()
           
 
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.
 double getRadiusOfInfluence()
           
 void initialize(Object object)
          Initialize the action with the objects need to carry out the action, such as the chart area, virtualUniverse, plotCube, etc.
 void reanimate(int x, int y)
          Called by JCChart3dArea when the chart area has been refreshed and the animation must be redrawn.
 void setRadiusOfInfluence(double radius)
           
 void start(InputEvent event, int x, int y)
          Called by JCChart3dArea when the action is started.
 
Methods inherited from class com.klg.jclass.chart3d.j3d.actions.BaseAction
doEnd, doStart, getChart3d, getChart3dArea, getScaleFactorX, getScaleFactorY, getScaleFactorZ, isEnabled, setChart3dArea, setEnabled, setScaleFactorX, setScaleFactorY, setScaleFactorZ
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

area

protected com.klg.jclass.chart3d.j3d.JCChart3dAreaJava3d area

objRoot

protected BranchGroup objRoot

canvas3D

protected Canvas3D canvas3D

adjustAxis

protected com.klg.jclass.chart3d.j3d.DataAdjustmentAxis adjustAxis

radiusOfInfluence

protected double radiusOfInfluence

unitZ

protected Vector3d unitZ
Constructor Detail

EditAction

public EditAction()
Method Detail

initialize

public void initialize(Object object)
Description copied from class: BaseAction
Initialize the action with the objects need to carry out the action, such as the chart area, virtualUniverse, plotCube, etc. These are store in an ActionHandlerParams object.

Specified by:
initialize in interface JCAction
Overrides:
initialize in class BaseAction
Parameters:
object - Initialization parameters

start

public void start(InputEvent event,
                  int x,
                  int y)
Description copied from class: BaseAction
Called by JCChart3dArea when the action is started.

Specified by:
start in interface JCAction
Specified by:
start in class BaseAction
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)
Description copied from class: BaseAction
Called by JCChart3dArea when the action is to be animated.

Specified by:
animate in interface JCAction
Specified by:
animate in class BaseAction
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)
Description copied from class: BaseAction
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)
Description copied from class: BaseAction
Called by JCChart3dArea when the action is over.

Specified by:
end in interface JCAction
Specified by:
end in class BaseAction
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()
Description copied from class: BaseAction
Called by JCChart3dArea when the action is cancelled

Specified by:
cancel in interface JCAction
Specified by:
cancel in class BaseAction

setRadiusOfInfluence

public void setRadiusOfInfluence(double radius)

getRadiusOfInfluence

public double getRadiusOfInfluence()

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