JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d.j3d
Class JCPlotCubeJava3d

java.lang.Object
  |
  +--com.klg.jclass.chart3d.ParentTrackChange
        |
        +--com.klg.jclass.chart3d.JCPlotCube
              |
              +--com.klg.jclass.chart3d.j3d.JCPlotCubeJava3d
All Implemented Interfaces:
Serializable

public class JCPlotCubeJava3d
extends JCPlotCube

The JCPlotCubeJava3d class creates the cube that surrounds the surface, bar, or scatter plot.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.klg.jclass.chart3d.JCPlotCube
area, background, ceiling, floor, foreground, xNormalizedScale, xScale, yNormalizedScale, yScale, zNormalizedScale, zScale
 
Fields inherited from class com.klg.jclass.chart3d.ParentTrackChange
parents
 
Constructor Summary
JCPlotCubeJava3d(com.klg.jclass.chart3d.j3d.JCChart3dAreaJava3d chart3dAreaX)
          Constructor given a parent chart3d area.
 
Method Summary
 void addAnnotationBranchGroup(com.klg.jclass.chart3d.j3d.JCBranchGroup bg)
          Adds a BranchGroup containing axis annotation.
protected  void addDataGroup(BranchGroup bgDataGroup)
           
protected  void addGridLines()
           
 void addPickAxis(BranchGroup bgPick)
          Adds a marker to the chart to show a pick location.
 void createProjections()
          Creates projections of the chart on to the floor and ceiling of the plotcube.
 void flipWallImage(int face, int axis)
          Flips the image 180 degrees about the specified axis.
 com.klg.jclass.chart3d.j3d.JCBranchGroup getContent()
          Returns the BranchGroup containing the plotcube.
 float getDefaultTransparency()
          Returns the default transparency value for the solid walls of the plotcube.
 Color getOutlineColor()
          Returns the outline color of the solid walls of the plotcube.
 Transform3D getPlotCubeScaling()
          Returns the scaling transform for the plotcube.
 com.klg.jclass.chart3d.j3d.PlotCubeTransformGroup getTransformGroup()
          Returns the TransformGroup containing the plotcube.
protected  void getTranslation(Vector3d translation)
           
 double getWallImageAngle(int face)
           
 Color getWireframeColor()
          Returns the color of the wireframe outline of the plotcube.
 void removeAllAnnotation()
          Removes all BranchGroups containing annotation.
protected  void removeAllDataGroups()
           
 void removeCeilingProjection()
          Removes chart projection from the ceiling of the plotcube.
 void removeFloorProjection()
          Removes chart projection from the floor of the plotcube.
 void removePickAxis()
          Removes a pick marker from the chart.
protected  void rotate(double angleX, double angleY, double angleZ)
           
 void rotateWallImage(int face, double angle)
           
 void setBackground(Color color)
          Sets the fill color of the solid walls of the plotcube.
 void setDefaultTransparency(float value)
          Sets the default transparency value for the solid walls of the plotcube.
 void setForeground(Color foreground)
          Sets the foreground color for the plotcube.
 void setOutlineColor(Color color)
          The solid walls of the plotcube have both a fill color and an outline color.
protected  void setPerspective()
           
 void setScale(double scale)
          Applies a uniform scaling factor to the plotcube.
 void setSolidWallsVisible(boolean fVisible)
          Displays or hides the solid walls of the plotcube.
 void setTexture(com.klg.jclass.chart3d.j3d.JCTexture2D texture)
           
 void setWallImage(int face, String filename, double angle)
           
 void setWallImage(String filename)
           
 void setWallOuterFaceVisible(int face, boolean flag)
          Sets the visibility of the exterior face of a plotcube wall.
 void setWallTexture(int face, com.klg.jclass.chart3d.j3d.JCTexture2D texture, double angle)
           
 void setWallTransparency(int face, float transparency)
          Sets the transparency for a specified wall of the plotcube.
 void setWireframeColor(Color color)
          Sets the color of the wireframe outline of the plotcube.
 void setWireFrameVisible(boolean fVisible)
          Displays or hides a wireframe outline of the plotcube.
 void setXScale(double xScale)
          Sets the PlotCube's x scale (default value is 1.0).
 void setYScale(double yScale)
          Sets the PlotCube's y scale (default value is 1.0).
 void setZScale(double zScale)
          Sets the PlotCube's z scale (default value is 1.0).
protected  void translate(Vector3d translation)
           
 void updateProjections()
          Replaces existing floor and ceiling projections.
 
Methods inherited from class com.klg.jclass.chart3d.JCPlotCube
createParallelProjection, createParallelProjection, createParallelProjection, draw2dBoundingBox, draw3dBoundingBox, drawBoundingBox, drawEdge, drawGridLines, drawLine, drawProjection, finishEdges, getBackground, getCeiling, getChart3dArea, getDrawBackground, getDrawForeground, getFloor, getForeground, getXNormalizedScale, getXScale, getYNormalizedScale, getYScale, getZNormalizedScale, getZScale, hasCeilingProjection, hasFloorProjection, hasProjections, normalizeScales, setCeiling, setChart3dArea, setFloor, setPoint, updateBoundingBox
 
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
 

Constructor Detail

JCPlotCubeJava3d

public JCPlotCubeJava3d(com.klg.jclass.chart3d.j3d.JCChart3dAreaJava3d chart3dAreaX)
Constructor given a parent chart3d area. All other values at default.

Parameters:
chart3dAreaX - the parent chart3d area
Method Detail

createProjections

public void createProjections()
Creates projections of the chart on to the floor and ceiling of the plotcube.


removeCeilingProjection

public void removeCeilingProjection()
Removes chart projection from the ceiling of the plotcube.


removeFloorProjection

public void removeFloorProjection()
Removes chart projection from the floor of the plotcube.


updateProjections

public void updateProjections()
Replaces existing floor and ceiling projections.


addGridLines

protected void addGridLines()

getContent

public com.klg.jclass.chart3d.j3d.JCBranchGroup getContent()
Returns the BranchGroup containing the plotcube.

Returns:
BranchGroup containing the plotcube

getTransformGroup

public com.klg.jclass.chart3d.j3d.PlotCubeTransformGroup getTransformGroup()
Returns the TransformGroup containing the plotcube.

Returns:
the PlotCubeTransformGroup containing the plotcube

setPerspective

protected void setPerspective()

setWireFrameVisible

public void setWireFrameVisible(boolean fVisible)
Displays or hides a wireframe outline of the plotcube.

Parameters:
fVisible - true to display the wireframe, false to hide it

setWireframeColor

public void setWireframeColor(Color color)
Sets the color of the wireframe outline of the plotcube.

Parameters:
color - the desired color of the plotcube wireframe

getWireframeColor

public Color getWireframeColor()
Returns the color of the wireframe outline of the plotcube.

Returns:
the color of the plotcube's wireframe

setSolidWallsVisible

public void setSolidWallsVisible(boolean fVisible)
Displays or hides the solid walls of the plotcube.

Parameters:
fVisible - true to display the solid walls, false to hide them

setOutlineColor

public void setOutlineColor(Color color)
The solid walls of the plotcube have both a fill color and an outline color. This method sets the outline color (not to be confused with the wireframe color).

Parameters:
color - the desired outline color for the solid plotcube walls

getOutlineColor

public Color getOutlineColor()
Returns the outline color of the solid walls of the plotcube.

Returns:
the outline color of the solid plotcube walls

setForeground

public void setForeground(Color foreground)
Sets the foreground color for the plotcube.

Overrides:
setForeground in class JCPlotCube
Parameters:
foreground - the desired foreground color of the plotcube

setBackground

public void setBackground(Color color)
Sets the fill color of the solid walls of the plotcube.

Overrides:
setBackground in class JCPlotCube
Parameters:
color - the desired fill color for the solid plotcube walls

setWallImage

public void setWallImage(int face,
                         String filename,
                         double angle)

setWallTexture

public void setWallTexture(int face,
                           com.klg.jclass.chart3d.j3d.JCTexture2D texture,
                           double angle)

setWallImage

public void setWallImage(String filename)

rotateWallImage

public void rotateWallImage(int face,
                            double angle)

getWallImageAngle

public double getWallImageAngle(int face)

flipWallImage

public void flipWallImage(int face,
                          int axis)
Flips the image 180 degrees about the specified axis.

Parameters:
face -
axis -

setTexture

public void setTexture(com.klg.jclass.chart3d.j3d.JCTexture2D texture)

setWallOuterFaceVisible

public void setWallOuterFaceVisible(int face,
                                    boolean flag)
Sets the visibility of the exterior face of a plotcube wall.

Parameters:
face - an integer value identifying a particular wall of the plotcube
flag - true to set the exterior face visible, false to hide the exterior face

setDefaultTransparency

public void setDefaultTransparency(float value)
Sets the default transparency value for the solid walls of the plotcube.

Parameters:
value - the default transparency value, with 0.0 being fully opaque and 1.0 being fully transparent

getDefaultTransparency

public float getDefaultTransparency()
Returns the default transparency value for the solid walls of the plotcube.

Returns:
the default transparency value, with 0.0 being fully opaque and 1.0 being fully transparent

setWallTransparency

public void setWallTransparency(int face,
                                float transparency)
Sets the transparency for a specified wall of the plotcube.

Parameters:
face - an integer value identifying a particular wall of the plotcube
transparency - the transparency value, with 0.0 being fully opaque and 1.0 being fully transparent

rotate

protected void rotate(double angleX,
                      double angleY,
                      double angleZ)

translate

protected void translate(Vector3d translation)

getTranslation

protected void getTranslation(Vector3d translation)

setXScale

public void setXScale(double xScale)
Sets the PlotCube's x scale (default value is 1.0).

Overrides:
setXScale in class JCPlotCube
Parameters:
xScale - the new x scale

setYScale

public void setYScale(double yScale)
Sets the PlotCube's y scale (default value is 1.0).

Overrides:
setYScale in class JCPlotCube
Parameters:
yScale - the new y scale

setZScale

public void setZScale(double zScale)
Sets the PlotCube's z scale (default value is 1.0).

Overrides:
setZScale in class JCPlotCube
Parameters:
zScale - the new z scale

setScale

public void setScale(double scale)
Applies a uniform scaling factor to the plotcube.

Parameters:
scale - the new z scale

addDataGroup

protected void addDataGroup(BranchGroup bgDataGroup)

removeAllDataGroups

protected void removeAllDataGroups()

addPickAxis

public void addPickAxis(BranchGroup bgPick)
Adds a marker to the chart to show a pick location.

Parameters:
bgPick - a BranchGroup containing the marker

removePickAxis

public void removePickAxis()
Removes a pick marker from the chart.


addAnnotationBranchGroup

public void addAnnotationBranchGroup(com.klg.jclass.chart3d.j3d.JCBranchGroup bg)
Adds a BranchGroup containing axis annotation.

Parameters:
bg - a BranchGroup containing the annotation

removeAllAnnotation

public void removeAllAnnotation()
Removes all BranchGroups containing annotation.


getPlotCubeScaling

public Transform3D getPlotCubeScaling()
Returns the scaling transform for the plotcube.

Returns:
the Transform3D used to scale the plotcube

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