PHP Class Axis, GotCms

Inheritance: extends AxisPrototype
Show file Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$fit
$length
$max_value
$min_unit
$min_value
$uneven
$unit_size
$zero

Public Methods

Method Description
Grid ( $min, $round_up = false ) Returns the grid spacing
Uneven ( ) Returns TRUE if the grid spacing does not fill the grid
Unit ( ) Returns the size of a unit in grid space
Zero ( ) Returns the distance along the axis where 0 should be
__construct ( $length, $max_val, $min_val, $min_unit, $fit = false )

Private Methods

Method Description
find_division ( $length, $min, &$count, &$neg_count, &$magnitude ) Determine the axis divisions
nice ( $n, $m ) Returns TRUE if the number $n is 'nice'
sub_division ( $length, $min, &$count, &$neg_count, &$magnitude ) Subdivide when the divisions are too large

Method Details

Grid() public method

Returns the grid spacing
public Grid ( $min, $round_up = false )

Uneven() public method

Returns TRUE if the grid spacing does not fill the grid
public Uneven ( )

Unit() public method

Returns the size of a unit in grid space
public Unit ( )

Zero() public method

Returns the distance along the axis where 0 should be
public Zero ( )

__construct() public method

public __construct ( $length, $max_val, $min_val, $min_unit, $fit = false )

Property Details

$fit protected property

protected $fit

$length protected property

protected $length

$max_value protected property

protected $max_value

$min_unit protected property

protected $min_unit

$min_value protected property

protected $min_value

$uneven protected property

protected $uneven

$unit_size protected property

protected $unit_size

$zero protected property

protected $zero