Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Class for computing the time-based graduations of a scale. More...
#include <ilviews/charts/date.h>
Public Member Functions | |
IlvTimeScaleStepsUpdater (IlvSingleScaleDisplayer *scale) | |
Constructs a new IlvTimeScaleStepsUpdater for the given scale. | |
virtual char * | computeStepLabel (IlDouble value, IlTimeUnit *unit) const |
virtual char * | computeStepLabel (IlDouble value) const |
IlDouble | getFirstStepData () const |
Returns the data value associated with the first major step. | |
IlDouble | getLastStepData () const |
Returns the data value associated with the last major step. | |
IlDouble | getStepDataMax () const |
Returns the data value associated with the last step of the scale. | |
IlDouble | getStepDataMin () const |
Returns the data value associated with the first step of the scale. | |
IlvDim | getStepsSpacing () const |
Returns the steps spacing. | |
virtual void | getStepSubStepValues (const IlvProjectorArea &area, IlUInt &stepsCount, IlDouble *&stepValues, IlUInt &subStepsCount, IlDouble *&subStepValues) const |
Computes and returns the step and substep values for the associated scale. | |
const IlTimeUnit * | getTimeUnit () const |
Returns the current time unit. | |
virtual IlBoolean | hasSubStep () const |
Returns false . | |
virtual IlDouble | incrementStep (IlDouble v) const |
Returns the scale step incremented by the argument. | |
virtual IlDouble | incrementSubStep (IlDouble v) const |
Returns the scale substep incremented by the argument. | |
IlBoolean | isAutoUnit () const |
Returns whether the scale updater tries to compute the best time unit for the current data set. | |
IlBoolean | isFirstStepDataDefined () const |
Indicates whether a data value is associated with the first major step. | |
IlBoolean | isLastStepDataDefined () const |
Indicates whether a data value is associated with the last major step. | |
IlBoolean | isUsingTransformer () const |
Returns whether the scale updater is using a transformer. | |
virtual IlDouble | nextStep (IlDouble v) const |
Returns the scale step immediately above (or equal to) the specified value. | |
virtual IlDouble | nextSubStep (IlDouble v) const |
Returns the scale substep immediately above (or equal to) the specified value. | |
virtual IlDouble | previousStep (IlDouble v) const |
Returns the scale step value immediately before the specified value. | |
virtual IlDouble | previousSubStep (IlDouble v) const |
Returns the scale substep value immediately before the specified value. | |
void | setAutoUnit (IlBoolean b) |
Sets whether the scale updater should try to compute the best time unit for the current data set. | |
void | setFirstStepData (IlDouble value) |
Sets the data value associated with the first major step. | |
void | setLastStepData (IlDouble value) |
Sets the data value associated with the last major step. | |
void | setStepsSpacing (IlvDim stepsSpacing) |
Sets the steps spacing. | |
void | setTimeUnit (IlTimeUnit *unit) |
Sets the time unit. | |
void | useTransformer (IlBoolean b) |
Sets whether the scale updater is using a transformer. | |
Friends | |
class | IlvSingleScaleDisplayer |
Class for computing the time-based graduations of a scale.
Library: ilvcharts
IlvTimeScaleStepsUpdater
is a class that allows you to compute the steps for a single scale based on a time unit (seconds, minutes, days, weeks, and so on).
IlvNamedProperty
, IlvSingleScaleDisplayer
. virtual char* IlvTimeScaleStepsUpdater::computeStepLabel | ( | IlDouble | value, | |
IlTimeUnit * | unit | |||
) | const [virtual] |
virtual char* IlvTimeScaleStepsUpdater::computeStepLabel | ( | IlDouble | value | ) | const [virtual] |
Reimplemented from IlvScaleStepsUpdater.
IlDouble IlvTimeScaleStepsUpdater::getFirstStepData | ( | ) | const |
Returns the data value associated with the first major step.
IlDouble IlvTimeScaleStepsUpdater::getLastStepData | ( | ) | const |
Returns the data value associated with the last major step.
IlDouble IlvTimeScaleStepsUpdater::getStepDataMax | ( | ) | const |
Returns the data value associated with the last step of the scale.
IlDouble IlvTimeScaleStepsUpdater::getStepDataMin | ( | ) | const |
Returns the data value associated with the first step of the scale.
IlvDim IlvTimeScaleStepsUpdater::getStepsSpacing | ( | ) | const |
Returns the steps spacing.
virtual void IlvTimeScaleStepsUpdater::getStepSubStepValues | ( | const IlvProjectorArea & | area, | |
IlUInt & | stepsCount, | |||
IlDouble *& | stepValues, | |||
IlUInt & | subStepsCount, | |||
IlDouble *& | subStepValues | |||
) | const [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. |
Implements IlvScaleStepsUpdater.
Returns the scale step incremented by the argument.
v | argument value |
Returns the scale substep incremented by the argument.
v | argument value |
IlBoolean IlvTimeScaleStepsUpdater::isFirstStepDataDefined | ( | ) | const |
Indicates whether a data value is associated with the first major step.
IlTrue
if an associated value exists and IlFalse
otherwise. IlBoolean IlvTimeScaleStepsUpdater::isLastStepDataDefined | ( | ) | const |
Indicates whether a data value is associated with the last major step.
IlTrue
if an associated value exists, IlFalse
otherwise. Returns the scale step immediately above (or equal to) the specified value.
v | argument value |
Returns the scale substep immediately above (or equal to) the specified value.
v | argument value |
Returns the scale step value immediately before the specified value.
v | argument value |
Returns the scale substep value immediately before the specified value.
v | argument value |
void IlvTimeScaleStepsUpdater::setFirstStepData | ( | IlDouble | value | ) |
Sets the data value associated with the first major step.
This method lets you define which value should be associated with the first major step of the scale. If this data is not defined, the first step will be drawn for the minimum value of the coordinate range represented by the associated scale.
value | The value for the first major step. |
void IlvTimeScaleStepsUpdater::setLastStepData | ( | IlDouble | value | ) |
Sets the data value associated with the last major step.
This method lets you define which value should be associated with the last major step of the scale. If this data is not defined, the last step will be drawn for the maximum value of the coordinate range represented by the associated scale.
value | The value for the last major step. |
void IlvTimeScaleStepsUpdater::setStepsSpacing | ( | IlvDim | stepsSpacing | ) |
Sets the steps spacing.
stepsSpacing | The new minimum spacing between two steps. |
void IlvTimeScaleStepsUpdater::setTimeUnit | ( | IlTimeUnit * | unit | ) |
Sets the time unit.
unit | The new time unit. The object does NOT take ownership or the new time unit. |
© 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.