com.nchart3d.NChart.NChartMarker Class Reference

The NChartMarker class provides methods to display markers in the points of the chart. More...

Public Member Functions

NChartMarkerShape getShape ()
 Shape of the marker. More...
 
void setShape (NChartMarkerShape shape)
 For details see getShape().
 
NChartModel getModel ()
 Model of the marker. More...
 
void setModel (NChartModel model)
 For details see getModel().
 
NChartBrush getBrush ()
 Brush that fills the marker. More...
 
void setBrush (NChartBrush brush)
 For details see getBrush().
 
NChartBrush getBorderBrush ()
 Brush of the marker's border. More...
 
void setBorderBrush (NChartBrush borderBrush)
 For details see getBorderBrush().
 
float getBorderThickness ()
 Thickness of the marker's border in pixels. More...
 
void setBorderThickness (float borderThickness)
 For details see getBorderThickness().
 
float getAngleX ()
 Rotation of the marker around the X-axis in radians. More...
 
void setAngleX (float angleX)
 For details see getAngleX().
 
float getAngleY ()
 Rotation of the marker around the Y-axis in radians. More...
 
void setAngleY (float angleY)
 For details see getAngleY().
 
float getAngleZ ()
 Rotation of the marker around the Z-axis in radians. More...
 
void setAngleZ (float angleZ)
 For details see getAngleZ().
 
float getSize ()
 Size of the marker. More...
 
void setSize (float size)
 For details see getSize().
 
float getSelectionSize ()
 Size of the marker's touch area (the area you can touch to select the corresponding chart point). More...
 
void setSelectionSize (float selectionSize)
 For details see getSelectionSize().
 
int getResolution ()
 Resolution of the marker. More...
 
void setResolution (int resolution)
 For details see getResolution().
 

Detailed Description

The NChartMarker class provides methods to display markers in the points of the chart.


Each series, that can display markers, has the property default marker. If you set it to series, this will be a default for all the points. However you can set the marker for the point and those values, that you set to this marker, will override the corresponding values from the default marker. For example, if you set the marker for series and change its size, shape and resolution, and after that set another marker to some point and change its size, all points will have the markers with shape and resolution from the default marker. The size of all points except the one you modified will also be the same (obtained from default marker too). And the modified point will differ in size.

Member Function Documentation

float com.nchart3d.NChart.NChartMarker.getAngleX ( )
inline

Rotation of the marker around the X-axis in radians.

This property is used for "volumetric" markers only, this means for those that are not plain.

float com.nchart3d.NChart.NChartMarker.getAngleY ( )
inline

Rotation of the marker around the Y-axis in radians.

This property is used for "volumetric" markers only, this means for those that are not plain.

float com.nchart3d.NChart.NChartMarker.getAngleZ ( )
inline

Rotation of the marker around the Z-axis in radians.

This property is used for "volumetric" markers only, this means for those that are not plain.

NChartBrush com.nchart3d.NChart.NChartMarker.getBorderBrush ( )
inline

Brush of the marker's border.

Please note, that only markers with predefined shapes have borders. If you use model, border's properties are ignored.

See also
NChartBrush
float com.nchart3d.NChart.NChartMarker.getBorderThickness ( )
inline

Thickness of the marker's border in pixels.

Please note, that only markers with predefined shapes have borders. If you use a model, the border's properties are ignored.

NChartBrush com.nchart3d.NChart.NChartMarker.getBrush ( )
inline

Brush that fills the marker.

See also
NChartBrush
NChartModel com.nchart3d.NChart.NChartMarker.getModel ( )
inline

Model of the marker.

This property is null by default. By setting this property, shape is automatically set to NChartMarkerShape. If the shape is not NChartMarkerShape, this property has no effect, even if it is not null. If the shape is NChartMarkerShape and model is null, it is equivalent to the shape set to NChartMarkerShape#None, so no marker is displayed.

See also
NChartModel
int com.nchart3d.NChart.NChartMarker.getResolution ( )
inline

Resolution of the marker.

Resolution is the amount of vertices that build the circle (sphere). It is used if marker's shape is NChartMarkerShape#Circle or NChartMarkerShape#Sphere.
This value cannot be less than 3 and greater than 32.

float com.nchart3d.NChart.NChartMarker.getSelectionSize ( )
inline

Size of the marker's touch area (the area you can touch to select the corresponding chart point).

If this size is zero, touch area has the size of marker (that is set with setSize(float)). The default value is 0.0f. Use this property if you want to make touch area more or less then the marker size. The size can be in any unit you want. It is rescaled to pixels with the help of NChartSizeAxis. If no data source is set for size axis, units are interpreted as pixels.

NChartMarkerShape com.nchart3d.NChart.NChartMarker.getShape ( )
inline

Shape of the marker.

There are predefined shapes and NChartMarkerShape that requires the model to be set.

See also
NChartMarkerShape
float com.nchart3d.NChart.NChartMarker.getSize ( )
inline

Size of the marker.

The size can be in any unit you want. It is rescaled to pixels with the help of NChartSizeAxis. If no data source is set for size axis, units are interpreted as pixels.