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-2010 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-2010 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 3234]

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 3238]

static void doReflection( $im)



Tags:

access:  public


Parameters:

   $im  

[ Top ]

static method getDefaultPattern [line 3083]

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 3289]

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 3298]

static int getScreenWidth( )

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



Tags:

access:  public


[ Top ]

static method pointAtDistance [line 2940]

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



Tags:

access:  public


Parameters:

   $From  
   $To  
   $distance  

[ Top ]

static method pointInEllipse [line 2983]

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 2931]

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 3001]

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 2899]

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 2914]

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 3164]

static void rectCenter( $r)



Tags:

access:  public


Parameters:

   $r  

[ Top ]

static method _pointInEllipse [line 2972]

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 arc [line 2347]

void arc( $x1, $y1, $x2, $y2, $startAngle, $sweepAngle, [ $filled = 0])



Tags:

access:  public


Parameters:

   $x1  
   $y1  
   $x2  
   $y2  
   $startAngle  
   $sweepAngle  
   $filled  

[ 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 438]

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



Tags:

access:  public


Parameters:

   $x  
   $y  
   $z  

[ Top ]

method calc3DPos [line 336]

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 370]

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 442]

void calcPerspective( $r)



Tags:

access:  public


Parameters:

   $r  

[ Top ]

method calcTrigValues [line 457]

void calcTrigValues( )



Tags:

access:  public


[ Top ]

method changed [line 489]

void changed( $o)



Tags:

access:  public


Parameters:

   $o  

[ Top ]

method clipCube [line 971]

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 552]

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 520]

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 cone [line 574]

void cone( vertical $vertical, r $r, z0 $z0, z1 $z1, darkSides $darkSides, [conePercent $conePercent = 0])

Paints a cone with Cone Percent.


Use
ONLY with OPENGL</b>.
This parameter varies the apex size as a percentage of the base.




Tags:

access:  public


Parameters:

vertical   $vertical   boolean
r   $r   Rectangle
z0   $z0   int
z1   $z1   int
darkSides   $darkSides   boolean
conePercent   $conePercent   int varies the apex size as a percentage of the base.

[ Top ]

method convexHull [line 2529]

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 1010]

void createImage( )

Creates and initialize the image



Tags:

access:  protected


[ Top ]

method cube [line 884]

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 869]

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



Tags:

access:  public


Parameters:

   $rect  
   $z0  
   $z1  
   $darkSides  

[ Top ]

method cylinder [line 587]

void cylinder( vertical $vertical, r $r, z0 $z0, z1 $z1, darkSides $darkSides)

Draws cylinder toggle Boolean for vertical or horizontal cylinder.



Tags:

access:  public


Parameters:

vertical   $vertical   boolean
r   $r   Rectangle
z0   $z0   int
z1   $z1   int
darkSides   $darkSides   boolean

[ Top ]

method doRev [line 1037]

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 drawBeziers [line 280]

void drawBeziers( p $p)

Draws Bezier splines for the Point array p



Tags:

access:  public


Parameters:

p   $p   Point[]

[ Top ]

method drawBeziersRect [line 271]

void drawBeziersRect( z $z, p $p)

Draws Bezier splines for the Point array p at displacement z



Tags:

access:  public


Parameters:

z   $z   int
p   $p   Point[]

[ Top ]

method drawRoundedBorders [line 2236]

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



Parameters:

   $shapeBorders  
   $backcolor  
   $forecolor  

[ Top ]

method ellipse [line 1088]

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 1194]

void ellipsePoints( $p0, $p1)



Tags:

access:  public


Parameters:

   $p0  
   $p1  

[ Top ]

method ellipseRect [line 1052]

void ellipseRect( r $r)

Draws an Ellipse bounding Rectangle r.



Tags:

access:  public


Parameters:

r   $r   Rectangle

[ Top ]

method ellipseRectZ [line 1062]

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 1205]

void ellipseRectZAngle( r $r, z $z, [angle $angle = 0])

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 1217]

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 getBackColor [line 1737]

Color getBackColor( )

Sets / returns the color used to fill spaces when displaying text or filling with brushes of different style other than bsSolid.
Brush.Visible must be set to true.



Tags:

access:  public


[ Top ]

method getBrush [line 2679]

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 2729]

void getColorPaletteLength( )



Tags:

access:  public


[ Top ]

method getDefaultColor [line 2706]

Color getDefaultColor( index $index)

Returns a color from global ColorPalette array variable.



Tags:

access:  public


Parameters:

index   $index   int

[ Top ]

method getDirty [line 2733]

void getDirty( )



Tags:

access:  public


[ Top ]

method getFont [line 2744]

ChartFont getFont( )

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



Tags:

access:  public


[ Top ]

method getFontHeight [line 2762]

int getFontHeight( )

Defines the Height of the Font in pixels.



Tags:

access:  public


[ Top ]

method getImageInterlace [line 3204]

void getImageInterlace( )



Tags:

access:  public


[ Top ]

method getImageReflection [line 3214]

void getImageReflection( )



Tags:

access:  public


[ Top ]

method getIZoomfactor [line 3020]

void getIZoomfactor( )



Tags:

access:  protected


[ Top ]

method getMetafiling [line 2770]

void getMetafiling( )



Tags:

access:  public


[ Top ]

method getMonochrome [line 2778]

void getMonochrome( )



Tags:

access:  public


[ Top ]

method getPen [line 2808]

ChartPen getPen( )

Indicates the kind of pen used to draw Canvas lines.



Tags:

access:  public


[ Top ]

method getRotationCenter [line 2854]

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 3120]

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 3150]

boolean getSupports3DText( )

Returns if Canvas supports 3D Text or not.



Tags:

access:  public


[ Top ]

method getSupportsFullRotation [line 3159]

boolean getSupportsFullRotation( )

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



Tags:

access:  public


[ Top ]

method getTextAlign [line 2790]

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 3036]

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 3060]

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 1491]

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 imagegradientellipse [line 746]

void imagegradientellipse( $image, $cx, $cy, $w, $h, $ic, $oc)



Parameters:

   $image  
   $cx  
   $cy  
   $w  
   $h  
   $ic  
   $oc  

[ Top ]

method imagegradientellipsealpha [line 776]

void imagegradientellipsealpha( $image, $cx, $cy, $w, $h, $ic, $oc)



Parameters:

   $image  
   $cx  
   $cy  
   $w  
   $h  
   $ic  
   $oc  

[ Top ]

method initWindow [line 1221]

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



Tags:

access:  public


Parameters:

   $a  
   $r  
   $maxDepth  

[ Top ]

method internalApplyDark [line 1249]

void internalApplyDark( $c, $quantity)



Tags:

access:  public


Parameters:

   $c  
   $quantity  

[ Top ]

method line [line 1265]

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 1360]

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 1424]

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 1458]

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 1414]

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 1436]

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 1448]

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 1553]

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 1584]

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



Tags:

access:  public


Parameters:

   $bevel  
   $rect  
   $width  
   $one  
   $two  

[ Top ]

method pie [line 1628]

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 1773]

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 1806]

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 3172]

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



Tags:

access:  public


Parameters:

   $rectBounds  
   $degrees  
   $zPos  
   $clockWise  

[ Top ]

method polygon [line 1814]

void polygon( $points)



Tags:

access:  public


Parameters:

   $points  

[ Top ]

method polygonFourDouble [line 1880]

void polygonFourDouble( )



Tags:

access:  public


[ Top ]

method polygonPoints [line 1874]

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



Tags:

access:  public


Parameters:

   $p0  
   $p1  
   $p2  

[ Top ]

method polygonZ [line 1867]

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 1978]

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 2052]

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 2067]

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 2001]

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 2091]

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 pyramid [line 1668]

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

Draws a vertical or horizontal Pyramid with optional dark shaded sides.



Tags:

access:  public


Parameters:

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

[ Top ]

method pyramidRect [line 1651]

void pyramidRect( vertical $vertical, r $r, z0 $z0, z1 $z1, darkSides $darkSides)

Draws a vertical or horizontal Pyramid with optional dark shaded sides.



Tags:

access:  public


Parameters:

vertical   $vertical   boolean
r   $r   Rectangle
z0   $z0   int
z1   $z1   int
darkSides   $darkSides   boolean

[ Top ]

method pyramidTrunc [line 1755]

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 2101]

void rectangle( $rect)



Tags:

access:  public


Overridden in child classes as:

Graphics3DFlex::rectangle()

Parameters:

   $rect  

[ Top ]

method rectangleWithZ [line 2177]

void rectangleWithZ( $r, $z)



Tags:

access:  public


Parameters:

   $r  
   $z  

[ Top ]

method rectangleY [line 2195]

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 2169]

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 2866]

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 2374]

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 2393]

void rotateRectangle( $r, $angle)



Tags:

access:  public


Parameters:

   $r  
   $angle  

[ Top ]

method roundrectangle [line 2206]

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



Parameters:

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

[ Top ]

method setBackColor [line 1741]

void setBackColor( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setBrush [line 2693]

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 2715]

void setColorPalette( palette $palette)

Specifies a color from global ColorPalette array variable.



Tags:

access:  public


Parameters:

palette   $palette   Color[]

[ Top ]

method setDirty [line 2737]

void setDirty( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setFont [line 2753]

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 2766]

void setGraphics( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setImageInterlace [line 3209]

void setImageInterlace( $vlaue)



Tags:

access:  public


Parameters:

   $vlaue  

[ Top ]

method setImageReflection [line 3219]

void setImageReflection( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setIZoomfactor [line 3024]

void setIZoomfactor( $value)



Tags:

access:  protected


Parameters:

   $value  

[ Top ]

method setMetafiling [line 2774]

void setMetafiling( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setPen [line 2817]

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 3137]

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 2794]

void setTextAlign( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setXCenter [line 3048]

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 3072]

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 2426]

void sliceArray( $source, $length)



Tags:

access:  public


Parameters:

   $source  
   $length  

[ Top ]

method textHeight [line 2518]

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 2447]

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 2498]

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 1073]

void transparentEllipsePoints( $p0, $p1)



Tags:

access:  protected


Parameters:

   $p0  
   $p1  

[ Top ]

method transparentEllipseZ [line 1067]

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



Tags:

access:  public


Parameters:

   $x1  
   $y1  
   $x2  
   $y2  
   $z  

[ Top ]

method triangle [line 2340]

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 491]

void unClip( )



[ Top ]

method verticalLine [line 1527]

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 1470]

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 407]

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 1313]

void _line( x0 $x0, y0 $y0, x1 $x1, y1 $y1, [z $z = 0])

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 1791]

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 2155]

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



Tags:

access:  public


Parameters:

   $x  
   $y  
   $width  
   $height  

[ Top ]

method _rotateLabel [line 2389]

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 2487]

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 421]

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 1323]

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 1369]

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 434]

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 1336]

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 1383]

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 1392]

void ____lineTo( p $p)

Draws a Line to 3D Point.



Tags:

access:  public


Parameters:

p   $p   Point3D

[ Top ]

method _____lineTo [line 1402]

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, 16 Jun 2010 12:05:59 +0200 by phpDocumentor 1.4.1