[ Index ]
 

Code source de phpMyVisites 2.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libs/artichow/php5/inc/ -> Axis.class.php (sommaire)

(pas de description)

Poids: 790 lignes (15 kb)
Inclus ou requis: 2 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

awAxis:: (41 méthodes):
  __construct()
  auto()
  isAuto()
  hide()
  show()
  tick()
  addTick()
  deleteTick()
  hideTicks()
  setTickStyle()
  setTickInterval()
  setNumberByTick()
  reverseTickStyle()
  setLabelInterval()
  setLabelNumber()
  getLabelNumber()
  setLabelPrecision()
  setLabelText()
  toPosition()
  setTitleAlignment()
  setTitlePosition()
  setColor()
  setPadding()
  getPadding()
  setRange()
  getRange()
  setRangeCallback()
  setXCenter()
  setYCenter()
  getDistance()
  getPointFromValue()
  getPointFromPosition()
  draw()
  autoScale()
  line()
  drawTicks()
  drawLabels()
  getVector()
  __clone()
  toProportionalValue()
  toProportionalPosition()


Classe: awAxis  - X-Ref

Handle axis

__construct($min = NULL, $max = NULL)   X-Ref
Build the axis

param: float $min Begin of the range of the axis
param: float $max End of the range of the axis

auto($auto)   X-Ref
Enable/disable auto-scaling mode

param: bool $auto

isAuto()   X-Ref
Get auto-scaling mode status

return: bool

hide($hide = TRUE)   X-Ref
Hide axis

param: bool $hide

show($show = TRUE)   X-Ref
Show axis

param: bool $show

tick($name)   X-Ref
Return a tick object from its name

param: string $name Tick object name
return: Tick

addTick($name, awTick $tick)   X-Ref
Add a tick object

param: string $name Tick object name
param: awTick $tick Tick object

deleteTick($name)   X-Ref
Delete a tick object

param: string $name Tick object name

hideTicks($hide = TRUE)   X-Ref
Hide all ticks

param: bool $hide Hide or not ?

setTickStyle($style)   X-Ref
Change ticks style

param: int $style Ticks style

setTickInterval($interval)   X-Ref
Change ticks interval

param: int $interval Ticks interval

setNumberByTick($to, $from, $number)   X-Ref
Change number of ticks relative to others ticks

param: awTick $to Change number of theses ticks
param: awTick $from Ticks reference
param: float $number Number of ticks by the reference

reverseTickStyle()   X-Ref
Reverse ticks style


setLabelInterval($interval)   X-Ref
Change interval of labels

param: int $interval Interval

setLabelNumber($number)   X-Ref
Change number of labels

param: int $number Number of labels to display (can be NULL)

getLabelNumber()   X-Ref
Get number of labels

return: int

setLabelPrecision($precision)   X-Ref
Change precision of labels

param: int $precision Precision

setLabelText($texts)   X-Ref
Change text of labels

param: array $texts Some texts

toPosition(awAxis $xAxis, awAxis $yAxis, awPoint $p)   X-Ref
Get the position of a point

param: awAxis $xAxis X axis
param: awAxis $yAxis Y axis
param: awPoint $p Position of the point
return: Point Position on the axis

setTitleAlignment($alignment)   X-Ref
Change title alignment

param: int $alignment New Alignment

setTitlePosition($position)   X-Ref
Change title position on the axis

param: float $position A new awposition between 0 and 1

setColor(awColor $color)   X-Ref
Change axis and axis title color

param: awColor $color

setPadding($left, $right)   X-Ref
Change axis padding

param: int $left Left padding in pixels
param: int $right Right padding in pixels

getPadding()   X-Ref
Get axis padding

return: Side

setRange($min, $max)   X-Ref
Change axis range

param: float $min
param: float $max

getRange()   X-Ref
Get axis range

return: array

setRangeCallback($toValue, $toPosition)   X-Ref
Change axis range callback function

param: string $toValue Transform a position between 0 and 1 to a value
param: string $toPosition Transform a value to a position between 0 and 1 on the axis

setXCenter(awAxis $axis, $value)   X-Ref
Center X values of the axis

param: awAxis $axis An axis
param: float $value The reference value on the axis

setYCenter(awAxis $axis, $value)   X-Ref
Center Y values of the axis

param: awAxis $axis An axis
param: float $value The reference value on the axis

getDistance($from, $to)   X-Ref
Get the distance between to values on the axis

param: float $from The first value
param: float $to The last value
return: Point

getPointFromValue($value)   X-Ref
Get a point on the axis from a value

param: float $value
return: Point

getPointFromPosition($position)   X-Ref
Get a point on the axis from a position

param: float $position A position between 0 and 1
return: Point

draw(awDrawer $drawer)   X-Ref
Draw axis

param: awDrawer $drawer A drawer

autoScale()   X-Ref
Pas de description

line(awDrawer $drawer)   X-Ref
Pas de description

drawTicks(awDrawer $drawer, awVector $vector)   X-Ref
Pas de description

drawLabels($drawer)   X-Ref
Pas de description

getVector()   X-Ref
Pas de description

__clone()   X-Ref
Pas de description

toProportionalValue($position, $min, $max)   X-Ref
Pas de description

toProportionalPosition($value, $min, $max)   X-Ref
Pas de description



Généré le : Mon Nov 26 14:10:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics