|
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
This is the sub-portion of the overall chart3d real estate onto which the
actual linear/circular portion of the chart3d 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.JCAction |
actionHandler
If an action is in process, this is the handler that will handle it. |
protected com.klg.jclass.chart3d.Anno |
anno
|
protected com.klg.jclass.chart3d.JCAxis[] |
axes
A list of the X, Y, and Z axis objects. |
protected com.klg.jclass.chart3d.JCBar |
bar
Object that controls bar chart only properties. |
protected boolean |
changed
Boolean that represents the value of the Changed property. |
protected int |
changedFlag
|
protected com.klg.jclass.chart3d.JCChart3d |
chart3d
The chart3d to be placed in this chart3d area. |
protected com.klg.jclass.chart3d.Cube |
cube
|
protected boolean |
inAction
Asks if we are currently in an action. |
protected Point |
last
The point used during last animateAction call. |
protected com.klg.jclass.chart3d.JCPlotCube |
plotCube
Object that controls properties of the plot cube. |
protected Dimension |
preferredSize
What is our preferred size? If null, the super's preferred size is used. |
protected Graphics |
rbGC
|
protected com.klg.jclass.chart3d.JCScatter |
scatter
Object that controls scatter plot only properties. |
protected com.klg.jclass.chart3d.JCSurface |
surface
Object that controls surface only properties. |
protected com.klg.jclass.chart3d.Transform |
transform
|
protected boolean |
updateParent
|
protected com.klg.jclass.chart3d.JCView3d |
view3d
An object that controls the X, Y, and Z rotation. |
protected com.klg.jclass.chart3d.JCViewport |
viewport
An object that allows the user to control the drawing viewport. |
protected com.klg.jclass.chart3d.JCAxis |
xAxis
The axis in the X direction. |
protected com.klg.jclass.chart3d.JCAxis |
yAxis
The axis in the Y direction. |
protected com.klg.jclass.chart3d.JCAxis |
zAxis
The axis in the Z direction. |
| 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 |
| Constructor Summary | |
JCChart3dArea()
No arguments constructor. |
|
JCChart3dArea(com.klg.jclass.chart3d.JCChart3d chart3d)
Creates a chart3d area for a 3D chart. |
|
| Method Summary | |
protected void |
animateAction(InputEvent event,
int x,
int y)
Calls the handler for the current action, if the current point is different from the last point. |
void |
cancel()
Stops any current action. |
void |
drawPreview(double scale,
double horizShift,
double vertShift,
double xRotation,
double yRotation,
double zRotation,
int axisId,
int x,
int y)
Draws the preview cube for this chart3dArea. |
void |
drawZoomRectangle(Point p,
Point start)
Package-internal method that draws a rubber band rectangle from the point in "start" to the provided point. |
protected void |
endAction(InputEvent event,
int x,
int y)
Calls the action handler to end the current action. |
protected void |
fillWithBackgroundColor(Graphics gc)
Fills the chart area will its background color. |
com.klg.jclass.chart3d.JCAction |
getActionHandler()
Gets the action handler for this chart 3D area. |
com.klg.jclass.chart3d.Anno |
getAnno()
Gets the chart area's Anno object. |
com.klg.jclass.chart3d.JCAxis[] |
getAxes()
Returns the list of axes for this 3d chart. |
com.klg.jclass.chart3d.JCAxis |
getAxis(int axisId)
Returns the axis based on the given axisId. |
com.klg.jclass.chart3d.JCBar |
getBar()
Gets the chart area's JCBar object. |
boolean |
getChanged()
Gets the value of the Changed property. |
boolean |
getChanged(int mask)
Checks the value of the ChangedFlag property for the specified
mask (see Changeable for a list of valid masks). |
com.klg.jclass.chart3d.JCChart3d |
getChart3d()
Gets the chart area's associated JCChart3d object (normally its
parent). |
com.klg.jclass.chart3d.Cube |
getCube()
Gets the chart area's Cube object. |
Rectangle |
getDrawingArea()
Gets the bounding rectangle of the component's drawing area, (its area minus the shadows and insets). |
void |
getDrawingArea(Rectangle rect)
Gets the bounding rectangle of the component's drawing area, (its area minus the insets). |
Graphics |
getGraphics()
Overrides parent getGraphics(). |
Dimension |
getMinimumSize()
Returns the minimum size for the chart area. |
com.klg.jclass.chart3d.JCPlotCube |
getPlotCube()
Gets the chart area's JCPlotCube object. |
Dimension |
getPreferredSize()
Returns the preferred size for the chart area. |
com.klg.jclass.chart3d.JCScatter |
getScatter()
Gets the chart area's JCScatter object. |
com.klg.jclass.chart3d.JCSurface |
getSurface()
Gets the chart area's JCSurface object. |
com.klg.jclass.chart3d.Transform |
getTransform()
Gets the chart area's Transform object. |
com.klg.jclass.chart3d.JCView3d |
getView3d()
Gets the chart area's JCView3d object. |
com.klg.jclass.chart3d.JCViewport |
getViewport()
Gets the chart area's JCViewport object. |
com.klg.jclass.chart3d.JCAxis |
getXAxis()
Gets the X axis for this chart3dArea object. |
com.klg.jclass.chart3d.JCAxis |
getYAxis()
Gets the Y axis for this chart3dArea object. |
com.klg.jclass.chart3d.JCAxis |
getZAxis()
Gets the Z axis for this chart3dArea object. |
boolean |
isBatched()
Returns the value of the batched property. |
boolean |
isChanged()
Gets the value of the Changed property. |
boolean |
isChanged(int mask)
Checks the value of the ChangedFlag property for the specified
mask (see Changeable for a list of valid masks). |
boolean |
isInAction()
Gets the value of the InAction property, which is a flag that
determines whether an action is in process. |
void |
paintComponent(Graphics gc)
Renders the JCChart3dArea contents. |
protected com.klg.jclass.chart3d.JCData3dIndex |
pick(Point p,
com.klg.jclass.chart3d.Chart3dDataView dataView)
Package-internal pick method. |
void |
recalc()
If necessary, forces recalculation of the chart area. |
void |
reset()
Returns the chart back to the default viewport settings. |
protected void |
setActionHandler(com.klg.jclass.chart3d.JCAction handler)
Sets the action handler for this chart 3D area. |
void |
setAnno(com.klg.jclass.chart3d.Anno anno)
Sets the Anno object for this chart3dArea. |
void |
setAxes(com.klg.jclass.chart3d.JCAxis[] axes)
Sets all axes for the chart via an array of axes. |
void |
setAxis(com.klg.jclass.chart3d.JCAxis axis,
int axisId)
Sets an axis on the chart based on axisId. |
void |
setBackground(Color bg)
Overrides setBackground to make sure that the entire chart is
redrawn if the background is set on this subcomponent.Note: The Opaque property needs to be set to
true for the background color to be visible. |
void |
setBar(com.klg.jclass.chart3d.JCBar bar)
Sets the chart area's JCBar object. |
void |
setChanged(boolean n,
int cf)
Sets the value of the Changed property and updates the
parent object. |
void |
setChanged(boolean n,
int cf,
boolean updateParent)
Sets the value of the Changed property. |
void |
setChart3d(com.klg.jclass.chart3d.JCChart3d chart3d)
Sets the parent JCChart3d object. |
void |
setCube(com.klg.jclass.chart3d.Cube cube)
Sets the Cube object for this chart3dArea. |
void |
setForeground(Color c)
Overrides setForeground to make sure legend is marked for
redraw. |
void |
setGraphics(Graphics g)
Provides a way for the chart area to draw to a custom Graphics
object. |
void |
setInAction(boolean ia)
Sets the value of the InAction property, which is a flag that
determines whether an action is in process. |
void |
setOpaque(boolean op)
Overrides setOpaque to make sure entire chart is redrawn if
opacity is set on this subcomponent. |
void |
setPlotCube(com.klg.jclass.chart3d.JCPlotCube plotCube)
Sets the chart area's JCPlotCube object. |
void |
setPreferredSize(Dimension preferredSize)
Sets the preferred size manually for this JCChart3dArea
instance. |
void |
setScatter(com.klg.jclass.chart3d.JCScatter scatter)
Sets the chart area's JCScatter object. |
void |
setSurface(com.klg.jclass.chart3d.JCSurface surface)
Sets the chart area's JCSurface object. |
void |
setTransform(com.klg.jclass.chart3d.Transform transform)
Sets the Transform object for this chart3dArea. |
void |
setView3d(com.klg.jclass.chart3d.JCView3d view3d)
Sets the chart area's JCView3d object. |
void |
setViewport(com.klg.jclass.chart3d.JCViewport viewport)
Sets the chart area's JCViewport object. |
void |
setXAxis(com.klg.jclass.chart3d.JCAxis axis)
Sets the X axis for this chart3dArea object. |
void |
setYAxis(com.klg.jclass.chart3d.JCAxis axis)
Sets the Y axis for this chart3dArea object. |
void |
setZAxis(com.klg.jclass.chart3d.JCAxis axis)
Sets the Z axis for this chart3dArea object. |
protected void |
startAction(InputEvent event,
int x,
int y)
Starts the action stored in the actionHandler, if any. |
void |
updateParent(int cf)
Updates our parent with the changed flag mask information, and possibly repaints. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected boolean updateParent
protected Graphics rbGC
protected boolean changed
Changed property.
protected int changedFlag
protected boolean inAction
protected transient com.klg.jclass.chart3d.JCAction actionHandler
protected Dimension preferredSize
protected com.klg.jclass.chart3d.JCChart3d chart3d
protected com.klg.jclass.chart3d.JCAxis xAxis
protected com.klg.jclass.chart3d.JCAxis yAxis
protected com.klg.jclass.chart3d.JCAxis zAxis
protected com.klg.jclass.chart3d.JCAxis[] axes
protected com.klg.jclass.chart3d.JCViewport viewport
protected com.klg.jclass.chart3d.JCView3d view3d
protected com.klg.jclass.chart3d.Cube cube
protected com.klg.jclass.chart3d.JCPlotCube plotCube
protected com.klg.jclass.chart3d.Transform transform
protected com.klg.jclass.chart3d.Anno anno
protected com.klg.jclass.chart3d.JCSurface surface
protected com.klg.jclass.chart3d.JCBar bar
protected com.klg.jclass.chart3d.JCScatter scatter
protected Point last
animateAction call.
| Constructor Detail |
public JCChart3dArea()
public JCChart3dArea(com.klg.jclass.chart3d.JCChart3d chart3d)
chart3d area for a 3D chart.
chart3d - the JCChart3d whose graph will be drawn in this
chart3d area| Method Detail |
public com.klg.jclass.chart3d.JCChart3d getChart3d()
JCChart3d object (normally its
parent).
JCChart3d object referenced by this
JCChart3dAreapublic void setChart3d(com.klg.jclass.chart3d.JCChart3d chart3d)
JCChart3d object.
chart3d - The new JCChart3d objectpublic void setForeground(Color c)
setForeground to make sure legend is marked for
redraw. (Needed for outline color of swatches, which is derived from
Chart3dArea.)
setForeground in class JComponentc - The new foreground colorpublic void setBackground(Color bg)
setBackground to make sure that the entire chart is
redrawn if the background is set on this subcomponent.Opaque property needs to be set to
true for the background color to be visible.
JCChartArea is transparent by default.
setBackground in class JComponentbg - The new background colorpublic void setOpaque(boolean op)
setOpaque to make sure entire chart is redrawn if
opacity is set on this subcomponent.
setOpaque in class JComponentop - the new value of opaquepublic Rectangle getDrawingArea()
JComponent.setBorder(javax.swing.border.Border)public void getDrawingArea(Rectangle rect)
rect - the rectangle in which to put the drawing area informationJComponent.setBorder(javax.swing.border.Border)public Dimension getPreferredSize()
getPreferredSize in class JComponentpublic void setPreferredSize(Dimension preferredSize)
JCChart3dArea
instance.
setPreferredSize in class JComponentpreferredSize - the preferred sizepublic Dimension getMinimumSize()
getMinimumSize in class JComponentDimension object containing the minimum sizepublic com.klg.jclass.chart3d.JCAxis getAxis(int axisId)
axisId.
axisId - the axis ID (either AXIS_X, AXIS_Y,
or AXIS_Z).
JCAxis object based on the given
axisId
public void setAxis(com.klg.jclass.chart3d.JCAxis axis,
int axisId)
axisId.
axis - the new axisaxisId - Which one of X, Y, or Z axis is it?public com.klg.jclass.chart3d.JCAxis[] getAxes()
public void setAxes(com.klg.jclass.chart3d.JCAxis[] axes)
axes - an array of axes (X, Y, and Z)public com.klg.jclass.chart3d.JCAxis getXAxis()
chart3dArea object.
chart3dArea objectpublic void setXAxis(com.klg.jclass.chart3d.JCAxis axis)
chart3dArea object.
axisId of the axis that is passed in must
be equal to JCAxis.AXIS_X.
axis - the new X axispublic com.klg.jclass.chart3d.JCAxis getYAxis()
chart3dArea object.
chart3dArea objectpublic void setYAxis(com.klg.jclass.chart3d.JCAxis axis)
chart3dArea object.
axisId of the axis that is passed in must
be equal to JCAxis.AXIS_Y.
axis - the new Y axispublic com.klg.jclass.chart3d.JCAxis getZAxis()
chart3dArea object.
chart3dArea objectpublic void setZAxis(com.klg.jclass.chart3d.JCAxis axis)
chart3dArea object.
axisId of the axis that is passed in must
be equal to JCAxis.AXIS_Z.
axis - the new Z axispublic com.klg.jclass.chart3d.JCViewport getViewport()
JCViewport object.
JCViewport object referenced by this
JCChart3dAreapublic void setViewport(com.klg.jclass.chart3d.JCViewport viewport)
JCViewport object.
viewport - the new JCViewport objectpublic com.klg.jclass.chart3d.JCView3d getView3d()
JCView3d object.
JCView3d object referenced by this
JCChart3dAreapublic void setView3d(com.klg.jclass.chart3d.JCView3d view3d)
JCView3d object.
view3d - the new JCView3d objectpublic com.klg.jclass.chart3d.JCPlotCube getPlotCube()
JCPlotCube object.
JCPlotCube object referenced by this
JCChart3dAreapublic void setPlotCube(com.klg.jclass.chart3d.JCPlotCube plotCube)
JCPlotCube object.
plotCube - the new JCPlotCube objectpublic com.klg.jclass.chart3d.JCSurface getSurface()
JCSurface object.
JCSurface object referenced by this
JCChart3dAreapublic void setSurface(com.klg.jclass.chart3d.JCSurface surface)
JCSurface object.
surface - the new chart area surface objectpublic com.klg.jclass.chart3d.JCBar getBar()
JCBar object.
JCBar object referenced by this
JCChart3dAreapublic void setBar(com.klg.jclass.chart3d.JCBar bar)
JCBar object.
bar - the new chart area bar objectpublic com.klg.jclass.chart3d.JCScatter getScatter()
JCScatter object.
JCScatter object referenced by this
JCChart3dAreapublic void setScatter(com.klg.jclass.chart3d.JCScatter scatter)
JCScatter object.
scatter - the new chart area scatter objectpublic com.klg.jclass.chart3d.Cube getCube()
Cube object.
Cube object referenced by this
JCChart3dAreapublic void setCube(com.klg.jclass.chart3d.Cube cube)
Cube object for this chart3dArea.
cube - the new Cube objectpublic com.klg.jclass.chart3d.Transform getTransform()
Transform object.
Transform object referenced by this
JCChart3dAreapublic void setTransform(com.klg.jclass.chart3d.Transform transform)
Transform object for this chart3dArea.
transform - the new transform objectpublic com.klg.jclass.chart3d.Anno getAnno()
Anno object.
Anno object referenced by this
JCChart3dAreapublic void setAnno(com.klg.jclass.chart3d.Anno anno)
Anno object for this chart3dArea.
anno - the new Anno objectpublic boolean getChanged()
Changed property.
The Changed property determines whether the object needs
to be recalculated.
getChanged in interface Changeabletrue if the object has been changed and needs
recalculation; false otherwisepublic boolean getChanged(int mask)
ChangedFlag property for the specified
mask (see Changeable for a list of valid masks).
The ChangedFlag property determines the action the object needs
to take in regards to the current change.
getChanged in interface Changeablemask - the mask to check against
true if the specified mask exists in the
ChangedFlag property; false otherwisepublic final boolean isChanged()
Changed property.
The Changed property determines whether the object needs
to be recalculated.
isChanged in interface Changeabletrue if the object has been changed and needs
recalculation; false otherwisepublic final boolean isChanged(int mask)
ChangedFlag property for the specified
mask (see Changeable for a list of valid masks).
The ChangedFlag property determines the action the object needs
to take in regards to the current change.
isChanged in interface Changeablemask - the mask to check against
true if the specified mask exists in the
ChangedFlag property; false otherwise
public void setChanged(boolean n,
int cf)
Changed property and updates the
parent object.
The Changed property determines whether the object needs
to be recalculated.
setChanged in interface Changeablen - new value for Changedcf - the change flag mask used to check which type of change is needed
public void setChanged(boolean n,
int cf,
boolean updateParent)
Changed property.
The Changed property determines whether the object needs
to be recalculated.
setChanged in interface Changeablen - new value for Changedcf - the change flag mask used to check which type of change is neededupdateParent - if true, the parent is updated; otherwise,
the parent is not updated (the "update" semantics are up to the
implementor)public com.klg.jclass.chart3d.JCAction getActionHandler()
protected void setActionHandler(com.klg.jclass.chart3d.JCAction handler)
handler - the new action handler to usepublic boolean isInAction()
InAction property, which is a flag that
determines whether an action is in process.
public void setInAction(boolean ia)
InAction property, which is a flag that
determines whether an action is in process.
ia - Are we in an action?protected void fillWithBackgroundColor(Graphics gc)
gc - the graphics object to use for fillingpublic void paintComponent(Graphics gc)
JCChart3dArea contents.
paintComponent in class JComponentgc - graphics context used for drawingpublic void updateParent(int cf)
cf - the change flag mask used to check which type of change is neededpublic void recalc()
protected void animateAction(InputEvent event,
int x,
int y)
event - the event for the actionx - the X position of the current actiony - the Y position of the current action
protected void endAction(InputEvent event,
int x,
int y)
event - the event for the actionx - the X position of the current actiony - the Y position of the current action
protected void startAction(InputEvent event,
int x,
int y)
actionHandler, if any.
event - the event for the actionx - the X position of the actiony - the Y position of the action
public void drawPreview(double scale,
double horizShift,
double vertShift,
double xRotation,
double yRotation,
double zRotation,
int axisId,
int x,
int y)
chart3dArea.
scale - the scale of the preview cubehorizShift - the horizontal shift of the preview cubevertShift - the vertical shift of the preview cubexRotation - the xRotation angle of the preview cubeyRotation - the yRotation angle of the preview cubezRotation - the zRotation angle of the preview cubeaxisId - this determines the type of previewingx - the current X position of the mouse (needed for EYE
previewing)y - the current Y position of the mouse (needed for EYE
previewing)
public void drawZoomRectangle(Point p,
Point start)
p - coordinates to use as the end point for the rectanglestart - starting point for zoom rectanglepublic void reset()
public void cancel()
public boolean isBatched()
isBatched in interface Changeablefalse
protected com.klg.jclass.chart3d.JCData3dIndex pick(Point p,
com.klg.jclass.chart3d.Chart3dDataView dataView)
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 Graphics getGraphics()
getGraphics(). If another
Graphics object has been set to be the current one, it is
returned; otherwise, the superclass's getGraphics() method is
called.
getGraphics in class JComponentGraphics object to use to draw this chart areapublic void setGraphics(Graphics g)
Graphics
object. Call with a null to specify use of the default Graphics
object used to draw to the screen.
g - Graphics object to use for drawing
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||