Name
|
Description
|
addChart3dListener
|
Adds listener to changes in JClass Chart 3D. Called after zoom , translate , scale , rotate , or edit (interactive only).
Parameter:
l - The listener to be added.
|
getDrawingArea
|
Gets the drawing area represented by this chart.
Returns:
Rectangle object containing drawing area.
|
getDrawingArea Height
|
Gets the height of the drawing area represented by this chart.
Specified by:
getDrawingAreaHeight in interface com.klg.jclass.util.legend.LegendComponentLayoutUser .
Returns:
The height of the drawing area.
|
getDrawingArea Width
|
Gets the width of the drawing area represented by this chart.
Specified by:
getDrawingAreaWidth in interface
com.klg.jclass.util.legend.LegendComponentLayoutUser .
Returns:
The width of the drawing area.
|
getLayoutHints
|
Sets and gets layout hints for chart children. Hints are rectangle objects.
A value of Integer.MAX_VALUE in the rectangle's members indicates to calculate default values during layout. Other values indicate to the layout to use that value. For example, a rectangle with members x=5, y=10, width=MAX_VALUE , and height=200, would indicate to the layout mechanism that the chart child should be placed at (5,10), have a height of 200, and use the default width. Layout hints are only used by the DefaultChartLayout layout manager.
Parameter:
child - Chart child - either the chart3dArea , legend , header , or footer .
layoutHints - Rectangle object containing the desired layout hints.
|
getUI
|
Returns and sets the UI for JCChart3d .
Overrides:
setUI in class javax.swing.JComponent .
Parameter:
newUI - The new user interface object.
|
getUIClassId
|
Returns the UIClass ID for JCChart3d .
Overrides:
getUIClassID in class javax.swing.JComponent .
|
isProjection
|
Is the surface represented by the first dataView a 3d view or a 2d projection?
Returns:
A Boolean indicating whether the first dataView is a 2D projection or not.
|
pick
|
Given a screen position in pixels, returns a JCData3dIndex object that represents the index of the closest point in the elevation data set of the specified ChartData3dView instance. If no data view is supplied, all data views are considered when finding the closest point (only one dataView is currently supported). If the data in a data view is being updated when pick() is called, the result may be incorrect.
Parameters:
p - Pick point in pixels relative to the JCChart3d object
dataView - Data view on which to perform pick; if null, all data views are used (only one dataView is currently supported).
Returns:
The JCData3dIndex object representing the index of the picked point. This is either a JCData3dGridIndex representing the (x, y) index of grid data point, a JCData3dPointIndex representing the (series, point) index of a point in a point data set, or a JCData3dContourIndex representing a contour range.
|
printAll
|
Prints this component and all of its subcomponents. Overridden from java.awt.Component , but should be used in the same way.
Overrides:
printAll in class javax.swing.JComponent .
Parameter:
g - The graphics object used to paint.
|
recalc
|
Recalculates the entire chart if it has been marked for recalculation.
|
removeChart3d Listener
|
Removes listener to changes in JClass Chart 3D from list of listeners.
Parameter:
l - The listener to be removed.
|
reset
|
Performs a reset on the chart. Returns to the chart3d its default dataport.
|
snapshot
|
Takes a snapshot of the current chart and places it in an image of the specified type. The image types are as specified in the BufferedImage class. BufferedImage.TYPE_INT_ARGB is a good default for representing many possible colors. If using fewer than 256 colors, BufferedImage.TYPE_BYTE_INDEXED may prove to generate faster and smaller images.
Parameter:
imagetype - The type of image to write to, as defined in the java.awt.image.BufferedImage class.
Returns:
Image object containing snapshot of chart.
|
unpick
|
Returns the position in screen pixels of a particular point in a particular data set (grid data or point data).
Parameters:
dataView - The data view containing the specified series.
index - The data index of the point. This is either a JCData3dGridIndex representing the (x, y) index of grid data point or a JCData3dPointIndex representing the (series, point) index of a point in a point data set.
Returns:
AWT Point object representing position in screen pixels relative to the JCChart3d object or null if the point does not exist.
|
update
|
Forces the chart to re-layout and recalculate.
|
updateUI
|
Updates the UI for JCChart3d .
Overrides:
updateUI in class javax.swing.JComponent .
|