|
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 | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--com.klg.jclass.chart3d.JCChart3dArea | +--com.klg.jclass.chart3d.j3d.JCChart3dAreaJava3d
This is the sub-portion of the overall Chart3d
real estate onto which the
actual 3D chart is drawn. Headers, footers, and legends are not drawn in
this area; the 3d graph is.
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected com.klg.jclass.chart3d.j3d.JCChart3dUniverse |
chart3dUniverse
|
protected HashMap |
shapeInstances
|
Fields inherited from class com.klg.jclass.chart3d.JCChart3dArea |
actionHandler, anno, axes, bar, changed, changedFlag, chart3d, cube, inAction, last, plotCube, preferredSize, rbGC, scatter, surface, transform, updateParent, view3d, viewport, xAxis, yAxis, zAxis |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface com.klg.jclass.chart3d.Changeable |
ALL, CONTOURS, NOTIFY_CA_RECALC, NOTIFY_CA_REDRAW, NOTIFY_LEGEND_RECALC, NOTIFY_LEGEND_REDRAW |
Fields inherited from interface com.klg.jclass.util.Changeable |
BASIC_CHANGE_MASK, LAYOUT, NO_CHANGE, NOTIFY_PARENT_LAYOUT, RECALC, REDRAW |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary | |
void |
addAmbientLight()
Adds an AmbientLight object with Chart3d default properties to the scene graph. |
void |
addDirectionalLight()
Adds a DirectionalLight object with Chart3d default properties to the scene graph. |
void |
addFog(Fog fog)
Adds a Fog object to the scene graph. |
void |
addLighting(Light light)
Adds a Light object to the scene graph. |
void |
addLinearFog(Color color)
Adds a LinearFog object to the scene graph. |
void |
addMouseListener(MouseListener listener)
Adds a MouseListener to the Chart3d area. |
void |
addMouseMotionListener(MouseMotionListener listener)
Adds a MouseMotionListener to the Chart3d area. |
void |
addPointLight()
Adds a PointLight object with Chart3d default properties to the scene graph. |
void |
addSpotLight()
Adds a SpotLight object with Chart3d default properties to the scene graph. |
void |
enableFog(boolean flag)
Enables or disables the Fog . |
com.klg.jclass.chart3d.j3d.JCChart3dUniverse |
getChart3dUniverse()
Returns a JCChart3dUniverse object containing the Java 3D scene graph. |
double |
getFogBackDistance()
Gets the back distance of the Fog object. |
Color |
getFogColor()
Gets the color of the Fog . |
double |
getFogFrontDistance()
Gets the front distance of the Fog object. |
Image |
getJava3dAsImage(Point imageLocation)
Gets the Java3d canvas used by this class as an image. |
HashMap |
getShapeInstances()
|
boolean |
isFogEnabled()
Gets the on/off state of the fog. |
void |
paintComponent(Graphics gc)
Renders the JCChart3dArea contents. |
protected com.klg.jclass.chart3d.JCData3dIndex |
pick(Point p,
com.klg.jclass.chart3d.Chart3dDataView dataView)
Overrides the base class method. |
void |
removeAllLighting()
Removes all Light objects from the scene graph. |
void |
removeFog()
Removes the current Fog object from the scene graph. |
void |
removeMouseListener(MouseListener listener)
Removes a MouseMotionListener from the Chart3d area. |
void |
removeMouseMotionListener(MouseMotionListener listener)
Removes a MouseMotionListener from the Chart3d area. |
void |
setBackground(Color color)
Sets the color of the Background node in the scene graph. |
void |
setFogBackDistance(double back)
Sets the back distance of the Fog object. |
void |
setFogColor(Color color)
Sets the color of the Fog . |
void |
setFogFrontDistance(double front)
Sets the front distance of the Fog object. |
protected void |
setPlotCubeJava3d(com.klg.jclass.chart3d.j3d.JCPlotCubeJava3d pc)
|
void |
setSceneAntialiasing(boolean antialias)
Enables or disables full scene antialiasing. |
void |
setVisible(boolean fVisible)
Displays or hides the Chart3d area. |
void |
updateAnnotation()
|
void |
updatePlotCube()
|
Methods inherited from class com.klg.jclass.chart3d.JCChart3dArea |
animateAction, cancel, drawPreview, drawZoomRectangle, endAction, fillWithBackgroundColor, getActionHandler, getAnno, getAxes, getAxis, getBar, getChanged, getChanged, getChart3d, getCube, getDrawingArea, getDrawingArea, getGraphics, getMinimumSize, getPlotCube, getPreferredSize, getScatter, getSurface, getTransform, getView3d, getViewport, getXAxis, getYAxis, getZAxis, isBatched, isChanged, isChanged, isInAction, recalc, reset, setActionHandler, setAnno, setAxes, setAxis, setBar, setChanged, setChanged, setChart3d, setCube, setForeground, setGraphics, setInAction, setOpaque, setPlotCube, setPreferredSize, setScatter, setSurface, setTransform, setView3d, setViewport, setXAxis, setYAxis, setZAxis, startAction, updateParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.klg.jclass.util.Changeable |
getChanged, getChanged, isBatched, isChanged, isChanged, setChanged, setChanged |
Field Detail |
protected com.klg.jclass.chart3d.j3d.JCChart3dUniverse chart3dUniverse
protected HashMap shapeInstances
Method Detail |
public HashMap getShapeInstances()
public com.klg.jclass.chart3d.j3d.JCChart3dUniverse getChart3dUniverse()
JCChart3dUniverse
object containing the Java 3D scene graph.
getChart3dUniverse().getVirtualUniverse().getSceneBranchGroup()
returns
a BranchGroup
containing the scene graph.
BranchGroup
containing the scene graphpublic void setBackground(Color color)
Background
node in the scene graph.
setBackground
in class JCChart3dArea
color
- the desired color for the backgroundpublic void addAmbientLight()
AmbientLight
object with Chart3d
default properties to the scene graph.
public void addSpotLight()
SpotLight
object with Chart3d
default properties to the scene graph.
public void addDirectionalLight()
DirectionalLight
object with Chart3d
default properties to the scene graph.
public void addPointLight()
PointLight
object with Chart3d
default properties to the scene graph.
public void addLighting(Light light)
Light
object to the scene graph.
light
- the Light
object to be addedpublic void removeAllLighting()
Light
objects from the scene graph.
public void addFog(Fog fog)
Fog
object to the scene graph.
fog
- the Fog
object to be addedpublic void removeFog()
Fog
object from the scene graph.
public void addLinearFog(Color color)
LinearFog
object to the scene graph.
color
- the desired color for the LinearFog
public void enableFog(boolean flag)
Fog
.
flag
- true
to enable the fog, false
to disable itpublic boolean isFogEnabled()
true
if fog is enabled, false
if it is disabledpublic void setFogColor(Color color)
Fog
.
color
- the desired color for the fog
public Color getFogColor()
Fog
.
Fog
colorpublic void setFogFrontDistance(double front)
Fog
object.
front
- the front distance in meterspublic double getFogFrontDistance()
Fog
object.
public void setFogBackDistance(double back)
Fog
object.
back
- the back distance in meterspublic double getFogBackDistance()
Fog
object.
public void setSceneAntialiasing(boolean antialias)
antialias
- true
to enable full scene antialiasing, false
to disable itpublic void setVisible(boolean fVisible)
Chart3d
area.
setVisible
in class JComponent
fVisible
- true
to display the Chart3d
area, false
to hide itprotected void setPlotCubeJava3d(com.klg.jclass.chart3d.j3d.JCPlotCubeJava3d pc)
public void paintComponent(Graphics gc)
JCChart3dArea
JCChart3dArea
contents.
paintComponent
in class JCChart3dArea
gc
- graphics context used for drawingprotected com.klg.jclass.chart3d.JCData3dIndex pick(Point p, com.klg.jclass.chart3d.Chart3dDataView dataView)
pick
in class JCChart3dArea
p
- pick point in pixels relative to JCChart3dArea
objectdataView
- data view on which to perform pick; if null, all data
views are used (currently only one data view is supported)
JCData3dIndex
object representing the picked pointpublic void updateAnnotation()
public void updatePlotCube()
public Image getJava3dAsImage(Point imageLocation)
Java3dImageable
interface.
getJava3dAsImage
in interface Java3dImageable
imageLocation
- a Point
object that will be filled with the location
of the canvas' image within this component
Image
class containg a drawn representation of this class'
3d canvas object; null if no canvas existspublic void addMouseMotionListener(MouseMotionListener listener)
MouseMotionListener
to the Chart3d
area.
addMouseMotionListener
in class Component
listener
- the MouseMotionListener
to be addedpublic void removeMouseMotionListener(MouseMotionListener listener)
MouseMotionListener
from the Chart3d
area.
removeMouseMotionListener
in class Component
listener
- the MouseMotionListener
to be removedpublic void addMouseListener(MouseListener listener)
MouseListener
to the Chart3d
area.
addMouseListener
in class Component
listener
- the MouseListener
to be addedpublic void removeMouseListener(MouseListener listener)
MouseMotionListener
from the Chart3d
area.
removeMouseListener
in class Component
listener
- the MouseListener
to be removed
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |