Class SvgStyle

Description

SvgStyle.

Located in /mains/SvgStyle.php (line 28)


	
			
Variable Summary
 array $_styles
Method Summary
 void __construct ([mixed $style = NULL])
 void fromString (string $str)
 string getAttribute (string $styleName)
 void setAttribute (string $styleName, [string $styleValue = NULL])
 void toString ()
 void __get (mixed $styleName)
 void __set (mixed $styleName, [mixed $styleValue = NULL])
Variables
array $_styles = array() (line 38)

_styles

  • access: private
Methods
Constructor __construct (line 50)

__construct

  • access: public
void __construct ([mixed $style = NULL])
  • mixed $style
fromString (line 100)
  • access: public
void fromString (string $str)
  • string $str: Attribut de style SVG.
getAttribute (line 86)

get a style attribute

  • todo: rename the method getAttribute
  • access: public
string getAttribute (string $styleName)
  • string $styleName: attribute name.
setAttribute (line 67)

Set a style attribute.

  • access: public
void setAttribute (string $styleName, [string $styleValue = NULL])
  • string $styleName: attribute name
  • string $styleValue: attribute value
toString (line 122)

toString

  • access: public
void toString ()
__get (line 164)

Allow direct access to get a style attribute

  1.  $color $font->color;
  2.  $fontSize $font->{'font-size'};

  • access: public
void __get (mixed $styleName)
  • mixed $styleName: attribute name
__set (line 147)

Allow direct acces to set style attributes

  1.  $font new SvgStyle();
  2.  $font->color '#000';
  3.  $font->{'font-size'14;

  • access: public
void __set (mixed $styleName, [mixed $styleValue = NULL])
  • mixed $styleName: attribute name
  • mixed $styleValue: attribute value

Documentation generated on Tue, 23 Oct 2007 11:32:18 +0200 by phpDocumentor 1.4.0