com.steema.teechart.drawing
Class Graphics3D

java.lang.Object
  extended by com.steema.teechart.TeeBase
      extended by com.steema.teechart.drawing.Graphics3D
All Implemented Interfaces:
IGraphics3D
Direct Known Subclasses:
Graphics3DBlackBerry, Graphics3DVectorial

public abstract class Graphics3D
extends TeeBase
implements IGraphics3D

Title: Graphics3D class

Description: Access to central Chart drawing elements

Copyright (c) 2005-2012 by Steema Software SL. All Rights Reserved.

Company: Steema Software SL


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.steema.teechart.drawing.IGraphics3D
IGraphics3D.PieRect
 
Field Summary
protected  Aspect aspect
           
protected  Rectangle bounds
           
protected  ChartBrush brush
           
static int DARKCOLORQUANTITY
           
static int DARKERCOLORQUANTITY
           
protected  ChartFont font
           
 Point[] fourPoints
           
 PointDouble[] iPointDoubles
           
protected  boolean is3D
           
protected  boolean metafiling
           
 boolean monochrome
           
protected  ChartPen pen
           
protected  boolean smoothingMode
           
protected  StringFormat stringFormat
           
protected  boolean textSmooth
           
 
Fields inherited from class com.steema.teechart.TeeBase
chart, InternalUse
 
Constructor Summary
Graphics3D(IBaseChart c)
           
 
Method Summary
static void applyBright(Color c, int howMuch)
          Converts the Color parameter to a brighter color.
static void applyDark(Color c, int howMuch)
          Converts the Color parameter to a darker color.
abstract  void arc(int x1, int y1, int x2, int y2, double startAngle, double sweepAngle)
           
abstract  void arc(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
          Use Arc to draw an elliptically curved line with the current Pen.
 void arc(Rectangle rect, double startAngle, double sweepAngle)
           
 void arc(Rectangle rect, Point start, Point end)
           
 void arrow(boolean filled, Point fromPoint, Point toPoint, int headWidth, int headHeight, int z)
          Draws a line with an arrow head of ArrowWidth and ArrowHeight dimensions in pixels.
 Point calc3DPoint(int x, int y, int z)
           
 Point calc3DPoint(Point3D p)
           
 Point calc3DPoint(Point p, int z)
           
 Point calc3DPos(int x, int y, int z)
           
 Point calc3DPos(Point3D source)
          Calculates and returns the XY position in pixels of the point p Z 3D coordinate.
 void calc3DPos(PointDouble point, double x, double y, double z)
           
 void calc3DPos(PointDouble point, int x, int y, int z)
          Calculates and returns the XY position as double of the XYZ 3D coordinate.
 Point calc3DPos(Point source, int z)
          Calculates and returns the XY position in pixels of the point p Z 3D coordinate.
 void calc3DPos(Point p, int x, int y, int z)
          Calculates and returns the XY position in pixels of the XYZ 3D coordinate.
 void calc3DPos(Point result, Point source)
          Calculates and returns the XY position in pixels of the point p with Z = 0 3D coordinate.
 void calcArcAngles(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, double startAngle, double sweepAngle)
           
 void calcArcPoints(int x1, int y1, int x2, int y2, double startAngle, double sweepAngle, int x3, int y3, int x4, int y4)
           
 void calcPerspective(Rectangle r)
           
 Rectangle calcRect3D(Rectangle r, int z)
          Calculates and returns the position in pixels of the Rectangle 3D coordinates.
 void calcTrigValues()
           
 Point calculate2DPosition(int x, int y, int z)
          Calculates and returns the XY position in pixels of the coordinate.
 Point calculate2DPosition(Point p, int z)
           
 Point calculate3DPosition(int x, int y, int z)
          Calculates and returns the XY position in pixels of the XYZ 3D coordinate.
 Point calculate3DPosition(Point3D P)
          Calculates and returns the XY position in pixels of the XYZ 3D coordinate.
 Point calculate3DPosition(Point P, int z)
          Calculates and returns the XY position in pixels of the XYZ 3D coordinate.
 void changed(java.lang.Object o)
           
 void clipCube(Rectangle rect, int minZ, int maxZ)
          Creates a cubic Windows GDI clipping region.
abstract  void clipEllipse(Rectangle r)
           
abstract  void clipPolygon(Point[] p)
           
 void clipRectangle(int left, int top, int right, int bottom)
          Creates a Windows GDI clipping region and selects it into TChart.
abstract  void clipRectangle(Rectangle r)
           
 void cone(boolean vertical, int left, int top, int right, int bottom, int z0, int z1, boolean darkSides)
          Paints a cone.
 void cone(boolean vertical, int left, int top, int right, int bottom, int z0, int z1, boolean darkSides, int conePercent)
           
 void cone(boolean vertical, Rectangle r, int z0, int z1, boolean darkSides)
          Paints a cone.
 void cone(boolean vertical, Rectangle r, int z0, int z1, boolean darkSides, int conePercent)
          Paints a cone with Cone Percent.
 int convexHull(Point[] p)
          Calculates the boundary points of the convex hull of a set of 2D xy points.
protected  Rectangle correctRectangle(Rectangle r)
           
static LineCross crossingLines(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)
          Returns true if two lines cross.
 void cube(int left, int top, int right, int bottom, int z0, int z1, boolean darkSides)
          Draws a Cube with Dark Sides.
 void cube(Rectangle r, int z0, int z1)
          Draws a Cube.
 void cube(Rectangle r, int z0, int z1, boolean darkSides)
          Draws a Cube with Dark Sides.
static boolean cull(Point[] p)
           
static boolean cull(Point p0, Point p1, Point p2)
           
 void cylinder(boolean vertical, Rectangle r, int z0, int z1, boolean darkSides)
          Draws cylinder toggle Boolean for vertical or horizontal cylinder.
 void donut(int xCenter, int yCenter, int xRadius, int yRadius, double startAngle, double endAngle, int holePercent)
          Draws a Donut slice.
abstract  void draw(Rectangle r, Image image, boolean transparent)
           
 void draw(Rectangle r, Image image, ImageMode mode, boolean transparent)
          Paints the image in rectangle r.
 void drawBeziers(int z, Point[] p)
          Draws Bezier splines for the Point array p at displacement z
 void drawBeziers(Point[] p)
          Draws Bezier splines for the Point array p
 void drawBlur(PointDouble[] p, int smoothBlur)
           
 void drawBlur(Rectangle rect, int smoothBlur, boolean isEllipse)
           
protected abstract  void drawString(int x, int y, java.lang.String text, ChartBrush brush)
           
abstract  void ellipse(int x1, int y1, int x2, int y2)
           
 void ellipse(int x1, int y1, int x2, int y2, boolean enhanced)
           
 void ellipse(int x1, int y1, int x2, int y2, int z)
          Ellipse bounding Rect (X1,Y1,X2,Y2) at Z position.
 void ellipse(int x1, int y1, int x2, int y2, int z, boolean enhanced)
          Enhanced Ellipse bounding rectangle (X1,Y1,X2,Y2) at Z position.
 void ellipse(int left, int top, int right, int bottom, int z, double angle)
          Ellipse bounding rectangle (Left, Top, Right, Bottom) with Z offset at angle.
 void ellipse(Point p0, Point p1)
           
 void ellipse(Rectangle r)
          Draws an Ellipse bounding Rectangle r.
 void ellipse(Rectangle r, int z)
          Ellipse bounding Rectangle r at z depth.
 void ellipse(Rectangle r, int z, double angle)
          Ellipse bounding rectangle r with Z offset at angle.
abstract  void ellipseEnh(int x1, int y1, int x2, int y2)
           
abstract  void eraseBackground(int left, int top, int right, int bottom)
           
abstract  boolean fillPieSegment(int x1, int y1, int x2, int y2, int sd, int rd, int cl)
           
abstract  void fillRectangle(ChartBrush brush, int x, int y, int width, int height)
           
 void fillRectangle(Rectangle rect)
           
 int fontTextHeight(ChartFont f)
          Determines the Font Height to be used for outputted text when using the Drawing.
 Point[] fourPointsFromRect(Rectangle r, int z)
          Returns an array of four Point objects
 Aspect getAspect()
           
 Color getBackColor()
          Sets / returns the color used to fill spaces when displaying text or filling with brushes of different style other than bsSolid.
 ChartBrush getBrush()
          Determines the kind of brush used to fill the Canvas draw rectangle background.
 int getChartXCenter()
          Returns the center Horizontal coordinate of the Chart.
 int getChartYCenter()
          Returns the middle Vertical coordinate of the Chart.
 Color[] getColorPalette()
           
 int getColorPaletteLength()
           
 Color getDefaultColor(int index)
          Returns a color from global ColorPalette array variable.
static HatchStyle getDefaultPattern(int index)
          Returns a valid Windows Brush Style from anpalette of many possible Brush styles.
 boolean getDirty()
           
 ChartFont getFont()
          Determines the Font for outputted text when using the Drawing Canvas.
 int getFontHeight()
          Defines the Height of the Font in pixels.
 Gradient getGradient()
          Determines the Brush.
protected  double getIZoomfactor()
           
 boolean getMetafiling()
           
 boolean getMonochrome()
           
 ChartPen getPen()
          Indicates the kind of pen used to draw Canvas lines.
static int[] getRectCenter(Rectangle r)
           
 Point3D getRotationCenter()
          Sets the Pixel location (using X,Y,Z) of the centre of rotation for use with the Aspect Rotation and Elevation properties.
 boolean getSmoothingMode()
          The anti-alias mode for the Graphics Pen when Custom drawing.
 boolean getSupports3DText()
          Returns if Canvas supports 3D Text or not.
 boolean getSupportsFullRotation()
          Returns if Canvas can do rotation and elevation of more than 90 degree.
 StringAlignment getTextAlign()
          The alignment used when displaying text using TextOut or TextOut3D.
 boolean getTextSmooth()
          Chooses between speed or display quality for Text rendering.
 boolean getUseBuffer()
          Draws items to a canvas to prevent flickering on screen.
 int getXCenter()
          The X coordinate of the pixel location of the center of the 3D Canvas.
 int getYCenter()
          The Y coordinate of the pixel location of the center of the 3D Canvas.
abstract  void horizontalLine(int left, int right, int y)
           
 void horizontalLine(int left, int right, int y, int z)
          Draws a Horizontal at z depth position.
 void initWindow(Aspect a, Rectangle r, int maxDepth)
           
protected abstract  void line(ChartPen p, Point a, Point b)
           
abstract  void line(int x0, int y0, int x1, int y1)
           
 void line(int x0, int y0, int x1, int y1, int z)
          Draws a Line between co-ordinates with z depth offset.
 void line(int x0, int y0, int z0, int x1, int y1, int z1)
          Draws a Line between co-ordinates with different start/end z depth offset.
 void line(Point p0, Point p1)
          Draws a Line between point p0 and point p1.
 void line(Point p0, Point p1, int z)
          Draws a Line between point p0 and point p1 with Z offset.
abstract  void lineTo(int x, int y)
           
 void lineTo(int x, int y, int z)
          Draws line from present position to end co-ordinates with z depth offset.
 void lineTo(Point p)
          Draws a line to Point with z = 0 depth offset.
 void lineTo(Point3D p)
          Draws a Line to 3D Point.
 void lineTo(Point p, int z)
          Draws a line to Point with z depth offset.
 void lineWithZ(int x, int y, int x1, int y1, int z)
          Obsolete.
abstract  void measureString(Dimension size, ChartFont f, java.lang.String text)
           
abstract  void moveTo(int x, int y)
          Sets the value of PenPos to x and y co-ordinates before calling LineTo.
 void moveTo(int x, int y, int z)
          Sets the value of PenPos to x, y and z co-ordinates before calling LineTo.
 void moveTo(Point p)
          Sets the value of PenPos to Point p before calling LineTo.
 void moveTo(Point3D p)
          Sets the value of PenPos to 3D Point p before calling LineTo.
 void moveTo(Point p, int z)
          Sets the value of PenPos to Point p with z depth offset before calling LineTo.
 Rectangle orientRectangle(Rectangle rect)
           
 void paintBevel(BevelStyle bevel, Rectangle rect, int width, Color one, Color two)
           
 void paintImageBevel(Rectangle rect, int width, ChartPen pen, ChartBrush brush, int borderRound)
           
abstract  void pie(int x1, int y1, int x2, int y2, double startAngle, double endAngle)
           
 void pie(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
          Draws a Pie slice.
 void pie(int xCenter, int yCenter, int xOffset, int yOffset, int xRadius, int yRadius, int z0, int z1, double startAngle, double endAngle, boolean darkSides, boolean drawSides, int donutPercent, int bevelPercent, EdgeStyle edgeStyle, boolean last)
          Draws a 3D Pie slice using start Angle and end Angle and donut percent.
abstract  void pixel(int x, int y, int z, Color color)
           
 void plane(int z0, int z1, Point[] p)
          Draws a polygon using points array p with different start/end z depth offset.
 void plane(Point p1, Point p2, int z0, int z1)
          Draws a polygon (Point p1, Point p2) at Z depth offset.
 void plane(Point p1, Point p2, Point p3, Point p4, int z)
          Draws a polygon (Point p1, Point p2, Point p3, Point p4) at Z depth offset.
 void planeFour3D(int z0, int z1, Point[] p)
          Draws a polygon of four points.
static Point pointAtDistance(Point From, Point To, int distance)
          Returns point "ATo" minus ADist pixels from AFrom point.
 PointDouble pointFromCircle(IGraphics3D.PieRect rect, double degrees, int zPos, boolean clockWise)
           
 PointDouble pointFromCircle(Rectangle rectBounds, double degrees)
           
 PointDouble pointFromCircle(Rectangle rectBounds, double degrees, int zPos, boolean clockWise)
           
 PointDouble pointFromEllipse(Rectangle rectBounds, double degrees, int zPos)
          Returns the PointDouble which is on the ellipse bounded by rectBounds at the angle degrees.
 PointDouble pointFromSpiral(Rectangle rectBounds, double degrees, double twist)
           
static boolean pointInEllipse(Point p, int left, int top, int right, int bottom)
          Returns true if point P is inside the ellipse bounded by Left, Top, Right, Bottom.
static boolean pointInEllipse(Point p, Rectangle rect)
          Returns true if point P is inside the ellipse bounded by Rect.
static boolean pointInHorizTriangle(Point p, int y0, int y1, int x0, int x1)
          Returns true if point P is inside the horizontal triangle.
static boolean pointInLineTolerance(Point p, int px, int py, int qx, int qy, int tolerance)
          Determines if point p is "near" line segment between px,py point and qx,qy point.
static boolean pointInLineTolerance(Point p, Point p0, Point p1, int tolerancePixels)
          Determines if point p is "near" line segment between p0 and p1.
static boolean pointInPolygon(Point p, Point[] poly)
          Returns true if point P is inside Poly polygon.
static boolean pointInRect(Rectangle rect, int x, int y)
          Obsolete.
static boolean pointInTriangle(Point p, int x0, int x1, int y0, int y1)
          Returns true if point P is inside the vert triangle of x0y0, midxY1, x1y0.
 void polygon(int z, Point[] p)
          Draws a polygon with z position offset.
abstract  void polygon(Point[] p)
           
 void polygon(Point3D[] p)
           
abstract  void polygon(PointDouble[] p)
           
 void polygon(PointDouble[] p, int size)
           
 void polygon(Point p0, Point p1, Point p2)
           
 void polygonFourDouble()
           
static Rectangle polygonRect(Point[] p)
          Returns bounding rectangle for point array p
 void polyLine(int z, Point[] p)
          Draws a series of line segments to join point array p at z displacement.
abstract  void polyLine(Point[] p)
           
abstract  void prepareDrawImage()
           
 void projection(int maxDepth, Rectangle r)
          Internal use.
 void pyramid(boolean vertical, int left, int top, int right, int bottom, int z0, int z1, boolean darkSides)
          Draws a vertical or horizontal Pyramid with optional dark shaded sides.
 void pyramid(boolean vertical, Rectangle r, int z0, int z1, boolean darkSides)
          Draws a vertical or horizontal Pyramid with optional dark shaded sides.
 void pyramidTrunc(Rectangle r, int startZ, int endZ, int truncX, int truncZ)
          Draws a pyramid with a truncated apex of variable thickness.
protected static double rad2Deg(double radian)
           
 void rectangle(ChartBrush b, int x, int y, int right, int bottom)
           
abstract  void rectangle(ChartBrush b, Rectangle r)
           
 void rectangle(int left, int top, int right, int bottom)
          Draws a rectangle between the defined co-ordinates.
 void rectangle(int left, int top, int right, int bottom, int z)
          Draws a rectangle between the defined co-ordinates with z depth.
abstract  void rectangle(Rectangle r)
           
 void rectangle(Rectangle r, int z)
          Draws a Rectangle (Rectangle r) at z depth.
 void rectangleWithZ(Rectangle r, int z)
          Obsolete.
 void rectangleY(int left, int top, int right, int z0, int z1)
          Horizontal Rectangle from Left to Right, from Z0 to Z1 position, at Top Y.
 void rectangleZ(int left, int top, int bottom, int z0, int z1)
          Horizontal Rectangle from Left to Right, from Z0 to Z1 position, at Top Y.
static Point rectCenter(Rectangle r)
           
 Rectangle rectFromPolygon(int num, Point[] p)
          Returns the bounding rectangle for a given array of XY points.
 Rectangle rectFromRectZ(Rectangle r, int z)
          Returns the smallest bounding rectangle containing the four corners of the "R" rectangle after calculating their 3D position.
 void reset()
           
 void restore()
           
 void rotateLabel(int x, int y, int z, java.lang.String text, double rotDegree)
          Draws a rotated text String at the specified x,y and z coordinates with the RotDegree rotation angle.
abstract  void rotateLabel(int x, int y, java.lang.String text, double rotDegree)
           
 void rotateLabel(Point p, java.lang.String text, double rotDegree)
          Draws a rotated text String at the specified Point x,y coordinates with the RotDegree rotation angle.
 Point[] rotateRectangle(Rectangle r, double angle)
           
 void roundRectangle(Rectangle r)
          Draws a rectangle with rounded corners of personalized curvature and size.
abstract  void roundRectangle(Rectangle r, int roundWidth, int roundHeight)
           
 void save()
           
 void setBackColor(Color value)
           
 void setBrush(ChartBrush value)
          Determines the kind of brush used to fill the Canvas draw rectangle background.
 void setColorPalette(Color[] palette)
          Specifies a color from global ColorPalette array variable.
 void setDirty(boolean value)
           
 void setFont(ChartFont value)
          Determines the Font for outputted text when using the Drawing Canvas.
 void setGradient(Gradient value)
          Determines the Brush.
abstract  void setGraphics(java.lang.Object value)
           
protected  void setIZoomfactor(double value)
           
 void setMetafiling(boolean value)
           
 void setPen(ChartPen value)
          Determines the kind of pen used to draw Canvas lines.
abstract  void setPixel(int x, int y, int z, Color color)
           
 void setRotationCenter(Point3D value)
           
 void setSmoothingMode(boolean value)
          Sets the anti-alias mode for the Graphics Pen when Custom drawing.
 void setTextAlign(StringAlignment value)
          Sets the alignment used when displaying text using TextOut or TextOut3D.
 void setTextSmooth(boolean value)
           
 void setUseBuffer(boolean value)
           
 void setXCenter(int value)
          Specifies the X coordinate of the pixel location of the center of the 3D Canvas.
 void setYCenter(int value)
          Specifies the Y coordinate of the pixel location of the center of the 3D Canvas.
static Point[] sliceArray(Point[] source, int length)
           
static PointDouble[] sliceArray(PointDouble[] source, int length)
           
 void sphere(int x, int y, int z, double radius)
           
 void sphere(int x0, int y0, int x1, int y1)
           
 void sphere(int x, int y, int z, int radius, boolean enhanced)
           
 void sphere(int x1, int y1, int x2, int y2, int z, boolean enhanced)
           
 void sphere(Rectangle rect, int z, boolean enhanced)
           
protected abstract  void sphereEnh(int x1, int y1, int x2, int y2)
           
 int textHeight(ChartFont f, java.lang.String text)
          Returns the vertical text size in pixels of ChartFont f.
 int textHeight(java.lang.String text)
          Returns the vertical size in pixels of the text String.
 void textOut(int x, int y, int z, java.lang.String text)
          Displays 2D non-rotated label at the specified x,y and z screen coordinates.
 void textOut(int x, int y, java.lang.String text)
          Displays the 2D non-rotated label at the specified X Y screen coordinates.
 void textOut(Point p, java.lang.String text)
           
 int textWidth(ChartFont f, java.lang.String text)
          Returns the horizontal text size in pixels of ChartFont f.
 int textWidth(java.lang.String text)
          Returns the horizontal size in pixels of the text String.
static int transparency(Color color)
          Returns percentage based on Color "A" value.
static Color transparentColor(int transparency, Color color)
          Returns Color parameter after changing its "A" value.
protected abstract  void transparentEllipse(int x1, int y1, int x2, int y2)
           
 void transparentEllipse(int x1, int y1, int x2, int y2, int z)
           
protected  void transparentEllipse(Point p0, Point p1)
           
 void triangle(Point p0, Point p1, Point p2, int z)
          Draws a triangle (point p0, pointp1, pointp2) at Z position.
 void triangle(Triangle3D p)
          Draws a triangle (Triangle3D p).
abstract  void unClip()
           
 void unClipRectangle()
          Obsolete.
 boolean validState()
           
abstract  void verticalLine(int x, int top, int bottom)
           
 void verticalLine(int x, int top, int bottom, int z)
          Draws a Vertical Line from (X,Top) to (X,Bottom) at z depth position.
 void zLine(int x, int y, int z0, int z1)
          Draws a Line from (X,Y,Z0) to (X,Y,Z1).
 
Methods inherited from class com.steema.teechart.TeeBase
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.steema.teechart.drawing.IGraphics3D
draw, getGraphics, polygon, resetState, resetTransform, rotateTransform, showImage
 

Field Detail

DARKCOLORQUANTITY

public static final int DARKCOLORQUANTITY
See Also:
Constant Field Values

DARKERCOLORQUANTITY

public static final int DARKERCOLORQUANTITY
See Also:
Constant Field Values

fourPoints

public Point[] fourPoints

smoothingMode

protected boolean smoothingMode

textSmooth

protected boolean textSmooth

bounds

protected Rectangle bounds

stringFormat

protected StringFormat stringFormat

pen

protected ChartPen pen

brush

protected ChartBrush brush

font

protected ChartFont font

aspect

protected Aspect aspect

iPointDoubles

public PointDouble[] iPointDoubles

is3D

protected boolean is3D

metafiling

protected boolean metafiling

monochrome

public boolean monochrome
Constructor Detail

Graphics3D

public Graphics3D(IBaseChart c)
Method Detail

save

public void save()
Specified by:
save in interface IGraphics3D

restore

public void restore()
Specified by:
restore in interface IGraphics3D

reset

public void reset()

getAspect

public Aspect getAspect()
Specified by:
getAspect in interface IGraphics3D

getPen

public ChartPen getPen()
Indicates the kind of pen used to draw Canvas lines.

Specified by:
getPen in interface IGraphics3D
Returns:
ChartPen

setPen

public void setPen(ChartPen value)
Determines the kind of pen used to draw Canvas lines.

Specified by:
setPen in interface IGraphics3D
Parameters:
value - ChartPen

getBrush

public ChartBrush getBrush()
Determines the kind of brush used to fill the Canvas draw rectangle background.
The Brush.Visible method must be set to true.

Specified by:
getBrush in interface IGraphics3D
Returns:
ChartBrush

setBrush

public void setBrush(ChartBrush value)
Determines the kind of brush used to fill the Canvas draw rectangle background.
The Brush.Visible method must be set to true.

Specified by:
setBrush in interface IGraphics3D
Parameters:
value - ChartBrush

changed

public void changed(java.lang.Object o)
Specified by:
changed in interface IGraphics3D

getGradient

public Gradient getGradient()
Determines the Brush.Gradient properties of the Canvas.

Specified by:
getGradient in interface IGraphics3D
Returns:
Gradient

setGradient

public void setGradient(Gradient value)
Determines the Brush.Gradient properties of the Canvas.

Parameters:
value - Gradient

getDirty

public boolean getDirty()
Specified by:
getDirty in interface IGraphics3D

getFont

public ChartFont getFont()
Determines the Font for outputted text when using the Drawing Canvas.

Specified by:
getFont in interface IGraphics3D
Returns:
ChartFont

setFont

public void setFont(ChartFont value)
Determines the Font for outputted text when using the Drawing Canvas.

Specified by:
setFont in interface IGraphics3D
Parameters:
value - ChartFont

getColorPaletteLength

public int getColorPaletteLength()
Specified by:
getColorPaletteLength in interface IGraphics3D

getColorPalette

public Color[] getColorPalette()
Specified by:
getColorPalette in interface IGraphics3D

getMetafiling

public boolean getMetafiling()
Specified by:
getMetafiling in interface IGraphics3D

setMetafiling

public void setMetafiling(boolean value)
Specified by:
setMetafiling in interface IGraphics3D

getDefaultColor

public Color getDefaultColor(int index)
Returns a color from global ColorPalette array variable.

Specified by:
getDefaultColor in interface IGraphics3D
Parameters:
index - int
Returns:
Color

setColorPalette

public void setColorPalette(Color[] palette)
Specifies a color from global ColorPalette array variable.

Specified by:
setColorPalette in interface IGraphics3D
Parameters:
palette - Color[]

applyDark

public static void applyDark(Color c,
                             int 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.

Parameters:
c - Color
howMuch - int

applyBright

public static void applyBright(Color c,
                               int howMuch)
Converts the Color parameter to a brighter color. The HowMuch parameter indicates the quantity of bright increment. It is used by Bar Series and Pie Series to calculate the right color to draw Bar sides and Pie 3D zones.

Parameters:
c - Color
howMuch - int

cull

public static boolean cull(Point p0,
                           Point p1,
                           Point p2)

cull

public static boolean cull(Point[] p)

getMonochrome

public boolean getMonochrome()
Specified by:
getMonochrome in interface IGraphics3D

getTextAlign

public StringAlignment getTextAlign()
The alignment used when displaying text using TextOut or TextOut3D.
Default value: Near

Specified by:
getTextAlign in interface IGraphics3D
Returns:
StringAlignment

setTextAlign

public void setTextAlign(StringAlignment value)
Sets the alignment used when displaying text using TextOut or TextOut3D.
Default value: Near

Specified by:
setTextAlign in interface IGraphics3D
Parameters:
value - StringAlignment

rotateRectangle

public Point[] rotateRectangle(Rectangle r,
                               double angle)
Specified by:
rotateRectangle in interface IGraphics3D

pointInLineTolerance

public static boolean pointInLineTolerance(Point p,
                                           Point p0,
                                           Point p1,
                                           int tolerancePixels)
Determines if point p is "near" line segment between p0 and p1.

Parameters:
p - Point
p0 - Point
p1 - Point
tolerancePixels - int
Returns:
boolean

pointInLineTolerance

public static boolean pointInLineTolerance(Point p,
                                           int px,
                                           int py,
                                           int qx,
                                           int qy,
                                           int tolerance)
Determines if point p is "near" line segment between px,py point and qx,qy point.

Parameters:
p - Point
px - int
py - int
qx - int
qy - int
tolerance - int
Returns:
boolean

getDefaultPattern

public static HatchStyle getDefaultPattern(int index)
Returns a valid Windows Brush Style from anpalette of many possible Brush styles.

Parameters:
index - int
Returns:
HatchStyle

rectFromPolygon

public Rectangle rectFromPolygon(int num,
                                 Point[] p)
Returns the bounding rectangle for a given array of XY points.

Parameters:
num - int
p - Point[]
Returns:
Rectangle

pointInRect

public static boolean pointInRect(Rectangle rect,
                                  int x,
                                  int y)
Obsolete. Please use Rectangle.Contains method.

Parameters:
rect - Rectangle
x - int
y - int
Returns:
boolean

pointInTriangle

public static boolean pointInTriangle(Point p,
                                      int x0,
                                      int x1,
                                      int y0,
                                      int y1)
Returns true if point P is inside the vert triangle of x0y0, midxY1, x1y0.

Parameters:
p - Point
x0 - int
x1 - int
y0 - int
y1 - int
Returns:
boolean

pointInHorizTriangle

public static boolean pointInHorizTriangle(Point p,
                                           int y0,
                                           int y1,
                                           int x0,
                                           int x1)
Returns true if point P is inside the horizontal triangle.

Parameters:
p - Point
y0 - int
y1 - int
x0 - int
x1 - int
Returns:
boolean

pointAtDistance

public static Point pointAtDistance(Point From,
                                    Point To,
                                    int distance)
Returns point "ATo" minus ADist pixels from AFrom point.


pointFromEllipse

public PointDouble pointFromEllipse(Rectangle rectBounds,
                                    double degrees,
                                    int zPos)
Returns the PointDouble which is on the ellipse bounded by rectBounds at the angle degrees. Optionally translates the point in TeeChart's 3D space when the Z Position is greater than zero.

Specified by:
pointFromEllipse in interface IGraphics3D

pointFromCircle

public PointDouble pointFromCircle(Rectangle rectBounds,
                                   double degrees)
Specified by:
pointFromCircle in interface IGraphics3D

pointFromCircle

public PointDouble pointFromCircle(Rectangle rectBounds,
                                   double degrees,
                                   int zPos,
                                   boolean clockWise)
Specified by:
pointFromCircle in interface IGraphics3D

pointFromSpiral

public PointDouble pointFromSpiral(Rectangle rectBounds,
                                   double degrees,
                                   double twist)
Specified by:
pointFromSpiral in interface IGraphics3D

pointFromCircle

public PointDouble pointFromCircle(IGraphics3D.PieRect rect,
                                   double degrees,
                                   int zPos,
                                   boolean clockWise)
Specified by:
pointFromCircle in interface IGraphics3D

pointInEllipse

public static boolean pointInEllipse(Point p,
                                     int left,
                                     int top,
                                     int right,
                                     int bottom)
Returns true if point P is inside the ellipse bounded by Left, Top, Right, Bottom.

Parameters:
p - Point
left - int
top - int
right - int
bottom - int
Returns:
boolean

pointInEllipse

public static boolean pointInEllipse(Point p,
                                     Rectangle rect)
Returns true if point P is inside the ellipse bounded by Rect.

Parameters:
p - Point
rect - Rectangle
Returns:
boolean

pointInPolygon

public static boolean pointInPolygon(Point p,
                                     Point[] poly)
Returns true if point P is inside Poly polygon.

Parameters:
p - Point
poly - Point[]
Returns:
boolean

getIZoomfactor

protected double getIZoomfactor()

setIZoomfactor

protected void setIZoomfactor(double value)

getXCenter

public 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.

Specified by:
getXCenter in interface IGraphics3D
Returns:
int

setXCenter

public void setXCenter(int 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.

Specified by:
setXCenter in interface IGraphics3D
Parameters:
value - int

getYCenter

public 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.

Specified by:
getYCenter in interface IGraphics3D
Returns:
int

setYCenter

public void setYCenter(int 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.

Specified by:
setYCenter in interface IGraphics3D
Parameters:
value - int

getSmoothingMode

public 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.

Specified by:
getSmoothingMode in interface IGraphics3D
Returns:
boolean

setSmoothingMode

public void setSmoothingMode(boolean 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.

Specified by:
setSmoothingMode in interface IGraphics3D
Parameters:
value - boolean

getTextSmooth

public boolean getTextSmooth()
Chooses between speed or display quality for Text rendering.

Specified by:
getTextSmooth in interface IGraphics3D
Returns:
boolean

setTextSmooth

public void setTextSmooth(boolean value)
Specified by:
setTextSmooth in interface IGraphics3D

getSupports3DText

public boolean getSupports3DText()
Returns if Canvas supports 3D Text or not.

Specified by:
getSupports3DText in interface IGraphics3D
Returns:
boolean

calculate3DPosition

public Point calculate3DPosition(Point3D P)
Calculates and returns the XY position in pixels of the XYZ 3D coordinate.

Parameters:
P - Point3D
Returns:
Point

calculate3DPosition

public Point calculate3DPosition(int x,
                                 int y,
                                 int z)
Calculates and returns the XY position in pixels of the XYZ 3D coordinate.

Specified by:
calculate3DPosition in interface IGraphics3D
Parameters:
x - int
y - int
z - int
Returns:
Point

calculate3DPosition

public Point calculate3DPosition(Point P,
                                 int z)
Calculates and returns the XY position in pixels of the XYZ 3D coordinate.

Parameters:
P - Point
z - int
Returns:
Point

calculate2DPosition

public Point calculate2DPosition(Point p,
                                 int z)

calculate2DPosition

public Point calculate2DPosition(int x,
                                 int y,
                                 int z)
Calculates and returns the XY position in pixels of the coordinate.

Specified by:
calculate2DPosition in interface IGraphics3D
Parameters:
x - int
y - int
z - int
Returns:
Point

calcArcAngles

public void calcArcAngles(int x1,
                          int y1,
                          int x2,
                          int y2,
                          int x3,
                          int y3,
                          int x4,
                          int y4,
                          double startAngle,
                          double sweepAngle)

calcArcPoints

public void calcArcPoints(int x1,
                          int y1,
                          int x2,
                          int y2,
                          double startAngle,
                          double sweepAngle,
                          int x3,
                          int y3,
                          int x4,
                          int y4)

calc3DPoint

public Point calc3DPoint(Point3D p)
Specified by:
calc3DPoint in interface IGraphics3D

calc3DPoint

public Point calc3DPoint(int x,
                         int y,
                         int z)
Specified by:
calc3DPoint in interface IGraphics3D

calc3DPoint

public Point calc3DPoint(Point p,
                         int z)
Specified by:
calc3DPoint in interface IGraphics3D

calc3DPos

public Point calc3DPos(Point3D 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.

Specified by:
calc3DPos in interface IGraphics3D
Parameters:
source - Point3D
Returns:
Point

calc3DPos

public Point calc3DPos(Point source,
                       int 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.

Specified by:
calc3DPos in interface IGraphics3D
Parameters:
source - Point
z - int
Returns:
Point

calc3DPos

public void calc3DPos(Point result,
                      Point 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.

Specified by:
calc3DPos in interface IGraphics3D
Parameters:
source - Point

calc3DPos

public void calc3DPos(Point p,
                      int x,
                      int y,
                      int 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.

Specified by:
calc3DPos in interface IGraphics3D
Parameters:
x - int
y - int
z - int

calc3DPos

public Point calc3DPos(int x,
                       int y,
                       int z)

calc3DPos

public void calc3DPos(PointDouble point,
                      double x,
                      double y,
                      double z)

calc3DPos

public void calc3DPos(PointDouble point,
                      int x,
                      int y,
                      int z)
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.


transparentColor

public static Color transparentColor(int transparency,
                                     Color color)
Returns Color parameter after changing its "A" value.

Parameters:
transparency - int from 0 to 100
color - Color
Returns:
Color with transparency percentage applied.

transparency

public static int transparency(Color color)
Returns percentage based on Color "A" value.
It is a value between 0 and 100 which sets the transparency percentage with respect foreground to background.

Parameters:
color - Color
Returns:
int percentage from 0 to 100%

calcRect3D

public Rectangle calcRect3D(Rectangle r,
                            int z)
Calculates and returns the position in pixels of the Rectangle 3D coordinates.

Specified by:
calcRect3D in interface IGraphics3D
Parameters:
r - Rectangle
z - int
Returns:
Rectangle

fourPointsFromRect

public Point[] fourPointsFromRect(Rectangle r,
                                  int z)
Returns an array of four Point objects

Specified by:
fourPointsFromRect in interface IGraphics3D
Parameters:
r - Rectangle
z - int
Returns:
Point[]

rectFromRectZ

public Rectangle rectFromRectZ(Rectangle r,
                               int z)
Returns the smallest bounding rectangle containing the four corners of the "R" rectangle after calculating their 3D position.

Specified by:
rectFromRectZ in interface IGraphics3D
Parameters:
r - Rectangle
z - int
Returns:
Rectangle

moveTo

public abstract void moveTo(int x,
                            int y)
Sets the value of PenPos to x and y co-ordinates before calling LineTo.

Specified by:
moveTo in interface IGraphics3D
Parameters:
x - int
y - int

moveTo

public void moveTo(Point p)
Sets the value of PenPos to Point p before calling LineTo.

Specified by:
moveTo in interface IGraphics3D
Parameters:
p - Point

moveTo

public void moveTo(int x,
                   int y,
                   int z)
Sets the value of PenPos to x, y and z co-ordinates before calling LineTo.

Specified by:
moveTo in interface IGraphics3D
Parameters:
x - int
y - int
z - int

moveTo

public void moveTo(Point p,
                   int z)
Sets the value of PenPos to Point p with z depth offset before calling LineTo.

Specified by:
moveTo in interface IGraphics3D
Parameters:
p - Point
z - int

moveTo

public void moveTo(Point3D p)
Sets the value of PenPos to 3D Point p before calling LineTo.

Specified by:
moveTo in interface IGraphics3D
Parameters:
p - Point3D

lineTo

public void lineTo(Point p,
                   int z)
Draws a line to Point with z depth offset.

Specified by:
lineTo in interface IGraphics3D
Parameters:
p - Point
z - int

lineTo

public void lineTo(Point p)
Draws a line to Point with z = 0 depth offset.

Specified by:
lineTo in interface IGraphics3D
Parameters:
p - Point

lineTo

public void lineTo(int x,
                   int y,
                   int z)
Draws line from present position to end co-ordinates with z depth offset.

Specified by:
lineTo in interface IGraphics3D
Parameters:
x - int
y - int
z - int

lineTo

public void lineTo(Point3D p)
Draws a Line to 3D Point.

Specified by:
lineTo in interface IGraphics3D
Parameters:
p - Point3D

line

public void line(Point p0,
                 Point p1,
                 int z)
Draws a Line between point p0 and point p1 with Z offset.

Specified by:
line in interface IGraphics3D
Parameters:
p0 - Point Origin xy
p1 - Point Destination xy
z - int Depth offset

line

public void line(Point p0,
                 Point p1)
Draws a Line between point p0 and point p1.

Specified by:
line in interface IGraphics3D
Parameters:
p0 - Point is origin xy
p1 - Point is destination xy

line

public void line(int x0,
                 int y0,
                 int z0,
                 int x1,
                 int y1,
                 int z1)
Draws a Line between co-ordinates with different start/end z depth offset.

Specified by:
line in interface IGraphics3D
Parameters:
x0 - int
y0 - int
z0 - int
x1 - int
y1 - int
z1 - int

line

public void line(int x0,
                 int y0,
                 int x1,
                 int y1,
                 int z)
Draws a Line between co-ordinates with z depth offset.

Specified by:
line in interface IGraphics3D
Parameters:
x0 - int
y0 - int
x1 - int
y1 - int
z - int

verticalLine

public void verticalLine(int x,
                         int top,
                         int bottom,
                         int z)
Draws a Vertical Line from (X,Top) to (X,Bottom) at z depth position.

Specified by:
verticalLine in interface IGraphics3D
Parameters:
x - int
top - int
bottom - int
z - int

pie

public void pie(int xCenter,
                int yCenter,
                int xOffset,
                int yOffset,
                int xRadius,
                int yRadius,
                int z0,
                int z1,
                double startAngle,
                double endAngle,
                boolean darkSides,
                boolean drawSides,
                int donutPercent,
                int bevelPercent,
                EdgeStyle edgeStyle,
                boolean last)
Draws a 3D Pie slice using start Angle and end Angle and donut percent.

Specified by:
pie in interface IGraphics3D
Parameters:
xCenter - int
yCenter - int
xRadius - int
yRadius - int
z0 - int
z1 - int
startAngle - double
endAngle - double
darkSides - boolean
drawSides - boolean
donutPercent - int public void pie(int xCenter, int yCenter, int xRadius, int yRadius, int z0, int z1, final double startAngle, final double endAngle, boolean darkSides, boolean drawSides, int donutPercent) { if (pie3D == null) { pie3D = new Pie3D(this); } }

lineWithZ

public void lineWithZ(int x,
                      int y,
                      int x1,
                      int y1,
                      int z)
Obsolete. Use Line method instead.

Parameters:
x - int
y - int
x1 - int
y1 - int
z - int

arc

public void arc(Rectangle rect,
                double startAngle,
                double sweepAngle)
Specified by:
arc in interface IGraphics3D

arc

public abstract void arc(int x1,
                         int y1,
                         int x2,
                         int y2,
                         double startAngle,
                         double sweepAngle)
Specified by:
arc in interface IGraphics3D

arc

public void arc(Rectangle rect,
                Point start,
                Point end)
Specified by:
arc in interface IGraphics3D

rad2Deg

protected static double rad2Deg(double radian)

arc

public abstract void arc(int x1,
                         int y1,
                         int x2,
                         int y2,
                         int x3,
                         int y3,
                         int x4,
                         int y4)
Use Arc to draw an elliptically curved line with the current Pen.

Parameters:
x1 - int
y1 - int
x2 - int
y2 - int
x3 - int
y3 - int
x4 - int
y4 - int

ellipse

public void ellipse(Rectangle r)
Draws an Ellipse bounding Rectangle r.

Specified by:
ellipse in interface IGraphics3D
Parameters:
r - Rectangle

ellipse

public void ellipse(Rectangle r,
                    int z)
Ellipse bounding Rectangle r at z depth.

Specified by:
ellipse in interface IGraphics3D
Parameters:
r - Rectangle
z - int

transparentEllipse

protected abstract void transparentEllipse(int x1,
                                           int y1,
                                           int x2,
                                           int y2)

transparentEllipse

public void transparentEllipse(int x1,
                               int y1,
                               int x2,
                               int y2,
                               int z)
Specified by:
transparentEllipse in interface IGraphics3D

transparentEllipse

protected void transparentEllipse(Point p0,
                                  Point p1)

ellipse

public void ellipse(int x1,
                    int y1,
                    int x2,
                    int y2,
                    int z)
Ellipse bounding Rect (X1,Y1,X2,Y2) at Z position.

Specified by:
ellipse in interface IGraphics3D
Parameters:
x1 - int
y1 - int
x2 - int
y2 - int
z - int

ellipse

public void ellipse(Point p0,
                    Point p1)

ellipse

public void ellipse(Rectangle r,
                    int z,
                    double angle)
Ellipse bounding rectangle r with Z offset at angle.

Specified by:
ellipse in interface IGraphics3D
Parameters:
r - Rectangle
z - int
angle - double

fillRectangle

public abstract void fillRectangle(ChartBrush brush,
                                   int x,
                                   int y,
                                   int width,
                                   int height)

ellipse

public void ellipse(int x1,
                    int y1,
                    int x2,
                    int y2,
                    boolean enhanced)
Specified by:
ellipse in interface IGraphics3D

ellipse

public void ellipse(int x1,
                    int y1,
                    int x2,
                    int y2,
                    int z,
                    boolean enhanced)
Enhanced Ellipse bounding rectangle (X1,Y1,X2,Y2) at Z position.

Specified by:
ellipse in interface IGraphics3D
Parameters:
x1 - int
y1 - int
x2 - int
y2 - int
z - int
enhanced - boolean

ellipseEnh

public abstract void ellipseEnh(int x1,
                                int y1,
                                int x2,
                                int y2)

sphere

public void sphere(int x0,
                   int y0,
                   int x1,
                   int y1)
Specified by:
sphere in interface IGraphics3D

sphere

public void sphere(int x,
                   int y,
                   int z,
                   int radius,
                   boolean enhanced)
Specified by:
sphere in interface IGraphics3D

sphere

public void sphere(int x1,
                   int y1,
                   int x2,
                   int y2,
                   int z,
                   boolean enhanced)

sphere

public void sphere(Rectangle rect,
                   int z,
                   boolean enhanced)
Specified by:
sphere in interface IGraphics3D

sphereEnh

protected abstract void sphereEnh(int x1,
                                  int y1,
                                  int x2,
                                  int y2)

ellipse

public abstract void ellipse(int x1,
                             int y1,
                             int x2,
                             int y2)
Specified by:
ellipse in interface IGraphics3D

plane

public void plane(Point p1,
                  Point p2,
                  Point p3,
                  Point p4,
                  int z)
Draws a polygon (Point p1, Point p2, Point p3, Point p4) at Z depth offset.

Specified by:
plane in interface IGraphics3D
Parameters:
p1 - Point
p2 - Point
p3 - Point
p4 - Point
z - int

plane

public void plane(Point p1,
                  Point p2,
                  int z0,
                  int z1)
Draws a polygon (Point p1, Point p2) at Z depth offset.

Specified by:
plane in interface IGraphics3D
Parameters:
p1 - Point
p2 - Point
z0 - int
z1 - int

plane

public void plane(int z0,
                  int z1,
                  Point[] p)
Draws a polygon using points array p with different start/end z depth offset.

Parameters:
z0 - int
z1 - int
p - Point[]

textOut

public void textOut(int x,
                    int y,
                    java.lang.String text)
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.

Specified by:
textOut in interface IGraphics3D
Parameters:
x - int
y - int
text - String

textOut

public void textOut(int x,
                    int y,
                    int z,
                    java.lang.String text)
Displays 2D non-rotated label at the specified x,y and z screen coordinates.
Text is outputted to the correct internal Drawing Canvas.
The X and Y coordinates must be valid and fit inside the Chart rectangle. It uses the current Chart.Drawing.Font attributes.
Writes text at the named co-ordinates.

Specified by:
textOut in interface IGraphics3D
Parameters:
x - int
y - int
z - int
text - String

textOut

public void textOut(Point p,
                    java.lang.String text)

roundRectangle

public void roundRectangle(Rectangle r)
Draws a rectangle with rounded corners of personalized curvature and size.

Specified by:
roundRectangle in interface IGraphics3D
Parameters:
r - Rectangle

rectCenter

public static Point rectCenter(Rectangle r)

getRectCenter

public static int[] getRectCenter(Rectangle r)

calcPerspective

public void calcPerspective(Rectangle r)
Specified by:
calcPerspective in interface IGraphics3D

projection

public void projection(int maxDepth,
                       Rectangle r)
Internal use. Calculates the projection co-ordinates for rectangle Bounds.

Specified by:
projection in interface IGraphics3D
Parameters:
maxDepth - int is the max shape depth
r - Rectangle is the projected shape rectangle

pyramid

public void pyramid(boolean vertical,
                    Rectangle r,
                    int z0,
                    int z1,
                    boolean darkSides)
Draws a vertical or horizontal Pyramid with optional dark shaded sides.

Specified by:
pyramid in interface IGraphics3D
Parameters:
vertical - boolean
r - Rectangle
z0 - int
z1 - int
darkSides - boolean

pyramid

public void pyramid(boolean vertical,
                    int left,
                    int top,
                    int right,
                    int bottom,
                    int z0,
                    int z1,
                    boolean darkSides)
Draws a vertical or horizontal Pyramid with optional dark shaded sides.

Specified by:
pyramid in interface IGraphics3D
Parameters:
vertical - boolean
left - int
top - int
right - int
bottom - int
z0 - int
z1 - int
darkSides - boolean

planeFour3D

public void planeFour3D(int z0,
                        int z1,
                        Point[] p)
Draws a polygon of four points.

Specified by:
planeFour3D in interface IGraphics3D
Parameters:
z0 - int
z1 - int
p - Point[]

eraseBackground

public abstract void eraseBackground(int left,
                                     int top,
                                     int right,
                                     int bottom)

rectangle

public abstract void rectangle(Rectangle r)
Specified by:
rectangle in interface IGraphics3D

roundRectangle

public abstract void roundRectangle(Rectangle r,
                                    int roundWidth,
                                    int roundHeight)
Specified by:
roundRectangle in interface IGraphics3D

getBackColor

public 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.

Returns:
Color

setBackColor

public void setBackColor(Color value)
Specified by:
setBackColor in interface IGraphics3D

getSupportsFullRotation

public boolean getSupportsFullRotation()
Returns if Canvas can do rotation and elevation of more than 90 degree.

Specified by:
getSupportsFullRotation in interface IGraphics3D
Returns:
boolean

getUseBuffer

public boolean getUseBuffer()
Draws items to a canvas to prevent flickering on screen.

Returns:
boolean

setUseBuffer

public void setUseBuffer(boolean value)

getRotationCenter

public Point3D getRotationCenter()
Sets the Pixel location (using X,Y,Z) of the centre of rotation for use with the Aspect Rotation and Elevation properties.

Returns:
Point3D

setRotationCenter

public void setRotationCenter(Point3D value)

getChartXCenter

public int getChartXCenter()
Returns the center Horizontal coordinate of the Chart.
This IS NOT the same as Chart1.Width / 2, because Chart margins, Axis margins, Legend width, etc are first subtracted from the Chart horizontal size.
In other words, Pie Series uses ChartXCenter for the Pie center.

Returns:
int

getChartYCenter

public int getChartYCenter()
Returns the middle Vertical coordinate of the Chart.
This IS NOT the same as Chart1.Width / 2, because Chart margins, Axis margins, Legend width, etc are first subtracted from the Chart horizontal size.
In other words, Pie Series uses ChartXCenter for the Pie center.

Returns:
int

fontTextHeight

public int fontTextHeight(ChartFont f)
Determines the Font Height to be used for outputted text when using the Drawing.

Specified by:
fontTextHeight in interface IGraphics3D
Parameters:
f - ChartFont
Returns:
int

getFontHeight

public int getFontHeight()
Defines the Height of the Font in pixels.

Specified by:
getFontHeight in interface IGraphics3D
Returns:
int

polygonFourDouble

public void polygonFourDouble()

rectangleZ

public void rectangleZ(int left,
                       int top,
                       int bottom,
                       int z0,
                       int z1)
Horizontal Rectangle from Left to Right, from Z0 to Z1 position, at Top Y.

Specified by:
rectangleZ in interface IGraphics3D
Parameters:
left - int
top - int
bottom - int
z0 - int
z1 - int

rectangleY

public void rectangleY(int left,
                       int top,
                       int right,
                       int z0,
                       int z1)
Horizontal Rectangle from Left to Right, from Z0 to Z1 position, at Top Y.

Specified by:
rectangleY in interface IGraphics3D
Parameters:
left - int
top - int
right - int
z0 - int
z1 - int

rectangleWithZ

public void rectangleWithZ(Rectangle r,
                           int z)
Obsolete. Please use Rectangle method instead.

Parameters:
r - Rectangle
z - int

rectangle

public void rectangle(int left,
                      int top,
                      int right,
                      int bottom,
                      int z)
Draws a rectangle between the defined co-ordinates with z depth.

Specified by:
rectangle in interface IGraphics3D
Parameters:
left - int
top - int
right - int
bottom - int
z - int

rectangle

public void rectangle(Rectangle r,
                      int z)
Draws a Rectangle (Rectangle r) at z depth.

Specified by:
rectangle in interface IGraphics3D
Parameters:
r - Rectangle
z - int

draw

public abstract void draw(Rectangle r,
                          Image image,
                          boolean transparent)
Specified by:
draw in interface IGraphics3D

pie

public abstract void pie(int x1,
                         int y1,
                         int x2,
                         int y2,
                         double startAngle,
                         double endAngle)

polygon

public abstract void polygon(Point[] p)
Specified by:
polygon in interface IGraphics3D

polygon

public abstract void polygon(PointDouble[] p)
Specified by:
polygon in interface IGraphics3D

fillPieSegment

public abstract boolean fillPieSegment(int x1,
                                       int y1,
                                       int x2,
                                       int y2,
                                       int sd,
                                       int rd,
                                       int cl)

polygon

public void polygon(Point3D[] p)
Specified by:
polygon in interface IGraphics3D

polygon

public void polygon(PointDouble[] p,
                    int size)

polygon

public void polygon(int z,
                    Point[] p)
Draws a polygon with z position offset.

Specified by:
polygon in interface IGraphics3D
Parameters:
z - int
p - Point[]

polygon

public void polygon(Point p0,
                    Point p1,
                    Point p2)

cone

public void cone(boolean vertical,
                 int left,
                 int top,
                 int right,
                 int bottom,
                 int z0,
                 int z1,
                 boolean darkSides,
                 int conePercent)
Specified by:
cone in interface IGraphics3D

cone

public void cone(boolean vertical,
                 int left,
                 int top,
                 int right,
                 int bottom,
                 int z0,
                 int z1,
                 boolean darkSides)
Paints a cone. Use
ONLY with OPENGL.

Specified by:
cone in interface IGraphics3D
Parameters:
vertical - boolean
left - int
top - int
right - int
bottom - int
z0 - int
z1 - int
darkSides - boolean

cone

public void cone(boolean vertical,
                 Rectangle r,
                 int z0,
                 int z1,
                 boolean darkSides)
Paints a cone.

Parameters:
vertical - boolean
r - Rectangle
z0 - int
z1 - int
darkSides - boolean

cone

public void cone(boolean vertical,
                 Rectangle r,
                 int z0,
                 int z1,
                 boolean darkSides,
                 int conePercent)
Paints a cone with Cone Percent.
Use
ONLY with OPENGL.
This parameter varies the apex size as a percentage of the base.

Specified by:
cone in interface IGraphics3D
Parameters:
vertical - boolean
r - Rectangle
z0 - int
z1 - int
darkSides - boolean
conePercent - int varies the apex size as a percentage of the base.

convexHull

public int convexHull(Point[] p)
Calculates the boundary points of the convex hull of a set of 2D xy points. Original

Specified by:
convexHull in interface IGraphics3D
Parameters:
p - Point[]
Returns:
int

cylinder

public void cylinder(boolean vertical,
                     Rectangle r,
                     int z0,
                     int z1,
                     boolean darkSides)
Draws cylinder toggle Boolean for vertical or horizontal cylinder.

Specified by:
cylinder in interface IGraphics3D
Parameters:
vertical - boolean
r - Rectangle
z0 - int
z1 - int
darkSides - boolean

crossingLines

public static LineCross crossingLines(double x1,
                                      double y1,
                                      double x2,
                                      double y2,
                                      double x3,
                                      double y3,
                                      double x4,
                                      double y4)
Returns true if two lines cross.

Parameters:
x1 - double
y1 - double
x2 - double
y2 - double
x3 - double
y3 - double
x4 - double
y4 - double
Returns:
LineCross

cube

public void cube(Rectangle r,
                 int z0,
                 int z1)
Draws a Cube.

Parameters:
r - Rectangle
z0 - int
z1 - int

cube

public void cube(Rectangle r,
                 int z0,
                 int z1,
                 boolean darkSides)
Draws a Cube with Dark Sides.

Specified by:
cube in interface IGraphics3D
Parameters:
r - Rectangle
z0 - int
z1 - int
darkSides - boolean

cube

public void cube(int left,
                 int top,
                 int right,
                 int bottom,
                 int z0,
                 int z1,
                 boolean darkSides)
Draws a Cube with Dark Sides.

Specified by:
cube in interface IGraphics3D
Parameters:
left - int
top - int
right - int
bottom - int
z0 - int
z1 - int
darkSides - boolean

sliceArray

public static Point[] sliceArray(Point[] source,
                                 int length)

sliceArray

public static PointDouble[] sliceArray(PointDouble[] source,
                                       int length)

donut

public void donut(int xCenter,
                  int yCenter,
                  int xRadius,
                  int yRadius,
                  double startAngle,
                  double endAngle,
                  int holePercent)
Draws a Donut slice.

Specified by:
donut in interface IGraphics3D
Parameters:
xCenter - int center horizontal position
yCenter - int center vertical position
xRadius - int horizontal radius
yRadius - int vertical radius
startAngle - double angle from 0 to 360 of slice begin
endAngle - double angle from 0 to 360 of slice end
holePercent - int percent from 0 to 100 of donut center hole

arrow

public void arrow(boolean filled,
                  Point fromPoint,
                  Point toPoint,
                  int headWidth,
                  int headHeight,
                  int z)
Draws a line with an arrow head of ArrowWidth and ArrowHeight dimensions in pixels.

Specified by:
arrow in interface IGraphics3D
Parameters:
filled - boolean
fromPoint - Point
toPoint - Point
headWidth - int
headHeight - int
z - int

calcTrigValues

public void calcTrigValues()
Specified by:
calcTrigValues in interface IGraphics3D

initWindow

public void initWindow(Aspect a,
                       Rectangle r,
                       int maxDepth)
Specified by:
initWindow in interface IGraphics3D

textHeight

public int textHeight(ChartFont f,
                      java.lang.String text)
Returns the vertical text size in pixels of ChartFont f.

Specified by:
textHeight in interface IGraphics3D
Parameters:
f - ChartFont
text - String
Returns:
int Height in pixels of ChartFont f.

textWidth

public int textWidth(ChartFont f,
                     java.lang.String text)
Returns the horizontal text size in pixels of ChartFont f.

Specified by:
textWidth in interface IGraphics3D
Parameters:
f - ChartFont
text - String
Returns:
int Width in pixels of ChartFont f.

textHeight

public int textHeight(java.lang.String text)
Returns the vertical size in pixels of the text String.

Specified by:
textHeight in interface IGraphics3D
Parameters:
text - String
Returns:
int Height in pixels of the text String.

textWidth

public int textWidth(java.lang.String text)
Returns the horizontal size in pixels of the text String.

Specified by:
textWidth in interface IGraphics3D
Parameters:
text - String
Returns:
int Width in pixels of the text String.

triangle

public void triangle(Point p0,
                     Point p1,
                     Point p2,
                     int z)
Draws a triangle (point p0, pointp1, pointp2) at Z position.

Specified by:
triangle in interface IGraphics3D
Parameters:
p0 - Point
p1 - Point
p2 - Point
z - int

triangle

public void triangle(Triangle3D p)
Draws a triangle (Triangle3D p).

Specified by:
triangle in interface IGraphics3D
Parameters:
p - Triangle3D

drawString

protected abstract void drawString(int x,
                                   int y,
                                   java.lang.String text,
                                   ChartBrush brush)

measureString

public abstract void measureString(Dimension size,
                                   ChartFont f,
                                   java.lang.String text)
Specified by:
measureString in interface IGraphics3D

zLine

public void zLine(int x,
                  int y,
                  int z0,
                  int z1)
Draws a Line from (X,Y,Z0) to (X,Y,Z1).

Specified by:
zLine in interface IGraphics3D
Parameters:
x - int
y - int
z0 - int
z1 - int

drawBeziers

public void drawBeziers(int z,
                        Point[] p)
Draws Bezier splines for the Point array p at displacement z

Specified by:
drawBeziers in interface IGraphics3D
Parameters:
z - int
p - Point[]

rotateLabel

public void rotateLabel(int x,
                        int y,
                        int z,
                        java.lang.String text,
                        double 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.

Specified by:
rotateLabel in interface IGraphics3D
Parameters:
x - int
y - int
z - int
text - String
rotDegree - double

rotateLabel

public void rotateLabel(Point p,
                        java.lang.String text,
                        double 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.

Parameters:
p - Point
text - String
rotDegree - double

pie

public void pie(int x1,
                int y1,
                int x2,
                int y2,
                int x3,
                int y3,
                int x4,
                int y4)
Draws a Pie slice.

Parameters:
x1 - int
y1 - int
x2 - int
y2 - int
x3 - int
y3 - int
x4 - int
y4 - int

horizontalLine

public void horizontalLine(int left,
                           int right,
                           int y,
                           int z)
Draws a Horizontal at z depth position.

Specified by:
horizontalLine in interface IGraphics3D
Parameters:
left - int
right - int
y - int
z - int

polygonRect

public static Rectangle polygonRect(Point[] p)
Returns bounding rectangle for point array p

Parameters:
p - Point[]
Returns:
Rectangle

sphere

public void sphere(int x,
                   int y,
                   int z,
                   double radius)

rectangle

public void rectangle(int left,
                      int top,
                      int right,
                      int bottom)
Draws a rectangle between the defined co-ordinates.

Specified by:
rectangle in interface IGraphics3D
Parameters:
left - int
top - int
right - int
bottom - int

ellipse

public void ellipse(int left,
                    int top,
                    int right,
                    int bottom,
                    int z,
                    double angle)
Ellipse bounding rectangle (Left, Top, Right, Bottom) with Z offset at angle.

Parameters:
left - int
top - int
right - int
bottom - int
z - int
angle - double

clipRectangle

public void clipRectangle(int left,
                          int top,
                          int right,
                          int bottom)
Creates a Windows GDI clipping region and selects it into TChart.Canvas device context handle.

Parameters:
left - int
top - int
right - int
bottom - int

clipRectangle

public abstract void clipRectangle(Rectangle r)
Specified by:
clipRectangle in interface IGraphics3D

correctRectangle

protected Rectangle correctRectangle(Rectangle r)

unClipRectangle

public void unClipRectangle()
Obsolete. Please use UnClip() method instead.


pyramidTrunc

public void pyramidTrunc(Rectangle r,
                         int startZ,
                         int endZ,
                         int truncX,
                         int truncZ)
Draws a pyramid with a truncated apex of variable thickness.

Specified by:
pyramidTrunc in interface IGraphics3D
Parameters:
r - Rectangle
startZ - int
endZ - int
truncX - int
truncZ - int

clipCube

public void clipCube(Rectangle rect,
                     int minZ,
                     int maxZ)
Creates a cubic Windows GDI clipping region.

Specified by:
clipCube in interface IGraphics3D
Parameters:
rect - Rectangle
minZ - int
maxZ - int

clipEllipse

public abstract void clipEllipse(Rectangle r)
Specified by:
clipEllipse in interface IGraphics3D

clipPolygon

public abstract void clipPolygon(Point[] p)
Specified by:
clipPolygon in interface IGraphics3D

draw

public void draw(Rectangle r,
                 Image image,
                 ImageMode mode,
                 boolean transparent)
Paints the image in rectangle r.

Specified by:
draw in interface IGraphics3D
Parameters:
r - Rectangle
image - Image
mode - ImageMode
transparent - boolean

horizontalLine

public abstract void horizontalLine(int left,
                                    int right,
                                    int y)
Specified by:
horizontalLine in interface IGraphics3D

pixel

public abstract void pixel(int x,
                           int y,
                           int z,
                           Color color)

polyLine

public void polyLine(int z,
                     Point[] p)
Draws a series of line segments to join point array p at z displacement.

Specified by:
polyLine in interface IGraphics3D
Parameters:
z - int
p - Point[]

polyLine

public abstract void polyLine(Point[] p)
Specified by:
polyLine in interface IGraphics3D

rotateLabel

public abstract void rotateLabel(int x,
                                 int y,
                                 java.lang.String text,
                                 double rotDegree)
Specified by:
rotateLabel in interface IGraphics3D

unClip

public abstract void unClip()
Specified by:
unClip in interface IGraphics3D

verticalLine

public abstract void verticalLine(int x,
                                  int top,
                                  int bottom)
Specified by:
verticalLine in interface IGraphics3D

line

public abstract void line(int x0,
                          int y0,
                          int x1,
                          int y1)
Specified by:
line in interface IGraphics3D

lineTo

public abstract void lineTo(int x,
                            int y)
Specified by:
lineTo in interface IGraphics3D

drawBeziers

public void drawBeziers(Point[] p)
Draws Bezier splines for the Point array p

Specified by:
drawBeziers in interface IGraphics3D
Parameters:
p - Point[]

prepareDrawImage

public abstract void prepareDrawImage()
Specified by:
prepareDrawImage in interface IGraphics3D

validState

public boolean validState()

paintBevel

public void paintBevel(BevelStyle bevel,
                       Rectangle rect,
                       int width,
                       Color one,
                       Color two)
Specified by:
paintBevel in interface IGraphics3D

orientRectangle

public Rectangle orientRectangle(Rectangle rect)
Specified by:
orientRectangle in interface IGraphics3D

fillRectangle

public void fillRectangle(Rectangle rect)

paintImageBevel

public void paintImageBevel(Rectangle rect,
                            int width,
                            ChartPen pen,
                            ChartBrush brush,
                            int borderRound)
Specified by:
paintImageBevel in interface IGraphics3D

rectangle

public abstract void rectangle(ChartBrush b,
                               Rectangle r)
Specified by:
rectangle in interface IGraphics3D

rectangle

public void rectangle(ChartBrush b,
                      int x,
                      int y,
                      int right,
                      int bottom)

line

protected abstract void line(ChartPen p,
                             Point a,
                             Point b)

setGraphics

public abstract void setGraphics(java.lang.Object value)
Specified by:
setGraphics in interface IGraphics3D

setPixel

public abstract void setPixel(int x,
                              int y,
                              int z,
                              Color color)
Specified by:
setPixel in interface IGraphics3D

setDirty

public void setDirty(boolean value)
Specified by:
setDirty in interface IGraphics3D

drawBlur

public void drawBlur(Rectangle rect,
                     int smoothBlur,
                     boolean isEllipse)
Specified by:
drawBlur in interface IGraphics3D

drawBlur

public void drawBlur(PointDouble[] p,
                     int smoothBlur)
Specified by:
drawBlur in interface IGraphics3D