linea21-externals
[ class tree: linea21-externals ] [ index: linea21-externals ] [ all elements ]

Class: awLabel

Source Location: /class/system/artichow/php4/inc/Label.class.php

Class Overview


Draw labels


Variables

Methods



Class Details

[line 30]
Draw labels



[ Top ]


Class Variables

$angle =  0

[line 58]

Text angle


Type:   int


[ Top ]

$background =

[line 72]

Text background



Tags:

var:  Gradient

Type:   Color,


[ Top ]

$border =

[line 37]

Label border


Type:   int


[ Top ]

$color =

[line 65]

Text color


Type:   Color


[ Top ]

$font =

[line 51]

Text font


Type:   int


[ Top ]

$function =

[line 79]

Callback function


Type:   string


[ Top ]

$hAlign =  LABEL_CENTER

[line 107]

Horizontal align


Type:   int


[ Top ]

$hide =  FALSE

[line 121]

Hide all labels ?


Type:   bool


[ Top ]

$hideFirst =  FALSE

[line 142]

Hide first label


Type:   bool


[ Top ]

$hideKey = array()

[line 128]

Keys to hide


Type:   array


[ Top ]

$hideLast =  FALSE

[line 149]

Hide last label


Type:   bool


[ Top ]

$hideValue = array()

[line 135]

Values to hide


Type:   array


[ Top ]

$interval =  1

[line 100]

Label interval


Type:   int


[ Top ]

$move =

[line 93]

Move position from this vector


Type:   Point


[ Top ]

$padding =

[line 86]

Padding


Type:   int


[ Top ]

$texts =

[line 44]

Label texts


Type:   array


[ Top ]

$vAlign =  LABEL_MIDDLE

[line 114]

Vertical align


Type:   int


[ Top ]



Class Methods


constructor awLabel [line 156]

awLabel awLabel( [string $label = NULL], [ $font = NULL], [ $color = NULL], [ $angle = 0])

Build the label



Parameters:

string   $label   First label
   $font  
   $color  
   $angle  

[ Top ]

method all [line 199]

array all( )

Get all labels



[ Top ]

method count [line 223]

int count( )

Count number of texts in the label



[ Top ]

method draw [line 492]

void draw( $driver $driver, $p $p, [int $key = 0])

Draw the label



Parameters:

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

[ Top ]

method get [line 190]

string get( int $key)

Get an element of the label from its key



Tags:

return:  A value


Parameters:

int   $key   Element key

[ Top ]

method getCallbackFunction [line 241]

string getCallbackFunction( )

Return the callback function for labels



[ Top ]

method getMax [line 575]

void getMax( $driver, $function)



Parameters:

   $driver  
   $function  

[ Top ]

method getMaxHeight [line 479]

int getMaxHeight( $driver $driver)

Get max height of all texts



Parameters:

$driver   $driver   A driver

[ Top ]

method getMaxWidth [line 467]

int getMaxWidth( $driver $driver)

Get max width of all texts



Parameters:

$driver   $driver   A driver

[ Top ]

method getText [line 426]

Text getText( mixed $key)

Get a text from the labele



Parameters:

mixed   $key   Key in the array text

[ Top ]

method hide [line 333]

void hide( [bool $hide = TRUE])

Hide all labels ?



Parameters:

bool   $hide  

[ Top ]

method hideFirst [line 369]

void hideFirst( bool $hide)

Hide first label



Parameters:

bool   $hide  

[ Top ]

method hideKey [line 351]

void hideKey( int $key)

Hide a key



Parameters:

int   $key   The key to hide

[ Top ]

method hideLast [line 378]

void hideLast( bool $hide)

Hide last label



Parameters:

bool   $hide  

[ Top ]

method hideValue [line 360]

void hideValue( int $value)

Hide a value



Parameters:

int   $value   The value to hide

[ Top ]

method move [line 399]

void move( int $x, int $y)

Change label position



Parameters:

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

[ Top ]

method set [line 208]

void set( array $labels)

Set one or several labels



Parameters:

array   $labels   Array of string or a string

[ Top ]

method setAlign [line 411]

void setAlign( [int $h = NULL], [int $v = NULL])

Change alignment



Parameters:

int   $h   Horizontal alignment
int   $v   Vertical alignment

[ Top ]

method setAngle [line 276]

void setAngle( int $angle)

Change font angle



Parameters:

int   $angle   New angle

[ Top ]

method setBackground [line 294]

void setBackground( mixed $background)

Change text background



Parameters:

mixed   $background  

[ Top ]

method setBackgroundColor [line 303]

void setBackgroundColor( Color $color)

Change text background color



Parameters:

Color   $color  

[ Top ]

method setBackgroundGradient [line 312]

void setBackgroundGradient( Gradient $gradient)

Change text background gradient



Parameters:

Gradient   $gradient  

[ Top ]

method setCallbackFunction [line 232]

void setCallbackFunction( string $function)

Set a callback function for labels



Parameters:

string   $function  

[ Top ]

method setColor [line 285]

void setColor( $color $color)

Change font color



Parameters:

$color   $color  

[ Top ]

method setFont [line 264]

void setFont( &$font &$font, [$color $color = NULL])

Change font for label



Parameters:

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

[ Top ]

method setFormat [line 250]

void setFormat( string $format)

Change labels format



Parameters:

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

[ Top ]

method setInterval [line 387]

void setInterval( int $interval)

Set label interval



Parameters:

int   $interval  

[ Top ]

method setPadding [line 324]

void setPadding( int $left, int $right, int $top, int $bottom)

Change padding



Parameters:

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

[ Top ]

method show [line 342]

void show( [bool $show = TRUE])

Show all labels ?



Parameters:

bool   $show  

[ Top ]


Documentation generated on Sat, 08 Nov 2008 14:52:43 +0100 by phpDocumentor 1.4.1