Class: GraphicsGD
Source Location: /GraphicsGD.php
TeeBase
|
--GraphicsGD
GraphicsGD class
Author(s):
Version:
Copyright:
- (c) 1995-2008 by Steema Software SL. All Rights Reserved. <info@steema.com>
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Class Methods
static method applyDark [line 2767]
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:
Parameters:
static method getDefaultPattern [line 2631]
static HatchStyle getDefaultPattern(
index
$index)
|
|
Returns a valid Windows Brush Style from anpalette of many possible Brush styles.
Tags:
Parameters:
static method getScreenHeight [line 2780]
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:
static method getScreenWidth [line 2789]
static int getScreenWidth(
)
|
|
Returns the width, in pixels, of the Chart Panel.
Tags:
static method pointAtDistance [line 2488]
static void pointAtDistance(
$From,
$To,
$distance)
|
|
Tags:
Parameters:
static method pointInEllipse [line 2531]
static boolean pointInEllipse(
p
$p, rect
$rect)
|
|
Returns true if point P is inside the ellipse bounded by Rect.
Tags:
Parameters:
static method pointInHorizTriangle [line 2479]
static boolean pointInHorizTriangle(
p
$p, y0
$y0, y1
$y1, x0
$x0, x1
$x1)
|
|
Returns true if point P is inside the horizontal triangle.
Tags:
Parameters:
static method pointInPolygon [line 2549]
static boolean pointInPolygon(
p
$p, poly
$poly)
|
|
Returns true if point P is inside Poly polygon.
Tags:
Parameters:
static method pointInRect [line 2446]
static boolean pointInRect(
rect
$rect, x
$x, y
$y)
|
|
Obsolete. Please use Rectangle.<!-- -->Contains method.
Tags:
Parameters:
static method pointInTriangle [line 2462]
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:
Parameters:
static method rectCenter [line 2712]
static void rectCenter(
$r)
|
|
Tags:
Parameters:
static method _pointInEllipse [line 2520]
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:
Parameters:
constructor GraphicsGD [line 102]
GraphicsGD GraphicsGD(
IBaseChart
$c, integer
$width, integer
$height)
|
|
Creates a new Graphics object
Tags:
Parameters:
method arrow [line 207]
void arrow(
filled
$filled, fromPoint
$fromPoint, toPoint
$toPoint, headWidth
$headWidth, headHeight
$headHeight, z
$z)
|
|
Draws a line with an arrow head of ArrowWidth and ArrowHeight dimensions in pixels.
Tags:
Parameters:
method calc3DPoint [line 393]
void calc3DPoint(
$x,
$y, [
$z = 0])
|
|
Tags:
Parameters:
method calc3DPos [line 275]
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:
Parameters:
method calc3DPosDouble [line 325]
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:
Parameters:
method calcPerspective [line 397]
void calcPerspective(
$r)
|
|
Tags:
Parameters:
method calcTrigValues [line 412]
method changed [line 444]
method clipCube [line 679]
void clipCube(
rect
$rect, minZ
$minZ, maxZ
$maxZ)
|
|
Creates a cubic Windows GDI clipping region.
Tags:
Parameters:
method clipPolygon [line 505]
void clipPolygon(
polygonPoints
$polygonPoints)
|
|
Creates a Windows GDI clipping region and selects it into TChart.<!-- -->Canvas device context handle.
Tags:
Parameters:
method clipRectangle [line 475]
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:
Parameters:
method convexHull [line 2095]
Calculates the boundary points of the convex hull of a set of 2D xy points. Original
Tags:
Parameters:
method createImage [line 718]
Creates and initialize the image
Tags:
method cube [line 592]
void cube(
left
$left, top
$top, right
$right, bottom
$bottom, z0
$z0, z1
$z1, darkSides
$darkSides)
|
|
Draws a Cube with Dark Sides.
Tags:
Parameters:
method doRev [line 751]
method draw [line 147]
void draw(
r
$r, image
$image, mode
$mode, transparent
$shapeBorders,
$transparent)
|
|
Paints the image in rectangle r.
Tags:
Parameters:
method drawRoundedBorders [line 1832]
void drawRoundedBorders(
$shapeBorders,
$backcolor,
$forecolor)
|
|
Parameters:
method ellipse [line 802]
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:
Parameters:
method ellipsePoints [line 915]
void ellipsePoints(
$p0,
$p1)
|
|
Tags:
Parameters:
method ellipseRect [line 766]
Draws an Ellipse bounding Rectangle r.
Tags:
Parameters:
method ellipseRectZ [line 776]
void ellipseRectZ(
r
$r, z
$z)
|
|
Ellipse bounding Rectangle r at z depth.
Tags:
Parameters:
method ellipseRectZAngle [line 926]
void ellipseRectZAngle(
r
$r, z
$z, angle
$angle)
|
|
Ellipse bounding rectangle r with Z offset at angle.
Tags:
Parameters:
method fontTextHeight [line 938]
int fontTextHeight(
f
$f)
|
|
Determines the Font Height to be used for outputted text when using the Drawing.
Tags:
Parameters:
method getBrush [line 2246]
Determines the kind of brush used to fill the Canvas draw rectangle background. The Brush.Visible method must be set to true.
Tags:
method getColorPaletteLength [line 2280]
void getColorPaletteLength(
)
|
|
Tags:
method getDefaultColor [line 2273]
Color getDefaultColor(
index
$index)
|
|
Returns a color from global ColorPalette array variable.
Tags:
Parameters:
method getDirty [line 2285]
method getFont [line 2296]
Determines the Font for outputted text when using the Drawing Canvas.
Tags:
method getFontHeight [line 2314]
Defines the Height of the Font in pixels.
Tags:
method getIZoomfactor [line 2568]
method getMetafiling [line 2322]
method getMonochrome [line 2330]
method getPen [line 2361]
Indicates the kind of pen used to draw Canvas lines.
Tags:
method getRotationCenter [line 2401]
Sets the Pixel location (using X,Y,Z) of the centre of rotation for use with the Aspect Rotation and Elevation properties.
Tags:
method getSmoothingMode [line 2668]
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:
method getSupports3DText [line 2698]
boolean getSupports3DText(
)
|
|
Returns if Canvas supports 3D Text or not.
Tags:
method getSupportsFullRotation [line 2707]
boolean getSupportsFullRotation(
)
|
|
Returns if Canvas can do rotation and elevation of more than 90 degree.
Tags:
method getTextAlign [line 2342]
void getTextAlign(
value
0)
|
|
Gets / Sets the alignment used when displaying text using TextOut or TextOut3D. Default value: Near
Tags:
Parameters:
method getXCenter [line 2584]
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:
method getYCenter [line 2608]
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:
method horizontalLine [line 1208]
void horizontalLine(
left
$left, right
$right, y
$y, [z
$z = 0])
|
|
Draws a Horizontal at z depth position.
Tags:
Parameters:
method initWindow [line 942]
void initWindow(
$a,
$r,
$maxDepth)
|
|
Tags:
Parameters:
method internalApplyDark [line 970]
void internalApplyDark(
$c,
$quantity)
|
|
Tags:
Parameters:
method line [line 986]
void line(
integer
$x1, integer
$y1, integer
$x2, integer
$y2, [Color
$color = null], [integer
$width = -1])
|
|
Draws a straight line
Tags:
Parameters:
method lineTo [line 1077]
Draws a line to Point with z depth offset.
Tags:
Parameters:
method moveTo [line 1142]
Sets the value of PenPos to Point p before calling LineTo.
Tags:
Parameters:
method moveTo3D [line 1176]
Sets the value of PenPos to 3D Point p before calling LineTo.
Tags:
Parameters:
method moveToXY [line 1132]
void moveToXY(
x
$x, y
$y)
|
|
Sets the value of PenPos to x and y co-ordinates before calling LineTo.
Tags:
Parameters:
method moveToXYZ [line 1154]
void moveToXYZ(
x
$x, y
$y, z
$z)
|
|
Sets the value of PenPos to x, y and z co-ordinates before calling LineTo.
Tags:
Parameters:
method moveToZ [line 1166]
void moveToZ(
p
$p, z
$z)
|
|
Sets the value of PenPos to Point p with z depth offset before calling LineTo.
Tags:
Parameters:
method outlinedBox [line 1256]
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:
Parameters:
method paintBevel [line 1266]
void paintBevel(
$bevel,
$rect,
$width,
$one,
$two)
|
|
Tags:
Parameters:
method pie [line 1310]
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:
Parameters:
method plane [line 1351]
void plane(
p1
$p1, p2
$p2, z0
$z0, z1
$z1)
|
|
Draws a polygon (Point p1, Point p2) at Z depth offset.
Tags:
Parameters:
method planeFour3D [line 1384]
void planeFour3D(
z0
$z0, z1
$z1, p
$p)
|
|
Draws a polygon of four points.
Tags:
Parameters:
method pointFromCircle [line 2720]
void pointFromCircle(
$rectBounds,
$degrees,
$zPos, [
$clockWise = false])
|
|
Tags:
Parameters:
method polygon [line 1392]
method polygonFourDouble [line 1452]
void polygonFourDouble(
)
|
|
Tags:
method polygonPoints [line 1446]
void polygonPoints(
$p0,
$p1,
$p2)
|
|
Tags:
Parameters:
method polygonZ [line 1439]
void polygonZ(
z
$z, p
$p)
|
|
Draws a polygon with z position offset.
Tags:
Parameters:
method polyLine [line 1588]
void polyLine(
z
$z, p
$p)
|
|
Draws a series of line segments to join point array p at z displacement.
Tags:
Parameters:
method printCentered [line 1671]
void printCentered(
Image
$img, integer
$py, Color
$color, string
$text, string
$fontFileName)
|
|
Print text centered horizontally on the image.
Tags:
Parameters:
method printDiagonal [line 1688]
void printDiagonal(
Image
$img, integer
$px, integer
$py, Color
$text, string
$angle)
|
|
Print text in diagonal.
Tags:
Parameters:
method printText [line 1613]
void printText(
Image
$img, integer
$px, integer
$py, Color
$text, [string
$align = -1], string
5, bitfield
6)
|
|
Print text.
Tags:
Parameters:
method projection [line 1711]
void projection(
maxDepth
$maxDepth, r
$r)
|
|
Internal use. Calculates the projection co-ordinates for rectangle Bounds.
Tags:
Parameters:
method pyramidTrunc [line 1333]
void pyramidTrunc(
Rectangle
$r, int
$startZ, int
$endZ, int
$truncX, int
$truncZ)
|
|
Draws a pyramid with a truncated apex of variable thickness.
Tags:
Parameters:
method rectangle [line 1721]
method rectangleWithZ [line 1773]
void rectangleWithZ(
$r,
$z)
|
|
Tags:
Parameters:
method rectangleY [line 1791]
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:
Parameters:
method rectangleZ [line 1765]
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:
Parameters:
method rectFromPolygon [line 2413]
Returns the bounding rectangle for a given array of XY points.
Tags:
Parameters:
method rotateLabel [line 1969]
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:
Parameters:
method roundrectangle [line 1802]
void roundrectangle(
$x1,
$y1,
$x2,
$y2,
$radius, [
$filled = 1])
|
|
Parameters:
method setBrush [line 2260]
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:
Parameters:
method setDirty [line 2289]
method setFont [line 2305]
void setFont(
value
$value)
|
|
Determines the Font for outputted text when using the Drawing Canvas.
Tags:
Parameters:
method setGraphics [line 2318]
void setGraphics(
$value)
|
|
Tags:
Parameters:
method setIZoomfactor [line 2572]
void setIZoomfactor(
$value)
|
|
Tags:
Parameters:
method setMetafiling [line 2326]
void setMetafiling(
$value)
|
|
Tags:
Parameters:
method setPen [line 2370]
void setPen(
value
$value)
|
|
Determines the kind of pen used to draw Canvas lines.
Tags:
Parameters:
method setSmoothingMode [line 2685]
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:
Parameters:
method setTextAlign [line 2346]
void setTextAlign(
$value)
|
|
Tags:
Parameters:
method setXCenter [line 2596]
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:
Parameters:
method setYCenter [line 2620]
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:
Parameters:
method sliceArray [line 1988]
void sliceArray(
$source,
$length)
|
|
Tags:
Parameters:
method textHeight [line 2084]
int textHeight(
text
$text)
|
|
Returns the vertical size in pixels of the text String.
Tags:
Parameters:
method textOut [line 2010]
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:
Parameters:
method textWidth [line 2064]
int textWidth(
f
$text, [text
$f = null])
|
|
Returns the horizontal text size in pixels of ChartFont f.
Tags:
Parameters:
method transparentEllipsePoints [line 787]
void transparentEllipsePoints(
$p0,
$p1)
|
|
Tags:
Parameters:
method transparentEllipseZ [line 781]
void transparentEllipseZ(
$x1,
$y1,
$x2,
$y2,
$z)
|
|
Tags:
Parameters:
method triangle [line 1940]
void triangle(
p0
$p0, p1
$p1, p2
$p2, [z
$z = 0])
|
|
Draws a triangle (point p0, pointp1, pointp2) at Z position.
Tags:
Parameters:
method unClip [line 447]
method verticalLine [line 1231]
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:
Parameters:
method zLine [line 1188]
void zLine(
x
$x, y
$y, z0
$z0, z1
$z1)
|
|
Draws a Line from (X,Y,Z0) to (X,Y,Z1).
Tags:
Parameters:
method _calc3DPos [line 362]
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:
Parameters:
method _line [line 1030]
void _line(
x0
$x0, y0
$y0, x1
$x1, y1
$y1, z
$z)
|
|
Draws a Line between co-ordinates with z depth offset.
Tags:
Parameters:
method _plane [line 1369]
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:
Parameters:
method _rectangle [line 1751]
void _rectangle(
$x,
$y,
$width,
$height)
|
|
Tags:
Parameters:
method _rotateLabel [line 1984]
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:
Parameters:
method _textHeight [line 2053]
int _textHeight(
f
$f, text
$text)
|
|
Returns the vertical text size in pixels of ChartFont f.
Tags:
Parameters:
method __calc3DPos [line 376]
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:
Parameters:
method __get [line 80]
method __line [line 1040]
void __line(
p0
$p0, p1
$p1)
|
|
Draws a Line between point p0 and point p1.
Tags:
Parameters:
method __lineTo [line 1086]
Draws a line to Point with z = 0 depth offset.
Tags:
Parameters:
method __set [line 87]
void __set(
$property,
$value)
|
|
Overrides TeeBase::__set() (parent method not documented)
Parameters:
method ___calc3DPos [line 389]
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:
Parameters:
method ___line [line 1053]
void ___line(
pen
$pen, p0
$p0, p1
$p1)
|
|
Draws a Line between point p0 and point p1 using specific pen.
Tags:
Parameters:
method ___lineTo [line 1100]
void ___lineTo(
x
$x, y
$y, [z
$z = 0])
|
|
Draws line from present position to end co-ordinates with z depth offset.
Tags:
Parameters:
method ____lineTo [line 1109]
Draws a Line to 3D Point.
Tags:
Parameters:
method _____lineTo [line 1119]
void _____lineTo(
x
$x, y
$y)
|
|
Draws line from present position to end co-ordinates with z depth offset.
Tags:
Parameters:
|
|