JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class JCView3d

java.lang.Object
  |
  +--com.klg.jclass.chart3d.ParentTrackChange
        |
        +--com.klg.jclass.chart3d.JCView3d
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JCView3dJava3d

public class JCView3d
extends ParentTrackChange

The JCView3d class holds information about the perspective and the rotation angles at which the users view the data in the plotcube.

See Also:
Serialized Form

Field Summary
static double MAX_PERSPECTIVE
          The maximum allowed perspective value.
static double MIN_PERSPECTIVE
          The minimum allowed perspective value.
protected  double perspective
          The plot cube perspective value (defaults to 2.5).
protected  double xRotation
          The X rotation angle.
protected  double yRotation
          The Y rotation angle.
protected  double zRotation
          The Z rotation angle.
 
Fields inherited from class com.klg.jclass.chart3d.ParentTrackChange
parents
 
Constructor Summary
JCView3d()
          No args constructor.
JCView3d(double perspective, double xRotation, double yRotation, double zRotation)
          Constructor that provides perspective and x, y, and z rotation values.
 
Method Summary
 double getPerspective()
          Returns the plot cube perspective.
 double getXRotation()
          Returns the X rotation angle.
 double getYRotation()
          Returns the Y rotation angle.
 double getZRotation()
          Returns the Z rotation angle.
 void setPerspective(double perspective)
          Sets the plot cube perspective.
 void setXRotation(double xRotation)
          Sets the X rotation angle.
 void setXYZRotation(double xRotation, double yRotation, double zRotation)
          Sets all three rotation angles at once (with only one update).
 void setYRotation(double yRotation)
          Sets the Y rotation angle.
 void setZRotation(double zRotation)
          Sets the Z rotation angle.
 
Methods inherited from class com.klg.jclass.chart3d.ParentTrackChange
addParent, clearParents, removeParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_PERSPECTIVE

public static final double MIN_PERSPECTIVE
The minimum allowed perspective value.

See Also:
Constant Field Values

MAX_PERSPECTIVE

public static final double MAX_PERSPECTIVE
The maximum allowed perspective value.

See Also:
Constant Field Values

perspective

protected double perspective
The plot cube perspective value (defaults to 2.5).


xRotation

protected double xRotation
The X rotation angle.


yRotation

protected double yRotation
The Y rotation angle.


zRotation

protected double zRotation
The Z rotation angle.

Constructor Detail

JCView3d

public JCView3d()
No args constructor. Values at their default.


JCView3d

public JCView3d(double perspective,
                double xRotation,
                double yRotation,
                double zRotation)
Constructor that provides perspective and x, y, and z rotation values.

Parameters:
perspective - the plot cube perspective value
xRotation - the X rotation angle
yRotation - the Y rotation angle
zRotation - the Z rotation angle
Method Detail

setPerspective

public void setPerspective(double perspective)
Sets the plot cube perspective.

Parameters:
perspective - the plot cube perspective

getPerspective

public double getPerspective()
Returns the plot cube perspective.

Returns:
the plot cube perspective

setXRotation

public void setXRotation(double xRotation)
Sets the X rotation angle.

Parameters:
xRotation - the X rotation angle

getXRotation

public double getXRotation()
Returns the X rotation angle.

Returns:
the X rotation angle

setYRotation

public void setYRotation(double yRotation)
Sets the Y rotation angle.

Parameters:
yRotation - the Y rotation angle

getYRotation

public double getYRotation()
Returns the Y rotation angle.

Returns:
the Y rotation angle

setZRotation

public void setZRotation(double zRotation)
Sets the Z rotation angle.

Parameters:
zRotation - the Z rotation angle

getZRotation

public double getZRotation()
Returns the Z rotation angle.

Returns:
the Z rotation angle

setXYZRotation

public void setXYZRotation(double xRotation,
                           double yRotation,
                           double zRotation)
Sets all three rotation angles at once (with only one update).

Parameters:
xRotation - the X rotation angle
yRotation - the Y rotation angle
zRotation - the Z rotation angle

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