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

Class: awComponent

Source Location: /class/system/artichow/php4/Component.class.php

Class Overview




Variables

Methods


Child classes:

awComponentGroup
A graph can contain some groups of components

Class Details

[line 49]


[ Top ]


Class Variables

$auto =  TRUE

[line 149]

Adjust automatically the component ?


Type:   bool


[ Top ]

$background =

[line 121]

Component background color


Type:   Color


[ Top ]

$driver =

[line 56]

Component driver


Type:   Driver


[ Top ]

$h =

[line 100]

Component absolute height (in pixels)


Type:   int


[ Top ]

$height =  1.0

[line 70]

Component height


Type:   float


[ Top ]

$left =

[line 114]

Left-top corner X position


Type:   float


[ Top ]

$legend =

[line 156]

Legend


Type:   Legend


[ Top ]

$padding =

[line 128]

Component padding


Type:   Side


[ Top ]

$space =

[line 135]

Component space


Type:   Side


[ Top ]

$title =

[line 142]

Component title


Type:   Label


[ Top ]

$top =

[line 107]

Left-top corner Y position


Type:   float


[ Top ]

$w =

[line 92]

Component absolute width (in pixels)


Type:   int


[ Top ]

$width =  1.0

[line 63]

Component width


Type:   float


[ Top ]

$x =  0.5

[line 77]

Position X of the center the graph (from 0 to 1)


Type:   float


[ Top ]

$y =  0.5

[line 84]

Position Y of the center the graph (from 0 to 1)


Type:   float


[ Top ]



Class Methods


constructor awComponent [line 161]

awComponent awComponent( )

Build the component



[ Top ]

method auto [line 185]

void auto( bool $auto)

Adjust automatically the component ?



Parameters:

bool   $auto  

[ Top ]

method finalize [line 360]

void finalize( $driver)

Finalize the drawing of the component



Parameters:

   $driver  

[ Top ]

method getBackground [line 253]

Color, getBackground( )

Return the component background



Tags:

return:  Gradient


[ Top ]

method getPosition [line 312]

array getPosition( )

Get component coords with its padding



Tags:

return:  Coords of the component


[ Top ]

method getSpace [line 402]

array getSpace( int $width, int $height)

Get space width in pixels



Parameters:

int   $width   Component width
int   $height   Component height

[ Top ]

method init [line 327]

void init( $driver)

Init the drawing of the component



Overridden in child classes as:

awPlotGroup::init()

Parameters:

   $driver  

[ Top ]

method setAbsPosition [line 287]

void setAbsPosition( $left, $top)

Change the absolute position of the component on the graph



Tags:

var:  Left-top corner X position


Parameters:

   $left  
   $top  

[ Top ]

method setAbsSize [line 208]

void setAbsSize( int $w, int $h)

Change the absolute size of the component



Parameters:

int   $w   Component width (in pixels)
int   $h   Component height (in pixels)

[ Top ]

method setBackgroundColor [line 220]

void setBackgroundColor( $color $color)

Change component background color



Parameters:

$color   $color   (can be null)

[ Top ]

method setBackgroundGradient [line 231]

void setBackgroundGradient( $gradient $gradient)

Change component background gradient



Parameters:

$gradient   $gradient   (can be null)

[ Top ]

method setBackgroundImage [line 242]

void setBackgroundImage( &$image $image)

Change component background image



Parameters:

&$image   $image   (can be null)

[ Top ]

method setCenter [line 300]

void setCenter( int $x, int $y)

Set the center of the component



Parameters:

int   $x   Position X of the center of the component
int   $y   Position Y of the center of the component

[ Top ]

method setPadding [line 265]

void setPadding( [int $left = NULL], [int $right = NULL], [int $top = NULL], [int $bottom = NULL])

Change component padding



Parameters:

int   $left   Padding in pixels (NULL to keep old value)
int   $right   Padding in pixels (NULL to keep old value)
int   $top   Padding in pixels (NULL to keep old value)
int   $bottom   Padding in pixels (NULL to keep old value)

[ Top ]

method setSize [line 195]

void setSize( int $width, int $height)

Change the size of the component



Parameters:

int   $width   Component width (from 0 to 1)
int   $height   Component height (from 0 to 1)

[ Top ]

method setSpace [line 277]

void setSpace( [float $left = NULL], [float $right = NULL], [float $bottom = NULL], [float $top = NULL])

Change component space



Parameters:

float   $left   Space in % (NULL to keep old value)
float   $right   Space in % (NULL to keep old value)
float   $bottom   Space in % (NULL to keep old value)
float   $top   Space in % (NULL to keep old value)

[ Top ]


Documentation generated on Sat, 08 Nov 2008 14:51:41 +0100 by phpDocumentor 1.4.1