public class Data extends ChartNode3D implements Serializable
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.
Modifier and Type | Class and Description |
---|---|
static interface |
Data.CustomMarkerFactory
Factory to create customized markers.
|
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
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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
public Data(AxisXYZ parent)
parent
- the AxisXYZ
parent of this data nodepublic Data(AxisXYZ parent, double[] x, double[] y, double[] z)
parent
- the AxisXYZ
parent of this data nodex
- a double
array which contains the value for
the attribute "X" in this nodey
- a double
array which contains the value for
the attribute "Y" in this nodez
- a double
array which contains the value for
the attribute "Z" in this nodeprotected void addToSceneGraph(Group parent)
ChartNode3D
addToSceneGraph
in class ChartNode3D
parent
- is the node in the scene graph at which this
object is to be added.public void dataRange(double[] 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.range
- a double
array which contains the updated
range, {xmin,xmax,ymin,ymax}public Data.CustomMarkerFactory getCustomMarkerFactory()
public void setCustomMarker(Data.CustomMarkerFactory customMarkerFactory)
public void update()
Copyright © 1970-2015 Rogue Wave Software
Built October 13 2015.