[ 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/php4/inc/ -> Label.class.php (sommaire)

(pas de description)

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

Définit 1 class

awLabel:: (29 méthodes):
  awLabel()
  get()
  all()
  set()
  count()
  setCallbackFunction()
  getCallbackFunction()
  setFormat()
  setFont()
  setAngle()
  setColor()
  setBackground()
  setBackgroundColor()
  setBackgroundGradient()
  setPadding()
  hide()
  show()
  hideKey()
  hideValue()
  hideFirst()
  hideLast()
  setInterval()
  move()
  setAlign()
  getText()
  getMaxWidth()
  getMaxHeight()
  draw()
  getMax()


Classe: awLabel  - X-Ref

Draw labels

awLabel($label = NULL, $font = NULL, $color = NULL, $angle = 0)   X-Ref
Build the label

param: string $label First label

get($key)   X-Ref
Get an element of the label from its key

param: int $key Element key
return: string A value

all()   X-Ref
Get all labels

return: array

set($labels)   X-Ref
Set one or several labels

param: array $labels Array of string or a string

count()   X-Ref
Count number of texts in the label

return: int

setCallbackFunction($function)   X-Ref
Set a callback function for labels

param: string $function

getCallbackFunction()   X-Ref
Return the callback function for labels

return: string

setFormat($format)   X-Ref
Change labels format

param: string $format New format (printf style: %.2f for example)

setFont(&$font, $color = NULL)   X-Ref
Change font for label

param: &$font New font
param: $color Font color (can be NULL)

setAngle($angle)   X-Ref
Change font angle

param: int $angle New angle

setColor($color)   X-Ref
Change font color

param: $color

setBackground($background)   X-Ref
Change text background

param: mixed $background

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

param: Color

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

param: Gradient

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

param: int $left Left padding
param: int $right Right padding
param: int $top Top padding
param: int $bottom Bottom padding

hide($hide = TRUE)   X-Ref
Hide all labels ?

param: bool $hide

show($show = TRUE)   X-Ref
Show all labels ?

param: bool $show

hideKey($key)   X-Ref
Hide a key

param: int $key The key to hide

hideValue($value)   X-Ref
Hide a value

param: int $value The value to hide

hideFirst($hide)   X-Ref
Hide first label

param: bool $hide

hideLast($hide)   X-Ref
Hide last label

param: bool $hide

setInterval($interval)   X-Ref
Set label interval

param: int

move($x, $y)   X-Ref
Change label position

param: int $x Add this interval to X coord
param: int $y Add this interval to Y coord

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

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

getText($key)   X-Ref
Get a text from the labele

param: mixed $key Key in the array text
return: Text

getMaxWidth($drawer)   X-Ref
Get max width of all texts

param: $drawer A drawer
return: int

getMaxHeight($drawer)   X-Ref
Get max height of all texts

param: $drawer A drawer
return: int

draw($drawer, $p, $key = 0)   X-Ref
Draw the label

param: $drawer
param: $p Label center
param: int $key Text position in the array of texts (default to zero)

getMax($drawer, $function)   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