|
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.j3d.actions.BaseAction
BaseAction is an abstract base class for the Java3D actions of JCChart 3D.
It implements the JCAction interface used for JCChart 3D actions. It defines
methods for starting, animating, ending and cancelling an action.
JCChart3dArea
will create an instance of the appropriate
JCAction
when an action is started, and will call
start()
, animate()
and end()
during
mouseDown()
, mouseDrag()
and
mouseUp()
respectively. The appropriate JCAction
is dependent on the event. A mapping from event to action type is stored
the chart's JCActionTable
JCAction
,
JCActionTable
,
Serialized FormField Summary | |
static int |
ANIMATING
|
protected com.klg.jclass.chart3d.j3d.JCChart3dJava3d |
chart3d
|
protected com.klg.jclass.chart3d.JCChart3dArea |
chart3dArea
Parent object on which the action occurs. |
protected Transform3D |
currXform
|
protected boolean |
enabled
Is this action enabled |
protected boolean |
invert
|
protected Point |
last
|
static int |
NONE
|
protected com.sun.j3d.utils.picking.PickCanvas |
pickCanvas
|
protected com.klg.jclass.chart3d.j3d.JCPlotCubeJava3d |
plotCube
|
static int |
START
|
protected int |
status
|
protected com.klg.jclass.chart3d.j3d.ActionTransformGroup |
transformGroup
|
protected Transform3D |
transformX
|
protected Transform3D |
transformY
|
protected Vector3d |
translation
|
protected TransformGroup |
ViewerTG
|
protected com.klg.jclass.chart3d.j3d.JC3DUniverse |
virtualUniverse
|
protected double |
x_factor
|
protected double |
y_factor
|
protected double |
z_factor
|
Constructor Summary | |
BaseAction()
Constructs a BaseAction. |
Method Summary | |
abstract void |
animate(InputEvent event,
int x,
int y)
Called by JCChart3dArea when the action is to be animated. |
abstract void |
cancel()
Called by JCChart3dArea when the action is cancelled |
protected void |
doEnd(InputEvent event,
int x,
int y)
|
protected void |
doStart(InputEvent event,
int x,
int y)
|
abstract void |
end(InputEvent event,
int x,
int y)
Called by JCChart3dArea when the action is over. |
com.klg.jclass.chart3d.JCChart3d |
getChart3d()
Return the JClass Chart 3D object witch which this action handler is associated. |
com.klg.jclass.chart3d.JCChart3dArea |
getChart3dArea()
Returns the parent JCChart3dArea object |
double |
getScaleFactorX()
|
double |
getScaleFactorY()
|
double |
getScaleFactorZ()
|
void |
initialize(Object object)
Initialize the action with the objects need to carry out the action, such as the chart area, virtualUniverse, plotCube, etc. |
boolean |
isEnabled()
Is this action handler enabled? |
abstract 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 parent JCChart3dArea object |
void |
setEnabled(boolean enabled)
Sets whether this action handler is enabled |
void |
setScaleFactorX(double scalefactor)
|
void |
setScaleFactorY(double scalefactor)
|
void |
setScaleFactorZ(double scalefactor)
|
abstract 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 |
Field Detail |
public static final int NONE
public static final int START
public static final int ANIMATING
protected com.sun.j3d.utils.picking.PickCanvas pickCanvas
protected com.klg.jclass.chart3d.j3d.ActionTransformGroup transformGroup
protected Transform3D transformX
protected Transform3D transformY
protected Transform3D currXform
protected TransformGroup ViewerTG
protected Point last
protected double x_factor
protected double y_factor
protected double z_factor
protected boolean invert
protected Vector3d translation
protected com.klg.jclass.chart3d.j3d.JC3DUniverse virtualUniverse
protected com.klg.jclass.chart3d.j3d.JCChart3dJava3d chart3d
protected com.klg.jclass.chart3d.j3d.JCPlotCubeJava3d plotCube
protected com.klg.jclass.chart3d.JCChart3dArea chart3dArea
protected boolean enabled
protected int status
Constructor Detail |
public BaseAction()
JCChart3dArea
instance so this needs to be set later.
Method Detail |
public void setChart3dArea(com.klg.jclass.chart3d.JCChart3dArea chart3dArea)
setChart3dArea
in interface JCAction
chart3dArea
- The new JCChart3dArea objectpublic com.klg.jclass.chart3d.JCChart3dArea getChart3dArea()
getChart3dArea
in interface JCAction
public void setEnabled(boolean enabled)
enabled
- Is this action handler enabled?public boolean isEnabled()
public void initialize(Object object)
initialize
in interface JCAction
object
- Initialization parameterspublic abstract void start(InputEvent event, int x, int y)
JCChart3dArea
when the action is started.
start
in interface JCAction
event
- The InputEvent that triggered this actionx
- The x position to start the actiony
- The y position to start the actionpublic abstract void animate(InputEvent event, int x, int y)
JCChart3dArea
when the action is to be animated.
animate
in interface JCAction
event
- The InputEvent that triggered this actionx
- The current x position to animate the actiony
- The current y position to animate the actionpublic abstract void reanimate(int x, int y)
JCChart3dArea
when the chart area has been refreshed
and the animation must be redrawn.
reanimate
in interface JCAction
x
- The x position to re-animate the actiony
- The y position to re-animate the actionpublic abstract void end(InputEvent event, int x, int y)
JCChart3dArea
when the action is over.
end
in interface JCAction
event
- The InputEvent that triggered this actionx
- The x position to end the actiony
- The y position to end the actionpublic abstract void cancel()
JCChart3dArea
when the action is cancelled
cancel
in interface JCAction
public com.klg.jclass.chart3d.JCChart3d getChart3d()
public void setScaleFactorX(double scalefactor)
public void setScaleFactorY(double scalefactor)
public void setScaleFactorZ(double scalefactor)
public double getScaleFactorX()
public double getScaleFactorY()
public double getScaleFactorZ()
protected void doStart(InputEvent event, int x, int y)
protected void doEnd(InputEvent event, int x, int y)
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |