|
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.JCChart3d | +--com.klg.jclass.chart3d.j3d.JCChart3dJava3d
The core charting class. JCChart3dJava3d
allows the
retrieval of related objects, such as the chart area, the
legend, the header, and the footer.
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.ActionHandlerParams |
actionHandlerParams
|
protected String |
customizerName
|
Fields inherited from class com.klg.jclass.chart3d.JCChart3d |
actionTable, BAR, chart3dArea, chart3dAreaLayoutHints, customizer, dataViews, ERRMSG_CUSTOMIZER_FAILURE, fillColorIndex, footer, footerLayoutHints, header, headerLayoutHints, inKeyPress, LAST_PREDEFINED_CHART_TYPE, legend, legendLayoutHints, legendManager, lineColorIndex, listeners, locale, NONE, pickListeners, SCATTER, SURFACE, symbolColorIndex, symbolShapeIndex |
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 | |
JCChart3dJava3d()
Default constructor, required by JavaBeans. |
|
JCChart3dJava3d(int tp)
Constructor that creates a JCChart3dJava3d of a particular type. |
Method Summary | |
com.klg.jclass.chart3d.Chart3dDataView |
addDataView(int index,
int chartType)
Creates a new Chart3dDataView and adds it to the chart
at the specified index, replacing the existing
ChartDataView object at that specified index. |
void |
addMouseListener(MouseListener listener)
|
void |
addMouseMotionListener(MouseMotionListener listener)
|
protected void |
createActionHandlerParams()
Creates an ActionHandlerParams object containing all the
parameters (scene BranchGroup , BoundingSphere , and
so on) required by the action handlers. |
protected void |
createActionTable()
Creates the action table for the chart. |
protected void |
createChart3dAreaJava3d()
Creates and adds the legend to the chart. |
protected void |
createObjects(int chartType)
Creates the objects needed for this Chart3d object. |
void |
dispose()
This method must be called by an application or applet if it contains an instance of JCChart3dJava3d that needs to be garbage collected
before the application or applet terminates. |
protected com.klg.jclass.chart3d.JCAction |
getActionHandler(InputEvent event)
Retrieves the action handler that is associated with a given InputEvent . |
String |
getCustomizerName()
Gets the value of the CustomizerName property. |
protected void |
init(int chartType)
Initializes assorted chart member variables. |
void |
redraw()
Overrides the parent method to call update() instead of
repaint() . |
void |
removeMouseListener(MouseListener listener)
|
void |
removeMouseMotionListener(MouseMotionListener listener)
|
void |
setCustomizerName(String name)
Sets the value of the CustomizerName property. |
void |
snapshot(Image img)
Override the base class method to handle the Canvas3D chart area component. |
void |
update()
Forces the chart to be recalculated and laid out again. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.klg.jclass.chart3d.Chart3dGridDataModel |
getXGrid, getYGrid, getZValues |
Methods inherited from interface com.klg.jclass.util.legend.LegendComponentLayoutUser |
getPreferredSize |
Field Detail |
protected String customizerName
protected com.klg.jclass.chart3d.j3d.ActionHandlerParams actionHandlerParams
Constructor Detail |
public JCChart3dJava3d(int tp)
JCChart3dJava3d
of a particular type.
tp
- public JCChart3dJava3d()
Method Detail |
public String getCustomizerName()
JCChart3d
CustomizerName
property.
The CustomzierName
property controls the name of the customizer
used by JClass Chart 3D. It must be a full class name. The default
value is com.klg.jclass.chart3d.customizer.Chart3dCustomizer
.
getCustomizerName
in class JCChart3d
public void setCustomizerName(String name)
JCChart3d
CustomizerName
property.
The CustomzierName
property controls the name of the customizer
used by JClass Chart 3D. It must be a full class name. The default
value is com.klg.jclass.chart3d.customizer.Chart3dCustomizer
.
setCustomizerName
in class JCChart3d
name
- the new customizer nameprotected void init(int chartType)
JCChart3d
JCChart3d
constructor.
init
in class JCChart3d
chartType
- the initial chart type of the chartprotected void createActionHandlerParams()
ActionHandlerParams
object containing all the
parameters (scene BranchGroup
, BoundingSphere
, and
so on) required by the action handlers.
protected void createActionTable()
JCChart3d
createActionTable
in class JCChart3d
protected com.klg.jclass.chart3d.JCAction getActionHandler(InputEvent event)
JCChart3d
InputEvent
. This method must be overridden by subclasses.
getActionHandler
in class JCChart3d
event
- the InputEvent
protected void createObjects(int chartType)
Chart3d
object.
chartType
- public com.klg.jclass.chart3d.Chart3dDataView addDataView(int index, int chartType)
Chart3dDataView
and adds it to the chart
at the specified index, replacing the existing
ChartDataView
object at that specified index. If the index is
one past the final occupied index, the ChartDataView
will be
added to the end of the list.
Also see setDataView
.
addDataView
in class JCChart3d
index
- chartType
-
protected void createChart3dAreaJava3d()
public void redraw()
update()
instead of
repaint()
.
redraw
in class JCChart3d
public void update()
update
in class JCChart3d
public void dispose()
JCChart3dJava3d
that needs to be garbage collected
before the application or applet terminates. dispose()
calls the
removeAllLocales()
method of the VirtualUniverse
object that contains the Chart3D, thus ensuring that Java3D does not retain
any references to the JCChart3dJava3d
instance.
public void addMouseMotionListener(MouseMotionListener listener)
addMouseMotionListener
in class Component
public void removeMouseMotionListener(MouseMotionListener listener)
removeMouseMotionListener
in class Component
public void addMouseListener(MouseListener listener)
addMouseListener
in class Component
public void removeMouseListener(MouseListener listener)
removeMouseListener
in class Component
public void snapshot(Image img)
snapshot
in class JCChart3d
img
- The image to put the snapshot in.
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |