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

Class: CanvasMing

Source Location: /drawing/CanvasMing.php

Class Overview

TeeBase
   |
   --CanvasMing

GraphicsGD class


Author(s):

Version:

  • 1.0

Copyright:

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

Variables

Methods


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



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



Tags:

access:  public

Type:   mixed


[ Top ]

$metafiling =

[line 68]



Tags:

access:  protected

Type:   mixed


[ Top ]

$monochrome =

[line 80]



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 ]

$shape =

[line 76]



Tags:

access:  public

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



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


static method applyDark [line 3485]

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

static void doReflection( $im)



Tags:

access:  public


Parameters:

   $im  

[ Top ]

static method getDefaultPattern [line 3332]

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

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

static int getScreenWidth( )

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



Tags:

access:  public


[ Top ]

static method pointAtDistance [line 3189]

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



Tags:

access:  public


Parameters:

   $From  
   $To  
   $distance  

[ Top ]

static method pointInEllipse [line 3232]

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

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

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

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

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

static void rectCenter( $r)



Tags:

access:  public


Parameters:

   $r  

[ Top ]

static method _pointInEllipse [line 3221]

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 CanvasMing [line 107]

CanvasMing CanvasMing( 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 2582]

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

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

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



Tags:

access:  public


Parameters:

   $x  
   $y  
   $z  

[ Top ]

method calc3DPos [line 348]

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

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

void calcPerspective( $r)



Tags:

access:  public


Parameters:

   $r  

[ Top ]

method calcTrigValues [line 469]

void calcTrigValues( )



Tags:

access:  public


[ Top ]

method changed [line 501]

void changed( $o)



Tags:

access:  public


Parameters:

   $o  

[ Top ]

method clipCube [line 989]

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

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

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

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

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

void createImage( )

Creates and initialize the image



Tags:

access:  protected


[ Top ]

method cube [line 901]

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

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



Tags:

access:  public


Parameters:

   $rect  
   $z0  
   $z1  
   $darkSides  

[ Top ]

method cylinder [line 601]

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

void doRev( )



Tags:

access:  public


[ Top ]

method draw [line 157]

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

void drawBeziers( p $p)

Draws Bezier splines for the Point array p



Tags:

access:  public


Parameters:

p   $p   Point[]

[ Top ]

method drawBeziersRect [line 283]

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

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



Parameters:

   $shapeBorders  
   $backcolor  
   $forecolor  

[ Top ]

method ellipse [line 1178]

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


Parameters:

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

[ Top ]

method ellipsePoints [line 1286]

void ellipsePoints( $p0, $p1)



Tags:

access:  public


Parameters:

   $p0  
   $p1  

[ Top ]

method ellipseRect [line 1142]

void ellipseRect( r $r)

Draws an Ellipse bounding Rectangle r.



Tags:

access:  public


Parameters:

r   $r   Rectangle

[ Top ]

method ellipseRectZ [line 1152]

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

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

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

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

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

void getColorPaletteLength( )



Tags:

access:  public


[ Top ]

method getDefaultColor [line 2954]

Color getDefaultColor( index $index)

Returns a color from global ColorPalette array variable.



Tags:

access:  public


Parameters:

index   $index   int

[ Top ]

method getDirty [line 2981]

void getDirty( )



Tags:

access:  public


[ Top ]

method getFont [line 2992]

ChartFont getFont( )

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



Tags:

access:  public


[ Top ]

method getFontHeight [line 3010]

int getFontHeight( )

Defines the Height of the Font in pixels.



Tags:

access:  public


[ Top ]

method getImageInterlace [line 3455]

void getImageInterlace( )



Tags:

access:  public


[ Top ]

method getImageReflection [line 3465]

void getImageReflection( )



Tags:

access:  public


[ Top ]

method getImg [line 140]

void getImg( )



[ Top ]

method getIZoomfactor [line 3269]

void getIZoomfactor( )



Tags:

access:  protected


[ Top ]

method getMetafiling [line 3018]

void getMetafiling( )



Tags:

access:  public


[ Top ]

method getMonochrome [line 3026]

void getMonochrome( )



Tags:

access:  public


[ Top ]

method getPen [line 3056]

ChartPen getPen( )

Indicates the kind of pen used to draw Canvas lines.



Tags:

access:  public


[ Top ]

method getRotationCenter [line 3103]

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

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

boolean getSupports3DText( )

Returns if Canvas supports 3D Text or not.



Tags:

access:  public


[ Top ]

method getSupportsFullRotation [line 3408]

boolean getSupportsFullRotation( )

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



Tags:

access:  public


[ Top ]

method getTextAlign [line 3038]

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

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

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

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

Draws a Horizontal at z depth position.



Tags:

access:  public


Parameters:

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

[ Top ]

method imagegradientellipse [line 761]

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



Parameters:

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

[ Top ]

method imagegradientellipsealpha [line 792]

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



Parameters:

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

[ Top ]

method initWindow [line 1313]

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



Tags:

access:  public


Parameters:

   $a  
   $r  
   $maxDepth  

[ Top ]

method internalApplyDark [line 1341]

void internalApplyDark( $c, $quantity)



Tags:

access:  public


Parameters:

   $c  
   $quantity  

[ Top ]

method line [line 1357]

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

Draws a straight line



Tags:

access:  public


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

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

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

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

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

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

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

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

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



Tags:

access:  public


Parameters:

   $bevel  
   $rect  
   $width  
   $one  
   $two  

[ Top ]

method pie [line 1742]

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

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

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

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



Tags:

access:  public


Parameters:

   $rectBounds  
   $degrees  
   $zPos  
   $clockWise  

[ Top ]

method polygon [line 1929]

void polygon( $points)



Tags:

access:  public


Parameters:

   $points  

[ Top ]

method polygonFourDouble [line 2021]

void polygonFourDouble( )



Tags:

access:  public


[ Top ]

method polygonPoints [line 2015]

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



Tags:

access:  public


Parameters:

   $p0  
   $p1  
   $p2  

[ Top ]

method polygonZ [line 2008]

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

void polyLine( z $z, p $p)

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



Tags:

access:  public


Parameters:

z   $z   int
p   $p   Point[]

[ Top ]

method printCentered [line 2214]

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

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

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

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

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

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

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

void rectangle( $rect, [ $animations = null])



Tags:

access:  public


Parameters:

   $rect  
   $animations  

[ Top ]

method rectangleWithZ [line 2410]

void rectangleWithZ( $r, $z)



Tags:

access:  public


Parameters:

   $r  
   $z  

[ Top ]

method rectangleY [line 2428]

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

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

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

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

void rotateRectangle( $r, $angle)



Tags:

access:  public


Parameters:

   $r  
   $angle  

[ Top ]

method roundrectangle [line 2439]

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



Parameters:

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

[ Top ]

method setBackColor [line 1856]

void setBackColor( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setBrush [line 2941]

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

void setColorPalette( palette $palette)

Specifies a color from global ColorPalette array variable.



Tags:

access:  public


Parameters:

palette   $palette   Color[]

[ Top ]

method setDirty [line 2985]

void setDirty( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setFont [line 3001]

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

void setGraphics( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setImageInterlace [line 3460]

void setImageInterlace( $vlaue)



Tags:

access:  public


Parameters:

   $vlaue  

[ Top ]

method setImageReflection [line 3470]

void setImageReflection( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setIZoomfactor [line 3273]

void setIZoomfactor( $value)



Tags:

access:  protected


Parameters:

   $value  

[ Top ]

method setMetafiling [line 3022]

void setMetafiling( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setPen [line 3065]

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

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

void setTextAlign( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setXCenter [line 3297]

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

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

void sliceArray( $source, $length)



Tags:

access:  public


Parameters:

   $source  
   $length  

[ Top ]

method textHeight [line 2766]

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

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


Parameters:

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

[ Top ]

method textWidth [line 2746]

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

void transparentEllipsePoints( $p0, $p1)



Tags:

access:  protected


Parameters:

   $p0  
   $p1  

[ Top ]

method transparentEllipseZ [line 1157]

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



Tags:

access:  public


Parameters:

   $x1  
   $y1  
   $x2  
   $y2  
   $z  

[ Top ]

method triangle [line 2575]

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

void unClip( )



[ Top ]

method verticalLine [line 1640]

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


Parameters:

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

[ Top ]

method zLine [line 1582]

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

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



Tags:

access:  public


Parameters:

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

[ Top ]

method _calc3DPos [line 419]

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

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

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

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



Tags:

access:  public


Parameters:

   $x  
   $y  
   $width  
   $height  

[ Top ]

method _rotateLabel [line 2637]

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

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

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

void __get( $property)



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

Parameters:

   $property  

[ Top ]

method __line [line 1428]

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

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

void __set( $property, $value)



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

Parameters:

   $property  
   $value  

[ Top ]

method ___calc3DPos [line 446]

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

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

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



Tags:

access:  public


Parameters:

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

[ Top ]

method ___lineTo [line 1495]

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

void ____lineTo( p $p)

Draws a Line to 3D Point.



Tags:

access:  public


Parameters:

p   $p   Point3D

[ Top ]

method _____lineTo [line 1514]

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:04:02 +0200 by phpDocumentor 1.4.1