[ Index ]
 

Code source de Cr@wltr@ck 2.2.1

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/graphs/artichow/php5/inc/ -> Legend.class.php (sommaire)

(pas de description)

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

Définit 2 classes

awLegend:: (21 méthodes):
  __construct()
  setModel()
  hide()
  show()
  add()
  setPadding()
  setSpace()
  setAlign()
  setColumns()
  setRows()
  setPosition()
  getPosition()
  setTextFont()
  setTextMargin()
  setTextColor()
  setBackground()
  setBackgroundColor()
  setBackgroundGradient()
  count()
  draw()
  drawBase()

awLegendable:: (5 méthodes):
  getLegendLineStyle()
  getLegendLineThickness()
  getLegendLineColor()
  getLegendBackground()
  getLegendMark()


Classe: awLegend  - X-Ref

Some legends

__construct($model = awLegend::MODEL_RIGHT)   X-Ref
Build the legend

param: int $model Legend model

setModel($model)   X-Ref
Set a predefined model for the legend

param: int $model

hide($hide = TRUE)   X-Ref
Hide legend ?

param: bool $hide TRUE to hide legend, FALSE otherwise

show($show = TRUE)   X-Ref
Show legend ?

param: bool $show

add(awLegendable $legendable, $title, $type = awLegend::LINE)   X-Ref
Add a Legendable object to the legend

param: awLegendable $legendable
param: string $title Legend title
param: int $type Legend type (default to awLegend::LINE)

setPadding($left, $right, $top, $bottom)   X-Ref
Change legend padding

param: int $left
param: int $right
param: int $top
param: int $bottom

setSpace($space)   X-Ref
Change space between each legend

param: int $space

setAlign($h = NULL, $v = NULL)   X-Ref
Change alignment

param: int $h Horizontal alignment
param: int $v Vertical alignment

setColumns($columns)   X-Ref
Change number of columns

param: int $columns

setRows($rows)   X-Ref
Change number of rows

param: int $rows

setPosition($x = NULL, $y = NULL)   X-Ref
Change legend position
X and Y positions must be between 0 and 1.

param: float $x
param: float $y

getPosition()   X-Ref
Get legend position

return: Point

setTextFont(awFont $font)   X-Ref
Change text font

param: awFont $font

setTextMargin($left, $right)   X-Ref
Change text margin

param: int $left
param: int $right

setTextColor(awColor $color)   X-Ref
Change text color

param: awColor $color

setBackground($background)   X-Ref
Change background

param: mixed $background

setBackgroundColor(awColor $color)   X-Ref
Change background color

param: awColor $color

setBackgroundGradient(awGradient $gradient)   X-Ref
Change background gradient

param: awGradient $gradient

count()   X-Ref
Count the number of Legendable objects in the legend

return: int

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

drawBase(awDrawer $drawer, awPoint $p, $width, $height)   X-Ref
Pas de description

Interface: awLegendable  - X-Ref

You can add a legend to components which implements this interface

getLegendLineStyle()   X-Ref
Get the line type

return: int

getLegendLineThickness()   X-Ref
Get the line thickness

return: int

getLegendLineColor()   X-Ref
Get the color of line

return: Color

getLegendBackground()   X-Ref
Get the background color or gradient of an element of the component

return: Color, Gradient

getLegendMark()   X-Ref
Get a Mark object

return: Mark



Généré le : Thu Sep 6 14:14:11 2007 par Balluche grâce à PHPXref 0.7