VCL
[ class tree: VCL ] [ index: VCL ] [ all elements ]

Class: Canvas

Source Location: /graphics.inc.php

Class Overview

Object
   |
   --Persistent
      |
      --Canvas

Canvas class


Class Details

[line 875]
Canvas class



[ Top ]

Properties

  • Brush   [published]
  • Font   [published]
  • Font   [public]
  • Pen   [published]

Events

    [none]

JS Events

    [none]

Methods

Constants

    [none]

Inherited Properties

Class: Persistent

Persistent::NamePath
Used to serialize/unserialize
Persistent::Owner
Owner of the component, in Persistent always return null

Inherited Events

Inherited JS Events

Inherited Methods

Class: Persistent

Persistent::assign
Assing the source properties to this object
Persistent::assignError
Raises an assignation error
Persistent::assignTo
Assign this object to another object
Persistent::serialize
Stores this object into the session, it uses PHP reflection system to get published properties, the ones that will be stored.
Persistent::unserialize
Read this object properties from the session, only published properties will be recovered, components need an owner to be unserialized.

Class: Object

Object::__construct
Constructor
Object::className
Returns the name of the object class
Object::classNameIs
Check if the object is from a specific class
Object::classParent
Returns the parent class of the object
Object::inheritsFrom
Check if the object inherits from a specific class
Object::methodExists
Check if a method exists
Object::readProperty
Reads a property from the streams
Object::__get
To virtualize properties
Object::__set
To virtualize properties

Properties


property Brush [line 1120]

[ Top ]

property Font [line 1122]

[ Top ]

property Font [line 1116]



Tags:

access:  protected
[ Top ]

property Pen [line 1124]

[ Top ]


Events



Javascript Events



Methods


constructor __construct [line 884]

Canvas __construct( [ $aowner = null])



Overrides Object::__construct (Constructor)

Parameters:

   $aowner  

[ Top ]

void Arc [line 963]

void Arc( $x1, $y1, $x2, $y2, $x3, $y3, $x4, $y4)

Draws an arc on the image along the perimeter of the ellipse bounded by the specified rectangle.



Parameters:

   $x1  
   $y1  
   $x2  
   $y2  
   $x3  
   $y3  
   $x4  
   $y4  

[ Top ]

void BeginDraw [line 944]

void BeginDraw( )

Begins draw cycle. Establishes internal Canvas object.

Should be followed by EndDraw to push drawing to the page canvas




[ Top ]

void BevelLine [line 1108]

void BevelLine( $color, $x1, $y1, $x2, $y2)

Draw the line using specified color



Parameters:

   $color  
   $x1  
   $y1  
   $x2  
   $y2  

[ Top ]

void BevelRect [line 1095]

void BevelRect( $x1, $y1, $x2, $y2, $color1, $color2)

Draw Bevel-like rectangle using specified colors



Parameters:

   $x1  
   $y1  
   $x2  
   $y2  
   $color1  
   $color2  

[ Top ]

void Ellipse [line 973]

void Ellipse( x1, $x1, x2, $y1, $x2, $y2)

Draws the ellipse defined by a bounding rectangle on the canvas.



Parameters:

x1,   $x1   y1 - The top left point at pixel coordinates
x2,   $y1   y2 - The bottom right point
   $x2  
   $y2  

[ Top ]

void EndDraw [line 954]

void EndDraw( )

Ends draw cycle. Used to finish drawing and push it to

the page canvas




[ Top ]

void FillRect [line 987]

void FillRect( x1, $x1, x2, $y1, $x2, $y2)

Fills the specified rectangle on the canvas using the current brush.

The region is filled including the top and left sides of the rectangle, but excluding the bottom and right edges.




Parameters:

x1,   $x1   y1 - The top left point at pixel coordinates
x2,   $y1   y2 - The bottom right point
   $x2  
   $y2  

[ Top ]

void forceBrush [line 896]

void forceBrush( )



Tags:

access:  protected


[ Top ]

void forceFont [line 915]

void forceFont( )



Tags:

access:  protected


[ Top ]

void forcePen [line 905]

void forcePen( )



Tags:

access:  protected


[ Top ]

void FrameRect [line 995]

void FrameRect( $x1, $y1, $x2, $y2)

Draws a rectangle using the Brush of the canvas to draw the border.



Parameters:

   $x1  
   $y1  
   $x2  
   $y2  

[ Top ]

void InitLibrary [line 921]

void InitLibrary( )



[ Top ]

void Line [line 1006]

void Line( x1, $x1, x2, $y1, $x2, $y2)

Draws a line on the canvas using specified coordinates



Parameters:

x1,   $x1   y1 - The starting point
x2,   $y1   y2 - The ending point
   $x2  
   $y2  

[ Top ]

void Polygon [line 1011]

void Polygon( $points)



Parameters:

   $points  

[ Top ]

void Polyline [line 1020]

void Polyline( $points)



Parameters:

   $points  

[ Top ]

void Rectangle [line 1031]

void Rectangle( $x1, $y1, $x2, $y2)

Draws a rectangle on the canvas using Pen and fill it with Brush



Parameters:

   $x1  
   $y1  
   $x2  
   $y2  

[ Top ]

void RoundRect [line 1041]

void RoundRect( $x1, $y1, $x2, $y2, $w, $h)

Draws a rectangle with rounded corners on the canvas.



Parameters:

   $x1  
   $y1  
   $x2  
   $y2  
   $w  
   $h  

[ Top ]

void SetCanvasProperties [line 935]

void SetCanvasProperties( $Name)



Parameters:

   $Name  

[ Top ]

void StretchDraw [line 1080]

void StretchDraw( $x1, $y1, $x2, $y2, $image)

Draws the graphic specified by the @image parameter in the rectangle specified by the Rect coordinates.



Parameters:

   $x1  
   $y1  
   $x2  
   $y2  
   $image  

[ Top ]

void TextOut [line 1087]

void TextOut( $x, $y, $text)

Writes a string on the canvas, starting at the point (X,Y)



Parameters:

   $x  
   $y  
   $text  

[ Top ]



Documentation generated on Tue, 27 Mar 2007 13:35:04 +0200 by phpDocumentor 1.3.1