JMSLTM Numerical Library 5.0.1

com.imsl.chart3d
Class Data

java.lang.Object
  extended by com.imsl.chart.AbstractChartNode
      extended by com.imsl.chart3d.ChartNode3D
          extended by com.imsl.chart3d.Data
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
Surface

public class Data
extends ChartNode3D
implements Serializable

Draws a 3D data node.

Drawing of a Data node is determined by the setting of the "DataType" attribute. Multiple bits can be set in "DataType". If the ChartNode3D.DATA_TYPE_MARKER bit is set, the marker attributes are active. If the ChartNode3D.DATA_TYPE_LINE bit is set, the points are connected by lines using the line attributes. If the ChartNode3D.DATA_TYPE_TUBE bit is set, the points are connected by tubes using the line attributes. Tubes are similar to lines, but are fully 3d objects and so can be shaded.

If the attribute "LabelType" is set to other than the default, then the data points are labeled. The contents of the labels are determined by the value of the "LabelType" attribute.

See Also:
Spiral Data Example, Fisher Iris Data Example, Heart Data Example, Serialized Form

Nested Class Summary
static interface Data.CustomMarkerFactory
          Factory to create customized markers.
 
Field Summary
static long serialVersionUID
           
 
Fields inherited from class com.imsl.chart3d.ChartNode3D
AXIS_TITLE_AT_END, AXIS_TITLE_PARALLEL, DATA_TYPE_LINE, DATA_TYPE_MARKER, DATA_TYPE_PICTURE, DATA_TYPE_TUBE, MARKER_TYPE_CUBE, MARKER_TYPE_CUSTOM, MARKER_TYPE_PLUS, MARKER_TYPE_SIMPLE_CUBE, MARKER_TYPE_SIMPLE_PLUS, MARKER_TYPE_SIMPLE_TETRAHEDRON, MARKER_TYPE_SPHERE, MARKER_TYPE_TETRAHEDRON
 
Fields inherited from class com.imsl.chart.AbstractChartNode
AUTOSCALE_DATA, AUTOSCALE_DENSITY, AUTOSCALE_NUMBER, AUTOSCALE_OFF, AUTOSCALE_WINDOW, AXIS_X, AXIS_Y, AXIS_Z, LABEL_TYPE_NONE, LABEL_TYPE_TITLE, LABEL_TYPE_X, LABEL_TYPE_Y, LABEL_TYPE_Z, TRANSFORM_CUSTOM, TRANSFORM_LINEAR, TRANSFORM_LOG
 
Constructor Summary
Data(AxisXYZ parent)
          Creates a data node.
Data(AxisXYZ parent, double[] x, double[] y, double[] z)
          Creates a data node with x, y and z values.
 
Method Summary
protected  void addToSceneGraph(Group parent)
          Called to add this object to the scene graph.
 void dataRange(double[] range)
          Update the data range, range = {xmin,xmax,ymin,ymax}.
 Data.CustomMarkerFactory getCustomMarkerFactory()
          Returns a custom marker factory.
 void setCustomMarker(Data.CustomMarkerFactory customMarkerFactory)
          Sets a custom marker factory.
 void update()
          Update the surface by reevaluation of the z-function and the color function.
 
Methods inherited from class com.imsl.chart3d.ChartNode3D
getAxisTitlePosition, getBoundingSphere, getChildren, getColorFunction, getConcatenatedViewport, getDataType, getLightingEnabled, getMarkerPulsingCycle, getMarkerPulsingCycleOffset, getMarkerPulsingMaximumScale, getMarkerPulsingMinimumScale, getMarkerRotatingAxis, getMarkerRotatingCycle, getMarkerRotatingCycleOffset, getMarkerType, getMaterial, getParent, getTitle, getViewport, getVirtualUniverse, getZ, setAxisTitlePosition, setBoundingSphere, setColorFunction, setDataType, setLightingEnabled, setMarkerPulsingCycle, setMarkerPulsingCycleOffset, setMarkerPulsingMaximumScale, setMarkerPulsingMinimumScale, setMarkerRotatingAxis, setMarkerRotatingCycle, setMarkerRotatingCycleOffset, setMarkerType, setMaterial, setTitle, setViewport, setViewport, setZ
 
Methods inherited from class com.imsl.chart.AbstractChartNode
clone, clone, clone, clone, getAbstractParent, getAttribute, getAutoscaleInput, getAutoscaleMinimumTimeInterval, getAutoscaleOutput, getBooleanAttribute, getChildList, getColorAttribute, getCustomTransform, getDensity, getDoubleAttribute, getFillColor, getFont, getFontName, getFontSize, getFontStyle, getImage, getIntegerAttribute, getLabelType, getLightColor, getLineColor, getLineWidth, getLocale, getMarkerColor, getMarkerSize, getName, getNumber, getPaint, getStringAttribute, getTextColor, getTextFormat, getTickLength, getTransform, getX, getY, isAncestorOf, isAttributeSet, isAttributeSetAtThisNode, isBitSet, parseColor, remove, setAttribute, setAutoscaleInput, setAutoscaleMinimumTimeInterval, setAutoscaleOutput, setCustomTransform, setDensity, setFillColor, setFillColor, setFont, setFontName, setFontSize, setFontStyle, setImage, setLabelType, setLightColor, setLightColor, setLineColor, setLineColor, setLineWidth, setLocale, setMarkerColor, setMarkerColor, setMarkerSize, setName, setNumber, setPaint, setTextColor, setTextColor, setTextFormat, setTextFormat, setTickLength, setTransform, setX, setY, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

Data

public Data(AxisXYZ parent)
Creates a data node.

Parameters:
parent - the AxisXYZ parent of this data node

Data

public Data(AxisXYZ parent,
            double[] x,
            double[] y,
            double[] z)
Creates a data node with x, y and z values.

Parameters:
parent - the AxisXYZ parent of this data node
x - a double array which contains the value for the attribute "X" in this node
y - a double array which contains the value for the attribute "Y" in this node
z - a double array which contains the value for the attribute "Z" in this node
Method Detail

addToSceneGraph

protected void addToSceneGraph(Group parent)
Description copied from class: ChartNode3D
Called to add this object to the scene graph.

Specified by:
addToSceneGraph in class ChartNode3D
Parameters:
parent - is the node in the scene graph at which this object is to be added.

dataRange

public void dataRange(double[] range)
Update the data range, range = {xmin,xmax,ymin,ymax}. The entries in range are updated to reflect the extent of the data in this node. The argument range is an input/output variable. Its value should be updated only if the data in this node is outside the range already in the array.

Parameters:
range - a double array which contains the updated range, {xmin,xmax,ymin,ymax}

getCustomMarkerFactory

public Data.CustomMarkerFactory getCustomMarkerFactory()
Returns a custom marker factory.


setCustomMarker

public void setCustomMarker(Data.CustomMarkerFactory customMarkerFactory)
Sets a custom marker factory. This factory is used when the "MarkerType" attribute is set to MARKER_TYPE_CUSTOM.


update

public void update()
Update the surface by reevaluation of the z-function and the color function.


JMSLTM Numerical Library 5.0.1

Copyright © 1970-2008 Visual Numerics, Inc.
Built July 8 2008.