mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
Moved under "trunk" to be able to track releases under "tags"
SVN:trunk[55]
This commit is contained in:
56
pages/php-ofc-library/ofc_y_axis_base.php
Normal file
56
pages/php-ofc-library/ofc_y_axis_base.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
class y_axis_base
|
||||
{
|
||||
function y_axis_base(){}
|
||||
|
||||
function set_stroke( $s )
|
||||
{
|
||||
$this->stroke = $s;
|
||||
}
|
||||
|
||||
function set_tick_length( $val )
|
||||
{
|
||||
$tmp = 'tick-length';
|
||||
$this->$tmp = $val;
|
||||
}
|
||||
|
||||
function set_colours( $colour, $grid_colour )
|
||||
{
|
||||
$this->set_colour( $colour );
|
||||
$this->set_grid_colour( $grid_colour );
|
||||
}
|
||||
|
||||
function set_colour( $colour )
|
||||
{
|
||||
$this->colour = $colour;
|
||||
}
|
||||
|
||||
function set_grid_colour( $colour )
|
||||
{
|
||||
$tmp = 'grid-colour';
|
||||
$this->$tmp = $colour;
|
||||
}
|
||||
|
||||
function set_range( $min, $max, $steps=1 )
|
||||
{
|
||||
$this->min = $min;
|
||||
$this->max = $max;
|
||||
$this->set_steps( $steps );
|
||||
}
|
||||
|
||||
function set_offset( $off )
|
||||
{
|
||||
$this->offset = $off?1:0;
|
||||
}
|
||||
|
||||
function set_labels( $labels )
|
||||
{
|
||||
$this->labels = $labels;
|
||||
}
|
||||
|
||||
function set_steps( $steps )
|
||||
{
|
||||
$this->steps = $steps;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user