public class IlvDefaultDataRangePolicy extends Object implements IlvDataRangePolicy, Serializable
The IlvDefaultDataRangePolicy
class computes the data range
according to the data actually displayed by the chart.
Constructor and Description |
---|
IlvDefaultDataRangePolicy()
Initializes a new
IlvDefaultDataRangePolicy . |
Modifier and Type | Method and Description |
---|---|
protected void |
adjustRange(IlvChart chart,
IlvAxis axis,
IlvDataInterval range)
Adjusts the data range of the specified axis.
|
IlvDataInterval |
computeDataRange(IlvChart chart,
IlvAxis axis,
IlvDataInterval retRange)
Computes the data range of the specified chart axis.
|
protected boolean |
shouldAdjust(IlvChart chart,
IlvAxis axis)
Indicates whether the calculation policy should adjust the data range
of the specified axis.
|
public IlvDefaultDataRangePolicy()
IlvDefaultDataRangePolicy
.public IlvDataInterval computeDataRange(IlvChart chart, IlvAxis axis, IlvDataInterval retRange)
computeDataRange
in interface IlvDataRangePolicy
chart
- The considered chart.axis
- The considered axis.retRange
- An interval used to store the result. If this parameter
is null
, a new IlvDataInterval
must be
allocated.adjustRange(ilog.views.chart.IlvChart, ilog.views.chart.IlvAxis, ilog.views.chart.IlvDataInterval)
method if
shouldAdjust(ilog.views.chart.IlvChart, ilog.views.chart.IlvAxis)
returns true
.IlvAbstractDataSet.isXRangeIncludingUndefinedPoints()
protected boolean shouldAdjust(IlvChart chart, IlvAxis axis)
The default implementation returns true
for y-axes.
chart
- The considered chart.axis
- The considered axis.true
if the data range of the axis must be adjusted.adjustRange(ilog.views.chart.IlvChart, ilog.views.chart.IlvAxis, ilog.views.chart.IlvDataInterval)
protected void adjustRange(IlvChart chart, IlvAxis axis, IlvDataInterval range)
IlvDefaultStepsDefinition
class
when it is using the IlvDefaultStepsDefinition.SIMPLE_MODE
mode.chart
- The considered chart.axis
- The considered axis.range
- The range that must be adjusted.IlvDefaultStepsDefinition.adjustRange(IlvDataInterval)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.