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

Class: CanvasMing

Source Location: /drawing/CanvasMing.php

Class Overview

TeeBase
   |
   --CanvasMing

CanvasMing class


Author(s):

  • Steema Software SL.

Version:

  • 1.0

Copyright:

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

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 25]
CanvasMing class

Description: Class with all Chart with Ming Canvas drawing methods.




Tags:

author:  Steema Software SL.
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 65]



Tags:

access:  public

Type:   mixed


[ Top ]

$aspect =

[line 69]



Tags:

access:  protected

Type:   mixed


[ Top ]

$bounds =

[line 74]



Tags:

access:  protected

Type:   mixed


[ Top ]

$brush = null

[line 75]



Tags:

access:  protected

Type:   mixed


[ Top ]

$font = null

[line 72]



Tags:

access:  protected

Type:   mixed


[ Top ]

$height = 0

[line 88]



Tags:

access:  public

Type:   mixed


[ Top ]

$imageinterlace = true

[line 78]



Tags:

access:  protected

Type:   mixed


[ Top ]

$imagereflection = false

[line 79]



Tags:

access:  protected

Type:   mixed


[ Top ]

$img =

[line 84]



Tags:

access:  public

Type:   mixed


[ Top ]

$iPointDoubles =

[line 90]



Tags:

access:  public

Type:   mixed


[ Top ]

$metafiling =

[line 77]



Tags:

access:  protected

Type:   mixed


[ Top ]

$monochrome =

[line 89]



Tags:

access:  public

Type:   mixed


[ Top ]

$moveToX =

[line 41]



Tags:

access:  protected

Type:   mixed


[ Top ]

$moveToY =

[line 42]



Tags:

access:  protected

Type:   mixed


[ Top ]

$pen = null

[line 76]



Tags:

access:  protected

Type:   mixed


[ Top ]

$shape =

[line 85]



Tags:

access:  public

Type:   mixed


[ Top ]

$smoothingMode = false

[line 70]



Tags:

access:  protected

Type:   mixed


[ Top ]

$stringFormat =

[line 73]



Tags:

access:  protected

Type:   mixed


[ Top ]

$supportsID =

[line 81]



Tags:

access:  protected

Type:   mixed


[ Top ]

$textSmooth = false

[line 71]



Tags:

access:  protected

Type:   mixed


[ Top ]

$width = 0

[line 87]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


static method applyDark [line 3554]

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

static void doReflection( $im)



Tags:

access:  public


Parameters:

   $im  

[ Top ]

static method getDefaultPattern [line 3401]

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

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

static int getScreenWidth( )

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



Tags:

access:  public


[ Top ]

static method pointAtDistance [line 3258]

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



Tags:

access:  public


Parameters:

   $From  
   $To  
   $distance  

[ Top ]

static method pointInEllipse [line 3301]

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

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

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

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

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

static void rectCenter( $r)



Tags:

access:  public


Parameters:

   $r  

[ Top ]

static method _pointInEllipse [line 3290]

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

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

void __destruct( )



Tags:

access:  public


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

[ Top ]

method arc [line 2651]

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

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

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



Tags:

access:  public


Parameters:

   $x  
   $y  
   $z  

[ Top ]

method calc3DPos [line 417]

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

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

void calcPerspective( $r)



Tags:

access:  public


Parameters:

   $r  

[ Top ]

method calcTrigValues [line 538]

void calcTrigValues( )



Tags:

access:  public


[ Top ]

method changed [line 570]

void changed( $o)



Tags:

access:  public


Parameters:

   $o  

[ Top ]

method clipCube [line 1058]

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

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

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

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

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

void createImage( )

Creates and initialize the image



Tags:

access:  protected


[ Top ]

method cube [line 970]

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

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



Tags:

access:  public


Parameters:

   $rect  
   $z0  
   $z1  
   $darkSides  

[ Top ]

method cylinder [line 670]

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

void doRev( )



Tags:

access:  public


[ Top ]

method draw [line 226]

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

void drawBeziers( p $p)

Draws Bezier splines for the Point array p



Tags:

access:  public


Parameters:

p   $p   Point[]

[ Top ]

method drawBeziersRect [line 352]

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

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



Parameters:

   $shapeBorders  
   $backcolor  
   $forecolor  

[ Top ]

method ellipse [line 1247]

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

void ellipsePoints( $p0, $p1)



Tags:

access:  public


Parameters:

   $p0  
   $p1  

[ Top ]

method ellipseRect [line 1211]

void ellipseRect( r $r)

Draws an Ellipse bounding Rectangle r.



Tags:

access:  public


Parameters:

r   $r   Rectangle

[ Top ]

method ellipseRectZ [line 1221]

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

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

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

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

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

void getColorPaletteLength( )



Tags:

access:  public


[ Top ]

method getDefaultColor [line 3023]

Color getDefaultColor( index $index)

Returns a color from global ColorPalette array variable.



Tags:

access:  public


Parameters:

index   $index   int

[ Top ]

method getDirty [line 3050]

void getDirty( )



Tags:

access:  public


[ Top ]

method getFont [line 3061]

ChartFont getFont( )

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



Tags:

access:  public


[ Top ]

method getFontHeight [line 3079]

int getFontHeight( )

Defines the Height of the Font in pixels.



Tags:

access:  public


[ Top ]

method getImageInterlace [line 3524]

void getImageInterlace( )



Tags:

access:  public


[ Top ]

method getImageReflection [line 3534]

void getImageReflection( )



Tags:

access:  public


[ Top ]

method getImg [line 209]

void getImg( )



[ Top ]

method getIZoomfactor [line 3338]

void getIZoomfactor( )



Tags:

access:  protected


[ Top ]

method getMetafiling [line 3087]

void getMetafiling( )



Tags:

access:  public


[ Top ]

method getMonochrome [line 3095]

void getMonochrome( )



Tags:

access:  public


[ Top ]

method getPen [line 3125]

ChartPen getPen( )

Indicates the kind of pen used to draw Canvas lines.



Tags:

access:  public


[ Top ]

method getRotationCenter [line 3172]

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

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

boolean getSupports3DText( )

Returns if Canvas supports 3D Text or not.



Tags:

access:  public


[ Top ]

method getSupportsFullRotation [line 3477]

boolean getSupportsFullRotation( )

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



Tags:

access:  public


[ Top ]

method getTextAlign [line 3107]

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

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

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

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

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



Parameters:

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

[ Top ]

method imagegradientellipsealpha [line 861]

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



Parameters:

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

[ Top ]

method initWindow [line 1382]

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



Tags:

access:  public


Parameters:

   $a  
   $r  
   $maxDepth  

[ Top ]

method internalApplyDark [line 1410]

void internalApplyDark( $c, $quantity)



Tags:

access:  public


Parameters:

   $c  
   $quantity  

[ Top ]

method line [line 1426]

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

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

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

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

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

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

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

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

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



Tags:

access:  public


Parameters:

   $bevel  
   $rect  
   $width  
   $one  
   $two  

[ Top ]

method pie [line 1811]

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

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

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

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



Tags:

access:  public


Parameters:

   $rectBounds  
   $degrees  
   $zPos  
   $clockWise  

[ Top ]

method polygon [line 1998]

void polygon( $points)



Tags:

access:  public


Parameters:

   $points  

[ Top ]

method polygonFourDouble [line 2090]

void polygonFourDouble( )



Tags:

access:  public


[ Top ]

method polygonPoints [line 2084]

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



Tags:

access:  public


Parameters:

   $p0  
   $p1  
   $p2  

[ Top ]

method polygonZ [line 2077]

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

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

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

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

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

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

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

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

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

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



Tags:

access:  public


Parameters:

   $rect  
   $animations  

[ Top ]

method rectangleWithZ [line 2479]

void rectangleWithZ( $r, $z)



Tags:

access:  public


Parameters:

   $r  
   $z  

[ Top ]

method rectangleY [line 2497]

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

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

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

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

void rotateRectangle( $r, $angle)



Tags:

access:  public


Parameters:

   $r  
   $angle  

[ Top ]

method roundrectangle [line 2508]

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



Parameters:

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

[ Top ]

method setBackColor [line 1925]

void setBackColor( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setBrush [line 3010]

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

void setColorPalette( palette $palette)

Specifies a color from global ColorPalette array variable.



Tags:

access:  public


Parameters:

palette   $palette   Color[]

[ Top ]

method setDirty [line 3054]

void setDirty( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setFont [line 3070]

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

void setGraphics( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setImageInterlace [line 3529]

void setImageInterlace( $vlaue)



Tags:

access:  public


Parameters:

   $vlaue  

[ Top ]

method setImageReflection [line 3539]

void setImageReflection( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setIZoomfactor [line 3342]

void setIZoomfactor( $value)



Tags:

access:  protected


Parameters:

   $value  

[ Top ]

method setMetafiling [line 3091]

void setMetafiling( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setPen [line 3134]

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

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

void setTextAlign( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setXCenter [line 3366]

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

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

void sliceArray( $source, $length)



Tags:

access:  public


Parameters:

   $source  
   $length  

[ Top ]

method textHeight [line 2835]

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

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

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

void transparentEllipsePoints( $p0, $p1)



Tags:

access:  protected


Parameters:

   $p0  
   $p1  

[ Top ]

method transparentEllipseZ [line 1226]

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



Tags:

access:  public


Parameters:

   $x1  
   $y1  
   $x2  
   $y2  
   $z  

[ Top ]

method triangle [line 2644]

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

void unClip( )



[ Top ]

method verticalLine [line 1709]

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

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

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

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

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

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



Tags:

access:  public


Parameters:

   $x  
   $y  
   $width  
   $height  

[ Top ]

method _rotateLabel [line 2706]

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

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

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

void __get( $property)



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

Parameters:

   $property  

[ Top ]

method __line [line 1497]

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

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

void __set( $property, $value)



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

Parameters:

   $property  
   $value  

[ Top ]

method ___calc3DPos [line 515]

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

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

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

void ____lineTo( p $p)

Draws a Line to 3D Point.



Tags:

access:  public


Parameters:

p   $p   Point3D

[ Top ]

method _____lineTo [line 1583]

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:05 +0200 by phpDocumentor 1.4.3