Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Base class for computing the graduations of a scale. More...
#include <ilviews/charts/scaledis.h>
Public Member Functions | |
virtual IlBoolean | checkRange (IlvCoordInterval &range) const |
Checks whether an interval is valid with respect to the step definition. | |
virtual char * | computeStepLabel (IlDouble value) const |
Computes and returns the label displayed for a given data value. | |
IlvCoordinateInfo * | getCoordinateInfo () const |
Deprecated | |
IlvSingleScaleDisplayer * | getScale () const |
Returns the scale associated with the current scale steps updater. | |
virtual void | getStepSubStepValues (const IlvProjectorArea &area, IlUInt &stepsCount, IlDouble *&stepValues, IlUInt &subStepsCount, IlDouble *&subStepValues) const =0 |
Computes and returns the step and substep values for the associated scale. | |
Static Public Member Functions | |
static IlvScaleStepsUpdater * | Get (const IlvSingleScaleDisplayer *scale) |
Returns the scale steps updater set on a given scale. | |
static IlvScaleStepsUpdater * | Remove (IlvSingleScaleDisplayer *scale) |
Removes the scale steps updater set on a given scale. | |
static IlvScaleStepsUpdater * | Set (IlvSingleScaleDisplayer *scale, IlvScaleStepsUpdater *updater) |
Sets a scale steps updater on a given scale. | |
Protected Member Functions | |
IlvScaleStepsUpdater (IlvSingleScaleDisplayer *scale) | |
Constructor. | |
Friends | |
class | IlvSingleScaleDisplayer |
Base class for computing the graduations of a scale.
Library: ilvcharts
IlvScaleStepsUpdater
is an abstract base class that allows you to compute the steps and the substeps for a single scale.
IlvNamedProperty
, IlvSingleScaleDisplayer
. IlvScaleStepsUpdater::IlvScaleStepsUpdater | ( | IlvSingleScaleDisplayer * | scale | ) | [protected] |
Constructor.
Initializes a new IlvScaleStepsUpdater
object.
scale | The scale associated with the current scale steps updater. |
virtual IlBoolean IlvScaleStepsUpdater::checkRange | ( | IlvCoordInterval & | range | ) | const [virtual] |
Checks whether an interval is valid with respect to the step definition.
Called whenever the range of the coordinate associated with the current scale is modified. With this method, you can modify the interval range so that it becomes consistent with the steps definition. The default implementation simply returns IlTrue
.
range | The range to check. |
IlFalse
if the range was not correct and had to be modified, and IlTrue
otherwise. Reimplemented in IlvConstantScaleStepsUpdater, and IlvLogScaleStepsUpdater.
virtual char* IlvScaleStepsUpdater::computeStepLabel | ( | IlDouble | value | ) | const [virtual] |
Computes and returns the label displayed for a given data value.
value | The data value for which the label to be displayed is computed. |
Reimplemented in IlvTimeScaleStepsUpdater, IlvLogScaleStepsUpdater, and IlvZoomScaleStepsUpdater.
static IlvScaleStepsUpdater* IlvScaleStepsUpdater::Get | ( | const IlvSingleScaleDisplayer * | scale | ) | [static] |
Returns the scale steps updater set on a given scale.
scale | The scale on which the returned scale steps updater is set. |
Reimplemented in IlvAutoScaleStepsUpdater.
IlvCoordinateInfo* IlvScaleStepsUpdater::getCoordinateInfo | ( | ) | const |
Deprecated
IlvSingleScaleDisplayer* IlvScaleStepsUpdater::getScale | ( | ) | const |
Returns the scale associated with the current scale steps updater.
virtual void IlvScaleStepsUpdater::getStepSubStepValues | ( | const IlvProjectorArea & | area, | |
IlUInt & | stepsCount, | |||
IlDouble *& | stepValues, | |||
IlUInt & | subStepsCount, | |||
IlDouble *& | subStepValues | |||
) | const [pure virtual] |
Computes and returns the step and substep values for the associated scale.
area | The data area definition. This data area definition can be retrieved with the IlvChartGraphic::getProjectorArea method. | |
stepsCount | Returns the number of major steps. | |
stepValues | Returns the values associated with the major steps. | |
subStepsCount | Returns the number of minor steps. | |
subStepValues | Returns the values associated with the minor steps. |
Implemented in IlvTimeScaleStepsUpdater, IlvConstantScaleStepsUpdater, IlvAutoScaleStepsUpdater, IlvLogScaleStepsUpdater, and IlvZoomScaleStepsUpdater.
static IlvScaleStepsUpdater* IlvScaleStepsUpdater::Remove | ( | IlvSingleScaleDisplayer * | scale | ) | [static] |
Removes the scale steps updater set on a given scale.
scale | The scale for which the scale steps updater is removed. |
static IlvScaleStepsUpdater* IlvScaleStepsUpdater::Set | ( | IlvSingleScaleDisplayer * | scale, | |
IlvScaleStepsUpdater * | updater | |||
) | [static] |
Sets a scale steps updater on a given scale.
The scale steps updater updater will be used to compute the graduations for the scale scale.
scale | The scale on which the scale steps updater updater is set. | |
updater | The new scale steps updater that is set on the scale scale. |
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.