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-2013 by Steema Software SL. All Rights Reserved. <info@steema.com>

Variables

Methods


Child classes:

Graphics3DFlex
CanvasFlex class
Graphics3DHTML5
CanvasHTML5 class
CanvasSVG
CanvasSVG 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-2013 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 ]

static $DARKERCOLORQUANTITY =  128

[line 57]



Tags:

access:  protected

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



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



Tags:

access:  public

Type:   mixed


[ Top ]

$iPointDoubles =

[line 80]



Tags:

access:  public

Type:   mixed


[ Top ]

$iPoints =

[line 34]



Tags:

access:  protected

Type:   mixed


[ Top ]

$metafiling =

[line 68]



Tags:

access:  protected

Type:   mixed


[ Top ]

$monochrome =

[line 79]



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



Tags:

access:  protected

Type:   mixed


[ Top ]

$textSmooth = false

[line 62]



Tags:

access:  protected

Type:   mixed


[ Top ]

$width = 0

[line 77]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


static method applyDark [line 3373]

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

static void doReflection( $im)



Tags:

access:  public


Parameters:

   $im  

[ Top ]

static method getDefaultPattern [line 3230]

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

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

static int getScreenWidth( )

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



Tags:

access:  public


[ Top ]

static method pointAtDistance [line 3087]

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



Tags:

access:  public


Parameters:

   $From  
   $To  
   $distance  

[ Top ]

static method pointInEllipse [line 3130]

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

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

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

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

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

static void rectCenter( $r)



Tags:

access:  public


Parameters:

   $r  

[ Top ]

static method _pointInEllipse [line 3119]

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 ]

destructor __destruct [line 135]

void __destruct( )



Overridden in child classes as:

Graphics3DFlex::__destruct()
Graphics3DHTML5::__destruct()
CanvasSVG::__destruct()

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

[ Top ]

method arc [line 2483]

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



Tags:

access:  public


Overridden in child classes as:

Graphics3DFlex::arc()
Graphics3DHTML5::arc()
CanvasSVG::arc()

Parameters:

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

[ Top ]

method arrow [line 268]

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

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



Tags:

access:  public


Parameters:

   $x  
   $y  
   $z  

[ Top ]

method calc3DPos [line 395]

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

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

void calcPerspective( $r)



Tags:

access:  public


Parameters:

   $r  

[ Top ]

method calcTrigValues [line 516]

void calcTrigValues( )



Tags:

access:  public


[ Top ]

method changed [line 548]

void changed( $o)



Tags:

access:  public


Parameters:

   $o  

[ Top ]

method clipCube [line 1018]

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

void clipPolygon( polygonPoints $polygonPoints)

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




Tags:

access:  public


Overridden in child classes as:

Graphics3DFlex::clipPolygon()

Parameters:

polygonPoints   $polygonPoints   - Array of TeePoints

[ Top ]

method clipRectangle [line 578]

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


Overridden in child classes as:

Graphics3DFlex::clipRectangle()
Graphics3DHTML5::clipRectangle()

Parameters:

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

[ Top ]

method cone [line 628]

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

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

void createImage( )

Creates and initialize the image



Tags:

access:  protected


[ Top ]

method cube [line 931]

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


Overridden in child classes as:

CanvasSVG::cube()
Draws a Cube with Dark Sides.

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

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



Tags:

access:  public


Parameters:

   $rect  
   $z0  
   $z1  
   $darkSides  

[ Top ]

method culling [line 1046]

void culling( )



Tags:

access:  protected


[ Top ]

method cylinder [line 641]

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

void doRev( )



Tags:

access:  public


[ Top ]

method draw [line 211]

void draw( r $r, image $image, mode $mode, [transparent $shapeBorders = null], $transparent)

Paints the image in rectangle r.



Tags:

access:  public


Overridden in child classes as:

CanvasSVG::draw()

Parameters:

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

[ Top ]

method drawBeziers [line 341]

void drawBeziers( p $p)

Draws Bezier splines for the Point array p



Tags:

access:  public


Parameters:

p   $p   Point[]

[ Top ]

method drawBeziersRect [line 332]

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

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



Overridden in child classes as:

CanvasSVG::drawRoundedBorders()

Parameters:

   $shapeBorders  
   $backcolor  
   $forecolor  

[ Top ]

method ellipse [line 1134]

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()
Graphics3DHTML5::ellipse()
CanvasSVG::ellipse()

Parameters:

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

[ Top ]

method ellipsePoints [line 1240]

void ellipsePoints( $p0, $p1)



Tags:

access:  public


Parameters:

   $p0  
   $p1  

[ Top ]

method ellipseRect [line 1098]

void ellipseRect( r $r)

Draws an Ellipse bounding Rectangle r.



Tags:

access:  public


Parameters:

r   $r   Rectangle

[ Top ]

method ellipseRectZ [line 1108]

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

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

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

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

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

void getColorPaletteLength( )



Tags:

access:  public


[ Top ]

method getDefaultColor [line 2853]

Color getDefaultColor( index $index)

Returns a color from global ColorPalette array variable.



Tags:

access:  public


Parameters:

index   $index   int

[ Top ]

method getDirty [line 2880]

void getDirty( )



Tags:

access:  public


[ Top ]

method getFont [line 2891]

ChartFont getFont( )

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



Tags:

access:  public


[ Top ]

method getFontDPI [line 2616]

void getFontDPI( )



Tags:

access:  protected


[ Top ]

method getFontHeight [line 2909]

int getFontHeight( )

Defines the Height of the Font in pixels.



Tags:

access:  public


[ Top ]

method getImageInterlace [line 3347]

void getImageInterlace( )



Tags:

access:  public


[ Top ]

method getImageReflection [line 3355]

void getImageReflection( )



Tags:

access:  public


[ Top ]

method getIZoomfactor [line 3167]

void getIZoomfactor( )



Tags:

access:  protected


[ Top ]

method getMetafiling [line 2917]

void getMetafiling( )



Tags:

access:  public


[ Top ]

method getMonochrome [line 2925]

void getMonochrome( )



Tags:

access:  public


[ Top ]

method getPen [line 2955]

ChartPen getPen( )

Indicates the kind of pen used to draw Canvas lines.



Tags:

access:  public


[ Top ]

method getRotationCenter [line 3001]

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

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

boolean getSupports3DText( )

Returns if Canvas supports 3D Text or not.



Tags:

access:  public


[ Top ]

method getSupportsFullRotation [line 3306]

boolean getSupportsFullRotation( )

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



Tags:

access:  public


[ Top ]

method getTextAlign [line 2937]

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

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

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

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.
Graphics3DHTML5::horizontalLine()
CanvasSVG::horizontalLine()

Parameters:

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

[ Top ]

method imagegradientellipse [line 799]

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



Overridden in child classes as:

Graphics3DHTML5::imagegradientellipse()
CanvasSVG::imagegradientellipse()

Parameters:

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

[ Top ]

method imagegradientellipsealpha [line 829]

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



Overridden in child classes as:

CanvasSVG::imagegradientellipsealpha()

Parameters:

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

[ Top ]

method initWindow [line 1267]

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



Tags:

access:  public


Parameters:

   $a  
   $r  
   $maxDepth  

[ Top ]

method internalApplyDark [line 1295]

void internalApplyDark( $c, $quantity)



Tags:

access:  public


Parameters:

   $c  
   $quantity  

[ Top ]

method line [line 1311]

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
Graphics3DHTML5::line()
CanvasSVG::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 1402]

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

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

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

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

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

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 OrientRectangle [line 1623]

void OrientRectangle( $R)



Parameters:

   $R  

[ Top ]

method outlinedBox [line 1592]

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


Overridden in child classes as:

CanvasSVG::outlinedBox()

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

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



Tags:

access:  public


Parameters:

   $bevel  
   $rect  
   $width  
   $one  
   $two  

[ Top ]

method pie [line 1688]

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


Overridden in child classes as:

CanvasSVG::pie()

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

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

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



Tags:

access:  public


Overridden in child classes as:

CanvasSVG::plane()

Parameters:

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

[ Top ]

method planeFour3D [line 1866]

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

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



Tags:

access:  public


Parameters:

   $rectBounds  
   $degrees  
   $zPos  
   $clockWise  

[ Top ]

method PointToStr [line 3439]

void PointToStr( $X, $Y)



Tags:

access:  protected


Overridden in child classes as:

Graphics3DFlex::PointToStr()
CanvasSVG::PointToStr()

Parameters:

   $X  
   $Y  

[ Top ]

method polygon [line 1937]

void polygon( $points)



Tags:

access:  public


Overridden in child classes as:

Graphics3DFlex::polygon()
CanvasSVG::polygon()

Parameters:

   $points  

[ Top ]

method polygonFourDouble [line 2018]

void polygonFourDouble( )



Tags:

access:  public


Overridden in child classes as:

CanvasSVG::polygonFourDouble()

[ Top ]

method polygonPoints [line 2012]

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



Tags:

access:  public


Parameters:

   $p0  
   $p1  
   $p2  

[ Top ]

method polygonZ [line 2005]

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

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()
Graphics3DHTML5::polyLine()

Parameters:

z   $z   int
p   $p   Point[]

[ Top ]

method printCentered [line 2188]

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

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

Print text in diagonal.



Tags:

access:  public


Overridden in child classes as:

CanvasSVG::printDiagonal()

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

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

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

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

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

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

void rectangle( $rect)



Tags:

access:  public


Overridden in child classes as:

Graphics3DFlex::rectangle()

Parameters:

   $rect  

[ Top ]

method rectangleWithZ [line 2319]

void rectangleWithZ( $r, $z)



Tags:

access:  public


Overridden in child classes as:

CanvasSVG::rectangleWithZ()

Parameters:

   $r  
   $z  

[ Top ]

method rectangleY [line 2337]

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


Overridden in child classes as:

CanvasSVG::rectangleY()

Parameters:

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

[ Top ]

method rectangleZ [line 2311]

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


Overridden in child classes as:

CanvasSVG::rectangleZ()

Parameters:

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

[ Top ]

method rectFromPolygon [line 3013]

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

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


Overridden in child classes as:

Graphics3DFlex::rotateLabel()
Graphics3DHTML5::rotateLabel()

Parameters:

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

[ Top ]

method rotateRectangle [line 2529]

void rotateRectangle( $r, $angle)



Tags:

access:  public


Parameters:

   $r  
   $angle  

[ Top ]

method roundrectangle [line 2348]

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



Overridden in child classes as:

CanvasSVG::roundrectangle()

Parameters:

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

[ Top ]

method setBackColor [line 1801]

void setBackColor( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setBrush [line 2840]

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

void setColorPalette( palette $palette)

Specifies a color from global ColorPalette array variable.



Tags:

access:  public


Parameters:

palette   $palette   Color[]

[ Top ]

method setDirty [line 2884]

void setDirty( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setFont [line 2900]

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

void setGraphics( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setImageInterlace [line 3351]

void setImageInterlace( $vlaue)



Tags:

access:  public


Parameters:

   $vlaue  

[ Top ]

method setImageReflection [line 3359]

void setImageReflection( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setIZoomfactor [line 3171]

void setIZoomfactor( $value)



Tags:

access:  protected


Parameters:

   $value  

[ Top ]

method setMetafiling [line 2921]

void setMetafiling( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setPen [line 2964]

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

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

void setTextAlign( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setXCenter [line 3195]

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

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

void sliceArray( $source, $length)



Tags:

access:  public


Parameters:

   $source  
   $length  

[ Top ]

method textHeight [line 2666]

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

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()
Graphics3DHTML5::textOut()

Parameters:

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

[ Top ]

method textWidth [line 2646]

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

void transparentEllipsePoints( $p0, $p1)



Tags:

access:  protected


Parameters:

   $p0  
   $p1  

[ Top ]

method transparentEllipseZ [line 1113]

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



Tags:

access:  public


Parameters:

   $x1  
   $y1  
   $x2  
   $y2  
   $z  

[ Top ]

method triangle [line 2476]

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

void unClip( )



Overridden in child classes as:

CanvasSVG::unClip()

[ Top ]

method verticalLine [line 1567]

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.
Graphics3DHTML5::verticalLine()
CanvasSVG::verticalLine()

Parameters:

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

[ Top ]

method zLine [line 1512]

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).
CanvasSVG::zLine()

Parameters:

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

[ Top ]

method _calc3DPos [line 466]

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

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

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


Overridden in child classes as:

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

Parameters:

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

[ Top ]

method _rectangle [line 2297]

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



Tags:

access:  public


Parameters:

   $x  
   $y  
   $width  
   $height  

[ Top ]

method _rotateLabel [line 2525]

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

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

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)



Overridden in child classes as:

Graphics3DHTML5::__get()

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

Parameters:

   $property  

[ Top ]

method __line [line 1365]

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

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)



Overridden in child classes as:

Graphics3DHTML5::__set()

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

Parameters:

   $property  
   $value  

[ Top ]

method ___calc3DPos [line 493]

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

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.
CanvasSVG::___line()

Parameters:

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

[ Top ]

method ___lineTo [line 1425]

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

void ____lineTo( p $p)

Draws a Line to 3D Point.



Tags:

access:  public


Parameters:

p   $p   Point3D

[ Top ]

method _____lineTo [line 1444]

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 Mon, 19 Aug 2013 13:42:29 +0200 by phpDocumentor 1.4.3