4.2.4 Vector3D Series

Vector3D Series

Vector3D Series uses ChartDataModel. Series extracts coordinates of vectors packed into ChartDataModel array, maps and plots them. Each vector is drawn as an arrow.

Setting Vector Series:

1
2
3
4
// creates VectorSeries object named vector, with ChartDataModel
// instance named provider1, and xMapper, yMapper, 
// zMapper - instaces of AxisMapper
Vector3DSeries vector = new Vector3DSeries(provider1, xMapper, yMapper);

Vector3D Series Demonstration

Figure 4.2.4.1 Vector3D Series Demonstration

View Source

Other Vector3D Series Properties

Point Count

It is possible to set of what kind of polygon vector will be drawn. For instance, if this setting is set to 3, vector arrow will become similar to prism and so on.

 
(Vector3DStrategy)vector.getStrategy().setPointCount(8);
Cone radius

Cone radius determines how much area arrow of vector will take. If this value is set to zero, arrow will not be drawn, and vector is drawn as straight line.

 
(Vector3DStrategy)vector.getStrategy().setConeRadius(0.09d);
Cone length

Cone length specifies how long cone will be. Values from range from 0 to 1 should be taken. 0 - no cone will be drawn, 1 - cone will take up whole vector's space.

 
(Vector3DStrategy)vector.getStrategy().setConeLength(0.5d);
Pole radius

Pole radius determines diameter of pole. The bigger the value, the bigger diameter.

 
(Vector3DStrategy)vector.getStrategy().setPoleRadius(0.09d);