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

Class: GraphicsGD

Source Location: /GraphicsGD.php

Class Overview

TeeBase
   |
   --GraphicsGD

GraphicsGD class


Author(s):

Version:

  • 1.0

Copyright:

  • (c) 1995-2008 by Steema Software SL. All Rights Reserved. <info@steema.com>

Variables

Methods


Child classes:

Graphics3DFlex
GraphicsGD class

Inherited Variables

Inherited Methods


Class Details

[line 16]
GraphicsGD class

Description: Class with all Chart drawing methods.




Tags:

author:  
version:  1.0
copyright:  (c) 1995-2008 by Steema Software SL. All Rights Reserved. <info@steema.com>
link:  http://www.steema.com


[ Top ]


Class Variables

static $DARKCOLORQUANTITY =  64

[line 56]



Tags:

access:  public

Type:   mixed


[ Top ]

$aspect =

[line 60]



Tags:

access:  protected

Type:   mixed


[ Top ]

$bounds =

[line 65]



Tags:

access:  protected

Type:   mixed


[ Top ]

$brush = null

[line 66]



Tags:

access:  protected

Type:   mixed


[ Top ]

$font = null

[line 63]



Tags:

access:  protected

Type:   mixed


[ Top ]

$height = 0

[line 77]



Tags:

access:  public

Type:   mixed


[ Top ]

$imageinterlace = true

[line 69]



Tags:

access:  protected

Type:   mixed


[ Top ]

$imagereflection = false

[line 70]



Tags:

access:  protected

Type:   mixed


[ Top ]

$img =

[line 75]



Tags:

access:  public

Type:   mixed


[ Top ]

$iPointDoubles =

[line 79]



Tags:

access:  public

Type:   mixed


[ Top ]

$metafiling =

[line 68]



Tags:

access:  protected

Type:   mixed


[ Top ]

$monochrome =

[line 78]



Tags:

access:  public

Type:   mixed


[ Top ]

$moveToX =

[line 32]



Tags:

access:  protected

Type:   mixed


[ Top ]

$moveToY =

[line 33]



Tags:

access:  protected

Type:   mixed


[ Top ]

$pen = null

[line 67]



Tags:

access:  protected

Type:   mixed


[ Top ]

$smoothingMode = false

[line 61]



Tags:

access:  protected

Type:   mixed


[ Top ]

$stringFormat =

[line 64]



Tags:

access:  protected

Type:   mixed


[ Top ]

$supportsID =

[line 72]



Tags:

access:  protected

Type:   mixed


[ Top ]

$textSmooth = false

[line 62]



Tags:

access:  protected

Type:   mixed


[ Top ]

$width = 0

[line 76]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


static method applyDark [line 2747]

static Color applyDark( c $c, howMuch $howMuch)

Converts the Color parameter to a darker color.
The HowMuch parameter indicates the quantity of dark increment.

It is used by Bar Series and Pie Series to calculate the right color to draw Bar sides and Pie 3D zones.




Tags:

access:  public


Parameters:

c   $c   Color
howMuch   $howMuch   int

[ Top ]

static method doReflection [line 2751]

static void doReflection( $im)



Tags:

access:  public


Parameters:

   $im  

[ Top ]

static method getDefaultPattern [line 2592]

static HatchStyle getDefaultPattern( index $index)

Returns a valid Windows Brush Style from anpalette of many possible Brush styles.



Tags:

access:  public


Parameters:

index   $index   int

[ Top ]

static method getScreenHeight [line 2802]

static int getScreenHeight( )

Returns the height, in pixels, of the Chart Panel.
It should be used when using Canvas methods to draw relative to the Panel height.
Note: You should NOT use TChart.Height.



Tags:

access:  public


[ Top ]

static method getScreenWidth [line 2811]

static int getScreenWidth( )

Returns the width, in pixels, of the Chart Panel.



Tags:

access:  public


[ Top ]

static method pointAtDistance [line 2449]

static void pointAtDistance( $From, $To, $distance)



Tags:

access:  public


Parameters:

   $From  
   $To  
   $distance  

[ Top ]

static method pointInEllipse [line 2492]

static boolean pointInEllipse( p $p, rect $rect)

Returns true if point P is inside the ellipse bounded by Rect.



Tags:

access:  public


Parameters:

p   $p   Point
rect   $rect   Rectangle

[ Top ]

static method pointInHorizTriangle [line 2440]

static boolean pointInHorizTriangle( p $p, y0 $y0, y1 $y1, x0 $x0, x1 $x1)

Returns true if point P is inside the horizontal triangle.



Tags:

access:  public


Parameters:

p   $p   Point
y0   $y0   int
y1   $y1   int
x0   $x0   int
x1   $x1   int

[ Top ]

static method pointInPolygon [line 2510]

static boolean pointInPolygon( p $p, poly $poly)

Returns true if point P is inside Poly polygon.



Tags:

access:  public


Parameters:

p   $p   Point
poly   $poly   Point[]

[ Top ]

static method pointInRect [line 2408]

static boolean pointInRect( rect $rect, x $x, y $y)

Obsolete.&nbsp;Please use Rectangle.<!-- -->Contains method.



Tags:

access:  public


Parameters:

rect   $rect   Rectangle
x   $x   int
y   $y   int

[ Top ]

static method pointInTriangle [line 2423]

static boolean pointInTriangle( p $p, x0 $x0, x1 $x1, y0 $y0, y1 $y1)

Returns true if point P is inside the vert triangle of x0y0, midxY1, x1y0.



Tags:

access:  public


Parameters:

p   $p   Point
x0   $x0   int
x1   $x1   int
y0   $y0   int
y1   $y1   int

[ Top ]

static method rectCenter [line 2673]

static void rectCenter( $r)



Tags:

access:  public


Parameters:

   $r  

[ Top ]

static method _pointInEllipse [line 2481]

static boolean _pointInEllipse( p $p, left $left, top $top, right $right, bottom $bottom)

Returns true if point P is inside the ellipse bounded by Left, Top, Right, Bottom.



Tags:

access:  public


Parameters:

p   $p   Point
left   $left   int
top   $top   int
right   $right   int
bottom   $bottom   int

[ Top ]

constructor GraphicsGD [line 105]

GraphicsGD GraphicsGD( IBaseChart $c, integer $width, integer $height)

Creates a new Graphics object



Tags:

access:  public


Parameters:

IBaseChart   $c  
integer   $width  
integer   $height  

[ Top ]

method arrow [line 207]

void arrow( filled $filled, fromPoint $fromPoint, toPoint $toPoint, headWidth $headWidth, headHeight $headHeight, z $z)

Draws a line with an arrow head of ArrowWidth and ArrowHeight dimensions in pixels.



Tags:

access:  public


Parameters:

filled   $filled   boolean
fromPoint   $fromPoint   Point
toPoint   $toPoint   Point
headWidth   $headWidth   int
headHeight   $headHeight   int
z   $z   int

[ Top ]

method calc3DPoint [line 378]

void calc3DPoint( $x, $y, [ $z = 0])



Tags:

access:  public


Parameters:

   $x  
   $y  
   $z  

[ Top ]

method calc3DPos [line 276]

Point calc3DPos( x $x, y $y, z $z)

Calculates and returns the XY position in pixels of the XYZ 3D coordinate.
Can be used when custom drawing using 3D XYZ coordinates are returned from the axes or not.



Tags:

access:  public


Parameters:

x   $x   int
y   $y   int
z   $z   int

[ Top ]

method calc3DPosDouble [line 310]

void calc3DPosDouble( $x, $y, $z, $pointDouble)

Calculates and returns the XY position as double of the XYZ 3D coordinate.
Can be used when custom drawing using 3D XYZ coordinates are returned from the axes or not.

Returns PointDouble




Tags:

access:  public


Parameters:

   $x  
   $y  
   $z  
   $pointDouble  

[ Top ]

method calcPerspective [line 382]

void calcPerspective( $r)



Tags:

access:  public


Parameters:

   $r  

[ Top ]

method calcTrigValues [line 397]

void calcTrigValues( )



Tags:

access:  public


[ Top ]

method changed [line 429]

void changed( $o)



Tags:

access:  public


Parameters:

   $o  

[ Top ]

method clipCube [line 657]

void clipCube( rect $rect, minZ $minZ, maxZ $maxZ)

Creates a cubic Windows GDI clipping region.



Tags:

access:  public


Parameters:

rect   $rect   Rectangle
minZ   $minZ   int
maxZ   $maxZ   int

[ Top ]

method clipPolygon [line 491]

void clipPolygon( polygonPoints $polygonPoints)

Creates a Windows GDI clipping region and selects it into TChart.<!-- -->Canvas device context handle.




Tags:

access:  public


Parameters:

polygonPoints   $polygonPoints   - Array of TeePoints

[ Top ]

method clipRectangle [line 460]

void clipRectangle( left $left, top $top, right $right, bottom $bottom)

Creates a Windows GDI clipping region and selects it into TChart.<!-- -->Canvas device context handle.




Tags:

access:  public


Parameters:

left   $left   int
top   $top   int
right   $right   int
bottom   $bottom   int

[ Top ]

method convexHull [line 2040]

int convexHull( p $p)

Calculates the boundary points of the convex hull of a set of 2D xy points.&nbsp;Original



Tags:

access:  public


Parameters:

p   $p   Point[]

[ Top ]

method createImage [line 696]

void createImage( )

Creates and initialize the image



Tags:

access:  protected


[ Top ]

method cube [line 570]

void cube( left $left, top $top, right $right, bottom $bottom, z0 $z0, z1 $z1, darkSides $darkSides)

Draws a Cube with Dark Sides.



Tags:

access:  public


Parameters:

left   $left   int
top   $top   int
right   $right   int
bottom   $bottom   int
z0   $z0   int
z1   $z1   int
darkSides   $darkSides   boolean

[ Top ]

method cuber [line 555]

void cuber( $rect, $z0, $z1, $darkSides)



Tags:

access:  public


Parameters:

   $rect  
   $z0  
   $z1  
   $darkSides  

[ Top ]

method doRev [line 723]

void doRev( )



Tags:

access:  public


[ Top ]

method draw [line 149]

void draw( r $r, image $image, mode $mode, transparent $shapeBorders, $transparent)

Paints the image in rectangle r.



Tags:

access:  public


Parameters:

r   $r   Rectangle
image   $image   Image
mode   $mode   ImageMode
transparent   $shapeBorders   boolean
   $transparent  

[ Top ]

method drawRoundedBorders [line 1752]

void drawRoundedBorders( $shapeBorders, $backcolor, $forecolor)



Parameters:

   $shapeBorders  
   $backcolor  
   $forecolor  

[ Top ]

method ellipse [line 774]

void ellipse( x1 $x1, y1 $y1, x2 $x2, y2 $y2, [z $z = 0], [angle $angle = 0])

Ellipse bounding Rect (X1,Y1,X2,Y2) at Z position at angle.



Tags:

access:  public


Overridden in child classes as:

Graphics3DFlex::ellipse()

Parameters:

x1   $x1   int
y1   $y1   int
x2   $x2   int
y2   $y2   int
z   $z   int
angle   $angle   double

[ Top ]

method ellipsePoints [line 881]

void ellipsePoints( $p0, $p1)



Tags:

access:  public


Parameters:

   $p0  
   $p1  

[ Top ]

method ellipseRect [line 738]

void ellipseRect( r $r)

Draws an Ellipse bounding Rectangle r.



Tags:

access:  public


Parameters:

r   $r   Rectangle

[ Top ]

method ellipseRectZ [line 748]

void ellipseRectZ( r $r, z $z)

Ellipse bounding Rectangle r at z depth.



Tags:

access:  public


Parameters:

r   $r   Rectangle
z   $z   int

[ Top ]

method ellipseRectZAngle [line 892]

void ellipseRectZAngle( r $r, z $z, angle $angle)

Ellipse bounding rectangle r with Z offset at angle.



Tags:

access:  public


Parameters:

r   $r   Rectangle
z   $z   int
angle   $angle   double

[ Top ]

method fontTextHeight [line 904]

int fontTextHeight( f $f)

Determines the Font Height to be used for outputted text when using the Drawing.



Tags:

access:  public


Parameters:

f   $f   ChartFont

[ Top ]

method getBrush [line 2190]

ChartBrush getBrush( )

Determines the kind of brush used to fill the Canvas draw rectangle background.
The Brush.Visible method must be set to true.



Tags:

access:  public


[ Top ]

method getColorPaletteLength [line 2239]

void getColorPaletteLength( )



Tags:

access:  public


[ Top ]

method getDefaultColor [line 2217]

Color getDefaultColor( index $index)

Returns a color from global ColorPalette array variable.



Tags:

access:  public


Parameters:

index   $index   int

[ Top ]

method getDirty [line 2243]

void getDirty( )



Tags:

access:  public


[ Top ]

method getFont [line 2254]

ChartFont getFont( )

Determines the Font for outputted text when using the Drawing Canvas.



Tags:

access:  public


[ Top ]

method getFontHeight [line 2272]

int getFontHeight( )

Defines the Height of the Font in pixels.



Tags:

access:  public


[ Top ]

method getImageInterlace [line 2717]

void getImageInterlace( )



Tags:

access:  public


[ Top ]

method getImageReflection [line 2727]

void getImageReflection( )



Tags:

access:  public


[ Top ]

method getIZoomfactor [line 2529]

void getIZoomfactor( )



Tags:

access:  protected


[ Top ]

method getMetafiling [line 2280]

void getMetafiling( )



Tags:

access:  public


[ Top ]

method getMonochrome [line 2288]

void getMonochrome( )



Tags:

access:  public


[ Top ]

method getPen [line 2318]

ChartPen getPen( )

Indicates the kind of pen used to draw Canvas lines.



Tags:

access:  public


[ Top ]

method getRotationCenter [line 2363]

Point3D getRotationCenter( )

Sets the Pixel location (using X,Y,Z) of the centre of rotation for use with the Aspect Rotation and Elevation properties.




Tags:

access:  public


[ Top ]

method getSmoothingMode [line 2629]

boolean getSmoothingMode( )

The anti-alias mode for the Graphics Pen when Custom drawing.


For example:
AntiAlias - Specifies antialiased rendering.
Default - Specifies the default mode.
HighQuality - Specifies high quality, low speed rendering.
HighSpeed - Specifies high speed, low quality rendering.
Invalid - Specifies an invalid mode.




Tags:

access:  public


[ Top ]

method getSupports3DText [line 2659]

boolean getSupports3DText( )

Returns if Canvas supports 3D Text or not.



Tags:

access:  public


[ Top ]

method getSupportsFullRotation [line 2668]

boolean getSupportsFullRotation( )

Returns if Canvas can do rotation and elevation of more than 90 degree.



Tags:

access:  public


[ Top ]

method getTextAlign [line 2300]

void getTextAlign( value 0)

Gets / Sets the alignment used when displaying text using TextOut or TextOut3D.


Default value: Near




Tags:

access:  public


Parameters:

value   0   StringAlignment

[ Top ]

method getXCenter [line 2545]

int getXCenter( )

The X coordinate of the pixel location of the center of the 3D Canvas.
The origin of the pixel coordinate system is in the top left corner of the parent window.



Tags:

access:  public


[ Top ]

method getYCenter [line 2569]

int getYCenter( )

The Y coordinate of the pixel location of the center of the 3D Canvas.
The origin of the pixel coordinate system is in the top left corner of the parent window.



Tags:

access:  public


[ Top ]

method horizontalLine [line 1176]

void horizontalLine( left $left, right $right, y $y, [z $z = 0])

Draws a Horizontal at z depth position.



Tags:

access:  public


Overridden in child classes as:

Graphics3DFlex::horizontalLine()
Draws a Horizontal at z depth position.

Parameters:

left   $left   int
right   $right   int
y   $y   int
z   $z   int

[ Top ]

method initWindow [line 908]

void initWindow( $a, $r, $maxDepth)



Tags:

access:  public


Parameters:

   $a  
   $r  
   $maxDepth  

[ Top ]

method internalApplyDark [line 936]

void internalApplyDark( $c, $quantity)



Tags:

access:  public


Parameters:

   $c  
   $quantity  

[ Top ]

method line [line 952]

void line( integer $x1, integer $y1, integer $x2, integer $y2, [Color $color = null], [integer $width = -1])

Draws a straight line



Tags:

access:  public


Overridden in child classes as:

Graphics3DFlex::line()
Draws a straight line

Parameters:

integer   $x1   line start (X)
integer   $y1   line start (Y)
integer   $x2   line end (X)
integer   $y2   line end (Y)
Color   $color   line color
integer   $width   line width

[ Top ]

method lineTo [line 1046]

void lineTo( p $p, z $z)

Draws a line to Point with z depth offset.



Tags:

access:  public


Parameters:

p   $p   Point
z   $z   int

[ Top ]

method moveTo [line 1110]

void moveTo( p $p)

Sets the value of PenPos to Point p before calling LineTo.



Tags:

access:  public


Parameters:

p   $p   Point

[ Top ]

method moveTo3D [line 1144]

void moveTo3D( p $p)

Sets the value of PenPos to 3D Point p before calling LineTo.



Tags:

access:  public


Parameters:

p   $p   Point3D

[ Top ]

method moveToXY [line 1100]

void moveToXY( x $x, y $y)

Sets the value of PenPos to x and y co-ordinates before calling LineTo.



Tags:

access:  public


Parameters:

x   $x   int
y   $y   int

[ Top ]

method moveToXYZ [line 1122]

void moveToXYZ( x $x, y $y, z $z)

Sets the value of PenPos to x, y and z co-ordinates before calling LineTo.



Tags:

access:  public


Parameters:

x   $x   int
y   $y   int
z   $z   int

[ Top ]

method moveToZ [line 1134]

void moveToZ( p $p, z $z)

Sets the value of PenPos to Point p with z depth offset before calling LineTo.



Tags:

access:  public


Parameters:

p   $p   Point
z   $z   int

[ Top ]

method outlinedBox [line 1223]

void outlinedBox( integer $x1, integer $y1, integer $x2, integer $y2, Color $color0, Color $color1)

Draw a filled gray box with thick borders and darker corners.



Tags:

access:  public


Parameters:

integer   $x1   top left coordinate (x)
integer   $y1   top left coordinate (y)
integer   $x2   bottom right coordinate (x)
integer   $y2   bottom right coordinate (y)
Color   $color0   edge color
Color   $color1   corner color

[ Top ]

method paintBevel [line 1233]

void paintBevel( $bevel, $rect, $width, $one, $two)



Tags:

access:  public


Parameters:

   $bevel  
   $rect  
   $width  
   $one  
   $two  

[ Top ]

method pie [line 1277]

void pie( xCenter $xCenter, yCenter $yCenter, xRadius $xOffset, yRadius $yOffset, z0 $xRadius, z1 $yRadius, startAngle $z0, endAngle $z1, darkSides $startAngle, drawSides $endAngle, donutPercent $darkSides, $drawSides, $donutPercent, $bevelPercent, $edgeStyle, $last)

Draws a 3D Pie slice using start Angle and end Angle and donut percent.



Tags:

access:  public


Parameters:

xCenter   $xCenter   int
yCenter   $yCenter   int
xRadius   $xOffset   int
yRadius   $yOffset   int
z0   $xRadius   int
z1   $yRadius   int
startAngle   $z0   double
endAngle   $z1   double
darkSides   $startAngle   boolean
drawSides   $endAngle   boolean
donutPercent   $darkSides   int
   $drawSides  
   $donutPercent  
   $bevelPercent  
   $edgeStyle  
   $last  

[ Top ]

method plane [line 1318]

void plane( p1 $p1, p2 $p2, z0 $z0, z1 $z1)

Draws a polygon (Point p1, Point p2) at Z depth offset.



Tags:

access:  public


Parameters:

p1   $p1   Point
p2   $p2   Point
z0   $z0   int
z1   $z1   int

[ Top ]

method planeFour3D [line 1351]

void planeFour3D( z0 $z0, z1 $z1, p $p)

Draws a polygon of four points.



Tags:

access:  public


Parameters:

z0   $z0   int
z1   $z1   int
p   $p   Point[]

[ Top ]

method pointFromCircle [line 2681]

void pointFromCircle( $rectBounds, $degrees, $zPos, [ $clockWise = false])



Tags:

access:  public


Parameters:

   $rectBounds  
   $degrees  
   $zPos  
   $clockWise  

[ Top ]

method polygon [line 1359]

void polygon( $points)



Tags:

access:  public


Parameters:

   $points  

[ Top ]

method polygonFourDouble [line 1424]

void polygonFourDouble( )



Tags:

access:  public


[ Top ]

method polygonPoints [line 1418]

void polygonPoints( $p0, $p1, $p2)



Tags:

access:  public


Parameters:

   $p0  
   $p1  
   $p2  

[ Top ]

method polygonZ [line 1411]

void polygonZ( z $z, p $p)

Draws a polygon with z position offset.



Tags:

access:  public


Parameters:

z   $z   int
p   $p   Point[]

[ Top ]

method polyLine [line 1518]

void polyLine( z $z, p $p)

Draws a series of line segments to join point array p at z displacement.



Tags:

access:  public


Overridden in child classes as:

Graphics3DFlex::polyLine()

Parameters:

z   $z   int
p   $p   Point[]

[ Top ]

method printCentered [line 1592]

void printCentered( Image $img, integer $py, Color $color, string $text, string $fontFileName)

Print text centered horizontally on the image.



Tags:

access:  public


Parameters:

Image   $img   GD image
integer   $py   text coordinate (y)
Color   $color   text color
string   $text   text value
string   $fontFileName   font file name

[ Top ]

method printDiagonal [line 1607]

void printDiagonal( Image $img, integer $px, integer $py, Color $text, string $angle)

Print text in diagonal.



Tags:

access:  public


Parameters:

Image   $img   GD image
integer   $px   text coordinate (x)
integer   $py   text coordinate (y)
Color   $text   text color
string   $angle   text value

[ Top ]

method printText [line 1541]

void printText( Image $img, integer $px, integer $py, Color $text, [string $align = -1], string 5, bitfield 6)

Print text.



Tags:

access:  public


Parameters:

string   5   font file name
bitfield   6   text alignment
Image   $img   GD image
integer   $px   text coordinate (x)
integer   $py   text coordinate (y)
Color   $text   text color
string   $align   text value

[ Top ]

method projection [line 1631]

void projection( maxDepth $maxDepth, r $r)

Internal use. Calculates the projection co-ordinates for rectangle Bounds.




Tags:

access:  public


Parameters:

maxDepth   $maxDepth   int is the max shape depth
r   $r   Rectangle is the projected shape rectangle

[ Top ]

method pyramidTrunc [line 1300]

void pyramidTrunc( Rectangle $r, int $startZ, int $endZ, int $truncX, int $truncZ)

Draws a pyramid with a truncated apex of variable thickness.



Tags:

access:  public


Parameters:

Rectangle   $r  
int   $startZ  
int   $endZ  
int   $truncX  
int   $truncZ  

[ Top ]

method rectangle [line 1641]

void rectangle( $rect)



Tags:

access:  public


Overridden in child classes as:

Graphics3DFlex::rectangle()

Parameters:

   $rect  

[ Top ]

method rectangleWithZ [line 1693]

void rectangleWithZ( $r, $z)



Tags:

access:  public


Parameters:

   $r  
   $z  

[ Top ]

method rectangleY [line 1711]

void rectangleY( left $left, top $top, right $right, z0 $z0, z1 $z1)

Horizontal Rectangle from Left to Right, from Z0 to Z1 position, at Top Y.




Tags:

access:  public


Parameters:

left   $left   int
top   $top   int
right   $right   int
z0   $z0   int
z1   $z1   int

[ Top ]

method rectangleZ [line 1685]

void rectangleZ( left $left, top $top, bottom $bottom, z0 $z0, z1 $z1)

Horizontal Rectangle from Left to Right, from Z0 to Z1 position, at Top Y.




Tags:

access:  public


Parameters:

left   $left   int
top   $top   int
bottom   $bottom   int
z0   $z0   int
z1   $z1   int

[ Top ]

method rectFromPolygon [line 2375]

Rectangle rectFromPolygon( num $num, p $p)

Returns the bounding rectangle for a given array of XY points.



Tags:

access:  public


Parameters:

num   $num   int
p   $p   Point[]

[ Top ]

method rotateLabel [line 1885]

void rotateLabel( x $x, y $y, z $z, text $text, rotDegree $rotDegree)

Draws a rotated text String at the specified x,y and z coordinates with the RotDegree rotation angle.
RotDegree values must be between 0 and 360.
The string is drawn on the Chart Drawing Canvas.



Tags:

access:  public


Parameters:

x   $x   int
y   $y   int
z   $z   int
text   $text   String
rotDegree   $rotDegree   double

[ Top ]

method rotateRectangle [line 1904]

void rotateRectangle( $r, $angle)



Tags:

access:  public


Parameters:

   $r  
   $angle  

[ Top ]

method roundrectangle [line 1722]

void roundrectangle( $x1, $y1, $x2, $y2, $radius, [ $filled = 1])



Parameters:

   $x1  
   $y1  
   $x2  
   $y2  
   $radius  
   $filled  

[ Top ]

method setBrush [line 2204]

void setBrush( value $value)

Determines the kind of brush used to fill the Canvas draw rectangle background.
The Brush.Visible method must be set to true.



Tags:

access:  public


Parameters:

value   $value   ChartBrush

[ Top ]

method setColorPalette [line 2226]

void setColorPalette( palette $palette)

Specifies a color from global ColorPalette array variable.



Tags:

access:  public


Parameters:

palette   $palette   Color[]

[ Top ]

method setDirty [line 2247]

void setDirty( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setFont [line 2263]

void setFont( value $value)

Determines the Font for outputted text when using the Drawing Canvas.



Tags:

access:  public


Parameters:

value   $value   ChartFont

[ Top ]

method setGraphics [line 2276]

void setGraphics( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setImageInterlace [line 2722]

void setImageInterlace( $vlaue)



Tags:

access:  public


Parameters:

   $vlaue  

[ Top ]

method setImageReflection [line 2732]

void setImageReflection( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setIZoomfactor [line 2533]

void setIZoomfactor( $value)



Tags:

access:  protected


Parameters:

   $value  

[ Top ]

method setMetafiling [line 2284]

void setMetafiling( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setPen [line 2327]

void setPen( value $value)

Determines the kind of pen used to draw Canvas lines.



Tags:

access:  public


Parameters:

value   $value   ChartPen

[ Top ]

method setSmoothingMode [line 2646]

void setSmoothingMode( value $value)

Sets the anti-alias mode for the Graphics Pen when Custom drawing.


For example:
AntiAlias - Specifies antialiased rendering.
Default - Specifies the default mode.
HighQuality - Specifies high quality, low speed rendering.
HighSpeed - Specifies high speed, low quality rendering.
Invalid - Specifies an invalid mode.




Tags:

access:  public


Parameters:

value   $value   boolean

[ Top ]

method setTextAlign [line 2304]

void setTextAlign( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setXCenter [line 2557]

void setXCenter( value $value)

Specifies the X coordinate of the pixel location of the center of the 3D Canvas.
The origin of the pixel coordinate system is in the top left corner of the parent window.



Tags:

access:  public


Parameters:

value   $value   int

[ Top ]

method setYCenter [line 2581]

void setYCenter( value $value)

Specifies the Y coordinate of the pixel location of the center of the 3D Canvas.
The origin of the pixel coordinate system is in the top left corner of the parent window.



Tags:

access:  public


Parameters:

value   $value   int

[ Top ]

method sliceArray [line 1937]

void sliceArray( $source, $length)



Tags:

access:  public


Parameters:

   $source  
   $length  

[ Top ]

method textHeight [line 2029]

int textHeight( text $text)

Returns the vertical size in pixels of the text String.



Tags:

return:  Height in pixels of the text String.
access:  public


Parameters:

text   $text   String

[ Top ]

method textOut [line 1958]

void textOut( x $x, y $y, z $z, text $text, [ $align = -1])

Displays the 2D non-rotated label at the specified X Y screen

coordinates.
Text is outputted to the correct internal drawing Graphics2D.
The X and Y coordinates must be valid and fit inside the Chart rectangle. It uses the current drawing Font attributes.
Writes text at the named x and y co-ordinates.




Tags:

access:  public


Overridden in child classes as:

Graphics3DFlex::textOut()

Parameters:

x   $x   int
y   $y   int
z   $z   int
text   $text   String
   $align  

[ Top ]

method textWidth [line 2009]

int textWidth( f $text, [text $f = null])

Returns the horizontal text size in pixels of ChartFont f.



Tags:

return:  Width in pixels of ChartFont f.
access:  public


Parameters:

f   $text   ChartFont
text   $f   String

[ Top ]

method transparentEllipsePoints [line 759]

void transparentEllipsePoints( $p0, $p1)



Tags:

access:  protected


Parameters:

   $p0  
   $p1  

[ Top ]

method transparentEllipseZ [line 753]

void transparentEllipseZ( $x1, $y1, $x2, $y2, $z)



Tags:

access:  public


Parameters:

   $x1  
   $y1  
   $x2  
   $y2  
   $z  

[ Top ]

method triangle [line 1856]

void triangle( p0 $p0, p1 $p1, p2 $p2, [z $z = 0])

Draws a triangle (point p0, pointp1, pointp2) at Z position.



Tags:

access:  public


Parameters:

p0   $p0   Point
p1   $p1   Point
p2   $p2   Point
z   $z   int

[ Top ]

method unClip [line 431]

void unClip( )



[ Top ]

method verticalLine [line 1198]

void verticalLine( x $x, top $top, bottom $bottom, [z $z = 0])

Draws a Vertical Line from (X,Top) to (X,Bottom) at z depth position.



Tags:

access:  public


Overridden in child classes as:

Graphics3DFlex::verticalLine()
Draws a Vertical Line from (X,Top) to (X,Bottom) at z depth position.

Parameters:

x   $x   int
top   $top   int
bottom   $bottom   int
z   $z   int

[ Top ]

method zLine [line 1156]

void zLine( x $x, y $y, z0 $z0, z1 $z1)

Draws a Line from (X,Y,Z0) to (X,Y,Z1).



Tags:

access:  public


Overridden in child classes as:

Graphics3DFlex::zLine()
Draws a Line from (X,Y,Z0) to (X,Y,Z1).

Parameters:

x   $x   int
y   $y   int
z0   $z0   int
z1   $z1   int

[ Top ]

method _calc3DPos [line 347]

Point _calc3DPos( source $source)

Calculates and returns the XY position in pixels of the point p Z 3D coordinate.
Can be used when custom drawing using 3D XYZ coordinates are returned from the axes or not.



Tags:

access:  public


Parameters:

source   $source   Point3D

[ Top ]

method _line [line 999]

void _line( x0 $x0, y0 $y0, x1 $x1, y1 $y1, z $z)

Draws a Line between co-ordinates with z depth offset.



Tags:

access:  public


Parameters:

x0   $x0   int
y0   $y0   int
x1   $x1   int
y1   $y1   int
z   $z   int

[ Top ]

method _plane [line 1336]

void _plane( p1 $p1, p2 $p2, p3 $p3, p4 $p4, z $z)

Draws a polygon (Point p1, Point p2, Point p3, Point p4) at Z depth offset.



Tags:

access:  public


Parameters:

p1   $p1   Point
p2   $p2   Point
p3   $p3   Point
p4   $p4   Point
z   $z   int

[ Top ]

method _rectangle [line 1671]

void _rectangle( $x, $y, $width, $height)



Tags:

access:  public


Parameters:

   $x  
   $y  
   $width  
   $height  

[ Top ]

method _rotateLabel [line 1900]

void _rotateLabel( p $p, text $text, rotDegree $rotDegree)

Draws a rotated text String at the specified Point x,y coordinates with the RotDegree rotation angle.
RotDegree values must be between 0 and 360.
The string is drawn on the Chart Drawing Canvas.



Tags:

access:  public


Parameters:

p   $p   Point
text   $text   String
rotDegree   $rotDegree   double

[ Top ]

method _textHeight [line 1998]

int _textHeight( f $f, text $text)

Returns the vertical text size in pixels of ChartFont f.



Tags:

return:  Height in pixels of ChartFont f.
access:  public


Parameters:

f   $f   ChartFont
text   $text   String

[ Top ]

method __calc3DPos [line 361]

Point __calc3DPos( source $source, z $z)

Calculates and returns the XY position in pixels of the point p Z 3D coordinate.
Can be used when custom drawing using 3D XYZ coordinates are returned from the axes or not.



Tags:

access:  public


Parameters:

source   $source   Point
z   $z   int

[ Top ]

method __get [line 83]

void __get( $property)



Overrides TeeBase::__get() (parent method not documented)

Parameters:

   $property  

[ Top ]

method __line [line 1009]

void __line( p0 $p0, p1 $p1)

Draws a Line between point p0 and point p1.



Tags:

access:  public


Parameters:

p0   $p0   Point is origin xy
p1   $p1   Point is destination xy

[ Top ]

method __lineTo [line 1055]

void __lineTo( p $p)

Draws a line to Point with z = 0 depth offset.



Tags:

access:  public


Parameters:

p   $p   Point

[ Top ]

method __set [line 90]

void __set( $property, $value)



Overrides TeeBase::__set() (parent method not documented)

Parameters:

   $property  
   $value  

[ Top ]

method ___calc3DPos [line 374]

Point ___calc3DPos( source $source)

Calculates and returns the XY position in pixels of the point p with Z = 0 3D coordinate.
Can be used when custom drawing using 3D XYZ coordinates are returned from the axes or not.



Tags:

access:  public


Parameters:

source   $source   Point

[ Top ]

method ___line [line 1022]

void ___line( pen $pen, p0 $p0, p1 $p1)

Draws a Line between point p0 and point p1 using specific pen.



Tags:

access:  public


Overridden in child classes as:

Graphics3DFlex::___line()
Draws a Line between point p0 and point p1 using specific pen.

Parameters:

pen   $pen   ChartPen id the pen used
p0   $p0   Point is origin xy
p1   $p1   Point is destination xy

[ Top ]

method ___lineTo [line 1069]

void ___lineTo( x $x, y $y, [z $z = 0])

Draws line from present position to end co-ordinates with z depth offset.



Tags:

access:  public


Parameters:

x   $x   int
y   $y   int
z   $z   int

[ Top ]

method ____lineTo [line 1078]

void ____lineTo( p $p)

Draws a Line to 3D Point.



Tags:

access:  public


Parameters:

p   $p   Point3D

[ Top ]

method _____lineTo [line 1088]

void _____lineTo( x $x, y $y)

Draws line from present position to end co-ordinates with z depth offset.



Tags:

access:  public


Parameters:

x   $x   int
y   $y   int

[ Top ]


Documentation generated on Wed, 26 Aug 2009 10:49:59 +0200 by phpDocumentor 1.4.1