com.nchart3d.NChart.NChartLODSeries Class Reference

The NChartLODSeries class provides a compound series that switches its graphical representation and dataset according to the zoom level. More...

Inheritance diagram for com.nchart3d.NChart.NChartLODSeries:
com.nchart3d.NChart.NChartSeries com.nchart3d.NChart.NChartObject

Public Member Functions

void removeLOD (NChartLOD lod)
 Remove LOD. More...
 
NChartLOD[] getLods ()
 Array of LODs.
 
NChartLOD getCurrentLOD ()
 Current LOD that corresponds to the current chart zoom.
 
- Public Member Functions inherited from com.nchart3d.NChart.NChartSeries
NChartPoint[] getPoints ()
 Array of points.
 
Bitmap getImage ()
 Image that is displayed in the legend. More...
 
Bitmap getDisabledImage ()
 Image that is displayed in the legend when the series is hidden (aka disabled). More...
 
String getName ()
 Name of the series.
 
int getNameColor ()
 Get color of the series name displayed in the legend. More...
 
void setNameColor (int color)
 For details see getNameColor().
 
int getDisabledNameColor ()
 Get color of the series name displayed in the legend when the series is hidden (aka disabled). More...
 
void setDisabledNameColor (int color)
 For details see getDisabledNameColor().
 
float getLegendMarkerSize ()
 Size of default series' marker in legend in pixels. More...
 
void setLegendMarkerSize (float legendMarkerSize)
 For details see getLegendMarkerSize().
 
NChartBrushScale getScale ()
 Brush scale of the series used to color the map.
 
void setScale (NChartBrushScale scale)
 For details see getScale().
 
int getTag ()
 Tag of the series. More...
 
void setTag (int tag)
 For details see getTag().
 
boolean isVisible ()
 Flag that determines if the series is visible or not. More...
 
void setVisible (boolean visible)
 For details see isVisible().
 
boolean getHostsOnSX ()
 Flag that determines if the series is hosted on the secondary X-axis. More...
 
void setHostsOnSX (boolean hostsOnSX)
 For details see getHostsOnSX().
 
boolean getHostsOnSY ()
 Flag that determines if the series is hosted on the secondary Y-axis. More...
 
void setHostsOnSY (boolean hostsOnSY)
 For details see getHostsOnSY().
 
boolean getHostsOnSZ ()
 Flag that determines if the series is hosted on the secondary Z-axis. More...
 
void setHostsOnSZ (boolean hostsOnSZ)
 For details see getHostsOnSZ().
 
NChartSeriesDataSource getDataSource ()
 Data source for the series. More...
 
void setDataSource (NChartSeriesDataSource dataSource)
 For details see getDataSource().
 
NChartDataSmoother getDataSmoother ()
 Data smoother used. More...
 
void setDataSmoother (NChartDataSmoother dataSmoother)
 For details see getDataSmoother().
 
boolean isForceAbsolute ()
 Flag that determines if the series forces absolute value axis. More...
 
void setForceAbsolute (boolean forceAbsolute)
 For details see isForceAbsolute().
 
boolean isPointSelectionEnabled ()
 Flag determining if the chart points can be selected by tap (true) or not (false). More...
 
void setPointSelectionEnabled (boolean pointSelectionEnabled)
 For details see isPointSelectionEnabled().
 
boolean isNeedsSeparateSums ()
 Flag determining if in the additive value axis mode (when valueAxesType = NChartValueAxesType.Additive) positive and negative values are added separately, so all positives are above zero and all negatives are below zero (true), or all the values are just added together (false). More...
 
void setNeedsSeparateSums (boolean needsSeparateSums)
 For details see isNeedsSeparateSums().
 
boolean isUpdateAllowed ()
 Flag providing a hint that the series has no modifications and should not be updated by the next NChart#rebuildSeries() or NChart#updateSeries() call (false) or it should be updated as normal (true). More...
 
void setUpdateAllowed (boolean updateAllowed)
 For details see isUpdateAllowed().
 
- Public Member Functions inherited from com.nchart3d.NChart.NChartObject
boolean isVisible ()
 Flag that determines if the object is visible or not. More...
 
void setVisible (boolean visible)
 For details see isVisible().
 
NChart getChart ()
 Chart the object belongs to. More...
 

Detailed Description

The NChartLODSeries class provides a compound series that switches its graphical representation and dataset according to the zoom level.

Use it when you want to present different levels of detail (LODs) of your data.
For example, let's say you have a dataset with 100M points. It is by far too much for any plot to handle, and even if it would be possible, it would not be really informative for a user to show that full amount at once. More logically is to use LODs here: at the zoom level of 1.0 (full overview), only a rough view is shown, say, 1k of points (each 100k-th point, or maybe some smart aggregation, if you have resources to do it). This is LOD0. You may want to show it as an area series, for example. As the user zooms in, only a subset of the data becomes visible, and the plot gets replaced by another one, representing this subset in more details.
To achieve the above, you should create an NChartLODSeries instance, attach a data source object to it that will supply the data for each LOD and each data window, and add the desired LOD levels to it. You don't need to attach data sources to the internal series, just to the NChartLODSeries.

Member Function Documentation

void com.nchart3d.NChart.NChartLODSeries.removeLOD ( NChartLOD  lod)
inline

Remove LOD.

Parameters
lod- LOD to remove.