JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d.j3d
Class JCChart3dJava3d

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--com.klg.jclass.chart3d.JCChart3d
                          |
                          +--com.klg.jclass.chart3d.j3d.JCChart3dJava3d
All Implemented Interfaces:
Changeable, Changeable, Chart3dDataModel, Chart3dGridDataModel, Chart3dPointDataModel, EventListener, ImageObserver, KeyListener, LegendComponentLayoutUser, MenuContainer, MouseListener, MouseMotionListener, Serializable, com.klg.jclass.util.ServerRenderable
Direct Known Subclasses:
Chart3dJava3d

public class JCChart3dJava3d
extends JCChart3d
implements Chart3dGridDataModel

The core charting class. JCChart3dJava3d allows the retrieval of related objects, such as the chart area, the legend, the header, and the footer.

See Also:
Serialized Form

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 com.klg.jclass.chart3d.JCChart3d
addChart3dListener, addNotify, addPick3dListener, cancel, convertChartAreaXToX, convertChartAreaYToY, convertXToChartAreaX, convertYToChartAreaY, createChart3dArea, createFooter, createHeader, createJava2dChart, createJava3dChart, createJava3dChart, createLegend, doLayout, findDataView, firePaint, getAbout, getActionTable, getAllowUserChanges, getChanged, getChanged, getChart3dArea, getColorIndex, getComponentArea, getComponentAt, getDataView, getDataView, getDrawingArea, getDrawingArea, getDrawingAreaHeight, getDrawingAreaWidth, getFillColorIndex, getFooter, getGraphics, getHeader, getLayoutHints, getLegend, getLineColorIndex, getLocale, getNumDataViews, getOriginalDataView, getPoints, getSource, getSymbolColorIndex, getSymbolShapeIndex, getUI, getUIClassID, getXGrid, getYGrid, getZValues, initializeLayout, initializeUI, isBatched, isChanged, isChanged, isFocusTraversable, isProjection, isWarningDialog, keyPressed, keyReleased, keyTyped, launchPropertyPage, makeChart3d, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paint, paintComponent, pick, pickLegend, printAll, processKeyEvent, processMouseEvent, processMouseMotionEvent, recalc, registerUI, removeChart3dListener, removeDataView, removePick3dListener, requestFocus, reset, resetDefaults, sendEvent, sendPick3dEvent, serverPaint, serverSnapshot, setAbout, setAllowUserChanges, setBackground, setBatched, setChanged, setChanged, setChart3dArea, setColorIndex, setDataView, setDataView, setFillColorIndex, setFont, setFooter, setForeground, setGraphics, setHeader, setLayout, setLayoutHints, setLegend, setLineColorIndex, setLocale, setOpaque, setSymbolColorIndex, setSymbolShapeIndex, setUI, setWarningDialog, snapshot, snapshot, unpick, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
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

customizerName

protected String customizerName

actionHandlerParams

protected com.klg.jclass.chart3d.j3d.ActionHandlerParams actionHandlerParams
Constructor Detail

JCChart3dJava3d

public JCChart3dJava3d(int tp)
Constructor that creates a JCChart3dJava3d of a particular type.

Parameters:
tp -

JCChart3dJava3d

public JCChart3dJava3d()
Default constructor, required by JavaBeans.

Method Detail

getCustomizerName

public String getCustomizerName()
Description copied from class: JCChart3d
Gets the value of the 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.

Specified by:
getCustomizerName in class JCChart3d
Returns:
the current customizer name

setCustomizerName

public void setCustomizerName(String name)
Description copied from class: JCChart3d
Sets the value of the 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.

Specified by:
setCustomizerName in class JCChart3d
Parameters:
name - the new customizer name

init

protected void init(int chartType)
Description copied from class: JCChart3d
Initializes assorted chart member variables. Used as a convenience when writing a new JCChart3d constructor.

Overrides:
init in class JCChart3d
Parameters:
chartType - the initial chart type of the chart

createActionHandlerParams

protected void createActionHandlerParams()
Creates an ActionHandlerParams object containing all the parameters (scene BranchGroup, BoundingSphere, and so on) required by the action handlers.


createActionTable

protected void createActionTable()
Description copied from class: JCChart3d
Creates the action table for the chart. This method must be overridden by subclasses.

Specified by:
createActionTable in class JCChart3d

getActionHandler

protected com.klg.jclass.chart3d.JCAction getActionHandler(InputEvent event)
Description copied from class: JCChart3d
Retrieves the action handler that is associated with a given InputEvent. This method must be overridden by subclasses.

Specified by:
getActionHandler in class JCChart3d
Parameters:
event - the InputEvent
Returns:
the action handler associated with the event

createObjects

protected void createObjects(int chartType)
Creates the objects needed for this Chart3d object.

Parameters:
chartType -

addDataView

public 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. If the index is one past the final occupied index, the ChartDataView will be added to the end of the list. Also see setDataView.

Overrides:
addDataView in class JCChart3d
Parameters:
index -
chartType -
Returns:

createChart3dAreaJava3d

protected void createChart3dAreaJava3d()
Creates and adds the legend to the chart.


redraw

public void redraw()
Overrides the parent method to call update() instead of repaint().

Overrides:
redraw in class JCChart3d

update

public void update()
Forces the chart to be recalculated and laid out again.

Overrides:
update in class JCChart3d

dispose

public 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. 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.


addMouseMotionListener

public void addMouseMotionListener(MouseMotionListener listener)
Overrides:
addMouseMotionListener in class Component

removeMouseMotionListener

public void removeMouseMotionListener(MouseMotionListener listener)
Overrides:
removeMouseMotionListener in class Component

addMouseListener

public void addMouseListener(MouseListener listener)
Overrides:
addMouseListener in class Component

removeMouseListener

public void removeMouseListener(MouseListener listener)
Overrides:
removeMouseListener in class Component

snapshot

public void snapshot(Image img)
Override the base class method to handle the Canvas3D chart area component.

Overrides:
snapshot in class JCChart3d
Parameters:
img - The image to put the snapshot in.

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