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

Class: awMingDriver

Source Location: /class/system/artichow/php5/inc/drivers/ming.class.php

Class Overview

awDriver
   |
   --awMingDriver

Draw your objects


Variables

Methods


Inherited Variables

Inherited Methods

Class: awDriver

awDriver::__construct()
awDriver::arc()
Draw a color arc
awDriver::copyImage()
Draw an image here
awDriver::copyResizeImage()
Draw an image here
awDriver::ellipse()
Draw a colored ellipse
awDriver::filledArc()
Draw an arc with a background color
awDriver::filledEllipse()
Draw an ellipse with a background
awDriver::filledPolygon()
Draw a polygon with a background
awDriver::filledRectangle()
Draw a rectangle with a background
awDriver::get()
Get the image as binary data
awDriver::getColor()
When passed a Color object, returns the corresponding color identifier (driver dependant).
awDriver::getDriverString()
Return the string representing the type of driver
awDriver::getSize()
Get the size of the component handled by the driver
awDriver::getTextHeight()
Return the height of some text
awDriver::getTextWidth()
Return the width of some text
awDriver::init()
Initialize the driver for a particular awImage object
awDriver::initFromFile()
Initialize the Driver for a particular FileImage object
awDriver::isCompatibleWithFont()
Returns whether or not the driver is compatible with the given font type
awDriver::line()
Draw a colored line
awDriver::movePosition()
Move the position of the image
awDriver::point()
Draw a pixel
awDriver::polygon()
Draw a polygon
awDriver::rectangle()
Draw a colored rectangle
awDriver::send()
Sends the image, as well as the correct HTTP headers, to the browser
awDriver::setAbsPosition()
Inform the driver of the position of your image This method need absolutes values
awDriver::setAbsSize()
Inform the driver of the size of your image You can set absolute size with this method.
awDriver::setAntiAliasing()
Turn antialiasing on or off
awDriver::setImageSize()
Change the image size
awDriver::setPosition()
Inform the driver of the position of your image
awDriver::setSize()
Inform the driver of the size of your image Height and width must be between 0 and 1.
awDriver::string()
Draw a string

Class Details

[line 18]
Draw your objects



[ Top ]


Class Variables

$movie =

[line 25]

The Flash movie



Tags:

access:  public

Type:   $movie


[ Top ]



Class Methods


constructor __construct [line 27]

awMingDriver __construct( )



Tags:

access:  public


Overrides awDriver::__construct() (parent method not documented)

[ Top ]

method arc [line 408]

void arc( awColor $color, awPoint $center, int $width, int $height, int $from, int $to)

Draw a color arc



Tags:

access:  public


Overrides awDriver::arc() (Draw a color arc)

Parameters:

awColor   $color   Arc color
awPoint   $center   Point center
int   $width   Ellipse width
int   $height   Ellipse height
int   $from   Start angle
int   $to   End angle

[ Top ]

method copyImage [line 232]

void copyImage( awImage $image, awPoint $p1, awPoint $p2)

Draw an image here



Tags:

access:  public


Overrides awDriver::copyImage() (Draw an image here)

Parameters:

awImage   $image   Image
int   $p1   Image top-left point
int   $p2   Image bottom-right point

[ Top ]

method copyResizeImage [line 246]

void copyResizeImage( awImage $image, awPoint $d1, awPoint $d2, awPoint $s1, awPoint $s2, [bool $resample = TRUE])

Draw an image here



Tags:

access:  public


Overrides awDriver::copyResizeImage() (Draw an image here)

Parameters:

awImage   $image   Image
int   $d1   Destination top-left position
int   $d2   Destination bottom-right position
int   $s1   Source top-left position
int   $s2   Source bottom-right position
bool   $resample   Resample image ? (default to TRUE)

[ Top ]

method ellipse [line 434]

void ellipse( awColor $color, awPoint $center, int $width, int $height)

Draw a colored ellipse



Tags:

access:  public


Overrides awDriver::ellipse() (Draw a colored ellipse)

Parameters:

awColor   $color   Ellipse color
awPoint   $center   Ellipse center
int   $width   Ellipse width
int   $height   Ellipse height

[ Top ]

method filledArc [line 422]

void filledArc( awColor $color, awPoint $center, int $width, int $height, int $from, int $to)

Draw an arc with a background color



Tags:

access:  public


Overrides awDriver::filledArc() (Draw an arc with a background color)

Parameters:

awColor   $color   Arc background color
awPoint   $center   Point center
int   $width   Ellipse width
int   $height   Ellipse height
int   $from   Start angle
int   $to   End angle

[ Top ]

method filledEllipse [line 446]

void filledEllipse( mixed $background, awPoint $center, int $width, int $height)

Draw an ellipse with a background



Tags:

access:  public


Overrides awDriver::filledEllipse() (Draw an ellipse with a background)

Parameters:

mixed   $background   Background (can be a color or a gradient)
awPoint   $center   Ellipse center
int   $width   Ellipse width
int   $height   Ellipse height

[ Top ]

method filledPolygon [line 617]

void filledPolygon( mixed $background, awPolygon $polygon)

Draw a polygon with a background



Tags:

access:  public


Overrides awDriver::filledPolygon() (Draw a polygon with a background)

Parameters:

mixed   $background   Background (can be a color or a gradient)
Polygon   $polygon   A polygon

[ Top ]

method filledRectangle [line 513]

void filledRectangle( mixed $background, awLine $line)

Draw a rectangle with a background



Tags:

access:  public


Overrides awDriver::filledRectangle() (Draw a rectangle with a background)

Parameters:

mixed   $background   Background (can be a color or a gradient)
awLine   $line   Rectangle diagonale

[ Top ]

method get [line 678]

void get( awImage $image)

Get the image as binary data



Tags:

access:  public


Overrides awDriver::get() (Get the image as binary data)

Parameters:

awImage   $image  

[ Top ]

method getColor [line 209]

array getColor( awColor $color)

When passed a Color object, returns the corresponding color identifier (driver dependant).



Tags:

return:  A color identifier representing the color composed of the given RGB components
access:  public


Overrides awDriver::getColor() (When passed a Color object, returns the corresponding color identifier (driver dependant).)

Parameters:

awColor   $color   A Color object

[ Top ]

method getSize [line 176]

array getSize( )

Get the size of the component handled by the driver



Tags:

return:  Absolute width and height of the component
access:  public


Overrides awDriver::getSize() (Get the size of the component handled by the driver)

[ Top ]

method getTextHeight [line 694]

void getTextHeight( awText $text)



Tags:

access:  public


Overrides awDriver::getTextHeight() (Return the height of some text)

Parameters:

awText   $text  

[ Top ]

method getTextWidth [line 682]

void getTextWidth( awText $text)



Tags:

access:  public


Overrides awDriver::getTextWidth() (Return the width of some text)

Parameters:

awText   $text  

[ Top ]

method init [line 44]

void init( awImage $image)

Initialize the driver for a particular awImage object



Tags:

access:  public


Overrides awDriver::init() (Initialize the driver for a particular awImage object)

Parameters:

awImage   $image  

[ Top ]

method initFromFile [line 89]

void initFromFile( awFileImage $fileImage, string $file)

Initialize the Driver for a particular FileImage object



Tags:

access:  public


Overrides awDriver::initFromFile() (Initialize the Driver for a particular FileImage object)

Parameters:

awFileImage   $fileImage   The FileImage object to work on
string   $file   Image filename

[ Top ]

method isCompatibleWithFont [line 706]

void isCompatibleWithFont( awFont $font)



Tags:

access:  protected


Overrides awDriver::isCompatibleWithFont() (Returns whether or not the driver is compatible with the given font type)

Parameters:

awFont   $font  

[ Top ]

method line [line 325]

void line( awColor $color, awLine $line, int $thickness)

Draw a colored line



Tags:

access:  public


Overrides awDriver::line() (Draw a colored line)

Parameters:

awColor   $color   Line color
awLine   $line  
int   $thickness   Line tickness

[ Top ]

method movePosition [line 134]

void movePosition( int $x, int $y)

Move the position of the image



Tags:

access:  public


Overrides awDriver::movePosition() (Move the position of the image)

Parameters:

int   $x   Add this value to X axis
int   $y   Add this value to Y axis

[ Top ]

method point [line 303]

void point( awColor $color, awPoint $p)

Draw a pixel



Tags:

access:  public


Overrides awDriver::point() (Draw a pixel)

Parameters:

awColor   $color   Pixel color
awPoint   $p  

[ Top ]

method polygon [line 586]

void polygon( awColor $color, awPolygon $polygon)

Draw a polygon



Tags:

access:  public


Overrides awDriver::polygon() (Draw a polygon)

Parameters:

awColor   $color   Polygon color
Polygon   $polygon   A polygon

[ Top ]

method rectangle [line 457]

void rectangle( awColor $color, awLine $line, awPoint $p2)

Draw a colored rectangle



Tags:

access:  public


Overrides awDriver::rectangle() (Draw a colored rectangle)

Parameters:

awColor   $color   Rectangle color
awLine   $line   Rectangle diagonale
awPoint   $p2  

[ Top ]

method send [line 669]

void send( awImage $image)

Sends the image, as well as the correct HTTP headers, to the browser



Tags:

access:  public


Overrides awDriver::send() (Sends the image, as well as the correct HTTP headers, to the browser)

Parameters:

awImage   $image   The Image object to send

[ Top ]

method setAbsPosition [line 123]

void setAbsPosition( int $x, int $y)

Inform the driver of the position of your image This method need absolutes values



Tags:

access:  public


Overrides awDriver::setAbsPosition() (Inform the driver of the position of your image This method need absolutes values)

Parameters:

int   $x   Left-top corner X position
int   $y   Left-top corner Y position

[ Top ]

method setAbsSize [line 164]

void setAbsSize( int $w, int $h)

Inform the driver of the size of your image You can set absolute size with this method.



Tags:

access:  public


Overrides awDriver::setAbsSize() (Inform the driver of the size of your image You can set absolute size with this method.)

Parameters:

int   $w   Image width
int   $h   Image height

[ Top ]

method setAntiAliasing [line 185]

void setAntiAliasing( $bool)

Turn antialiasing on or off



Tags:

access:  public


Overrides awDriver::setAntiAliasing() (Turn antialiasing on or off)

Parameters:

   $bool  

[ Top ]

method setImageSize [line 99]

void setImageSize( int $width, int $height)

Change the image size



Tags:

access:  public


Overrides awDriver::setImageSize() (Change the image size)

Parameters:

int   $width   Image width
int   $height   Image height

[ Top ]

method setPosition [line 110]

void setPosition( float $x, float $y)

Inform the driver of the position of your image



Tags:

access:  public


Overrides awDriver::setPosition() (Inform the driver of the position of your image)

Parameters:

float   $x   Position on X axis of the center of the component
float   $y   Position on Y axis of the center of the component

[ Top ]

method setSize [line 147]

array setSize( int $w, int $h)

Inform the driver of the size of your image Height and width must be between 0 and 1.



Tags:

return:  Absolute width and height of the image
access:  public


Overrides awDriver::setSize() (Inform the driver of the size of your image Height and width must be between 0 and 1.)

Parameters:

int   $w   Image width
int   $h   Image height

[ Top ]

method string [line 257]

void string( awText $text, awPoint $point, [int $width = NULL])

Draw a string



Tags:

var:  Text to print
access:  public


Overrides awDriver::string() (Draw a string)

Parameters:

awPoint   $point   Draw the text at this point
int   $width   Text max width
awText   $text  

[ Top ]


Documentation generated on Thu, 03 May 2012 15:06:21 +0200 by phpDocumentor 1.4.1