| [ Index ] |
PHP Cross Reference of MantisBT |
[Source view] [Print] [Project Stats]
File containing the abstract ezcGraphChartElementNumericAxis class
| Copyright: | Copyright (C) 2005-2009 eZ Systems AS. All rights reserved. |
| License: | http://ez.no/licenses/new_bsd New BSD License |
| Version: | 1.5 |
| File Size: | 505 lines (16 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
ezcGraphChartElementNumericAxis:: (14 methods):
__construct()
__set()
getNiceNumber()
calculateMinimum()
calculateMaximum()
calculateMinorStep()
calculateMajorStep()
addData()
calculateAxisBoundings()
getCoordinate()
getMinorStepCount()
getMajorStepCount()
getLabel()
isZeroStep()
Class: ezcGraphChartElementNumericAxis - X-Ref
Class to represent a numeric axis.| __construct( array $options = array() X-Ref |
| Constructor param: array $options Default option array return: void |
| __set( $propertyName, $propertyValue ) X-Ref |
| __set param: mixed $propertyName param: mixed $propertyValue return: void |
| getNiceNumber( $float ) X-Ref |
| Returns a "nice" number for a given floating point number. Nice numbers are steps on a scale which are easily recognized by humans like 0.5, 25, 1000 etc. param: float $float Number to be altered return: float Nice number |
| calculateMinimum( $min, $max ) X-Ref |
| Calculate minimum value for displayed axe basing on real minimum and major step size param: float $min Real data minimum param: float $max Real data maximum return: void |
| calculateMaximum( $min, $max ) X-Ref |
| Calculate maximum value for displayed axe basing on real maximum and major step size param: float $min Real data minimum param: float $max Real data maximum return: void |
| calculateMinorStep( $min, $max ) X-Ref |
| Calculate size of minor steps based on the size of the major step size param: float $min Real data minimum param: float $max Real data maximum return: void |
| calculateMajorStep( $min, $max ) X-Ref |
| Calculate size of major step based on the span to be displayed and the defined MIN_MAJOR_COUNT constant. param: float $min Real data minimum param: float $max Real data maximum return: void |
| addData( array $values ) X-Ref |
| Add data for this axis param: array $values Value which will be displayed on this axis return: void |
| calculateAxisBoundings() X-Ref |
| Calculate axis bounding values on base of the assigned values return: void |
| getCoordinate( $value ) X-Ref |
| Get coordinate for a dedicated value on the chart param: float $value Value to determine position for return: float Position on chart |
| getMinorStepCount() X-Ref |
| Return count of minor steps return: integer Count of minor steps |
| getMajorStepCount() X-Ref |
| Return count of major steps return: integer Count of major steps |
| getLabel( $step ) X-Ref |
| Get label for a dedicated step on the axis param: integer $step Number of step return: string label |
| isZeroStep( $step ) X-Ref |
| Is zero step Returns true if the given step is the one on the initial axis position param: int $step Number of step return: bool Status If given step is initial axis position |
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |