public class Graphics3DAWT extends Graphics3D
Title: Graphics3DAWT class
Description: Access to central Chart drawing elements
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Graphics3D.RoundRectangleStyleIGraphics3D.PieRect| Modifier and Type | Field and Description |
|---|---|
protected int |
currentX |
protected int |
currentY |
boolean |
dirty |
protected java.awt.Graphics2D |
g |
aspect, bounds, brush, DARKCOLORQUANTITY, DARKERCOLORQUANTITY, font, fourPoints, iPointDoubles, is3D, metafiling, monochrome, pen, smoothingMode, stringFormat, textSmoothchart, InternalUse| Constructor and Description |
|---|
Graphics3DAWT() |
Graphics3DAWT(IBaseChart c) |
| Modifier and Type | Method and Description |
|---|---|
void |
arc(int x1,
int y1,
int x2,
int y2,
double startAngle,
double sweepAngle)
Use Arc to draw an elliptically curved line with the current Pen.
|
void |
arc(int x1,
int y1,
int x2,
int y2,
int x3,
int y3,
int x4,
int y4)
Draws an arc in the rectangle defined by the 4 co-ordinates.
|
void |
clipEllipse(Rectangle r)
Creates a Elliptical Windows GDI clipping region.
ClipEllipse creates a Windows GDI clipping region and selects it into TChart.Drawing Canvas device context handle. |
void |
clipPolygon(Point[] p)
Creates a Polygonal Windows GDI clipping region.
ClipPolygon creates a Windows GDI clipping region and selects it into TChart.Drawing Canvas device context handle. |
void |
clipRectangle(Rectangle r)
Creates a rectangular Windows GDI clipping region.
ClipRectangle creates a Windows GDI clipping region and selects it into TChart.Drawing Canvas device context handle. |
void |
draw(int x,
int y,
Image image)
Paints the image at x,y coordinates.
It can also be used to Print the Chart in a customized way: Or you can use the TeeChart Draw method to render an image at any location |
void |
draw(Rectangle r,
Image image,
boolean transparent,
boolean smoothed)
Paints the image in rectangle r.
It can also be used to Print the Chart in a customized way: Or you can use the TeeChart Draw method to render an image at any location. |
void |
drawBeziers(Point[] p)
Draws Bezier splines for the Point array p.
|
protected void |
drawBrushImage(Rectangle r) |
protected void |
drawString(int x,
int y,
java.lang.String text,
ChartBrush brush) |
void |
ellipse(int x1,
int y1,
int x2,
int y2)
Draws an Ellipse between the 2 co-ordinates.
|
void |
ellipseEnh(int x1,
int y1,
int x2,
int y2)
Internal use.
|
void |
eraseBackground(int left,
int top,
int right,
int bottom)
Clears background defined for Rectangle Left, Top, Right, Bottom.
|
boolean |
fillPieSegment(int x1,
int y1,
int x2,
int y2,
int sd,
int rd,
int cl) |
void |
fillRectangle(ChartBrush brush,
int x,
int y,
int width,
int height) |
java.awt.Shape |
getChartPolygon(Rectangle rect,
int minZ,
int maxZ) |
boolean |
getDirty() |
java.lang.Object |
getGraphics()
Accesses Drawing Graphics
|
static boolean |
hasAlpha(Image image) |
void |
horizontalLine(int left,
int right,
int y)
Draws a Horizontal Line.
|
void |
initWindow(Aspect a,
Rectangle r,
int maxDepth) |
protected void |
line(ChartPen p,
Point a,
Point b) |
void |
line(int x0,
int y0,
int x1,
int y1)
Draws a Line between co-ordinates.
|
void |
lineTo(int x,
int y)
Draws a line from the present PenPos to the new co-ordinates.
The Line method has 4 overloads to facilitate the setting of the end co-ordinate using Point p or int x, int y, both with or without a z parameter. |
void |
measureString(Dimension dimension,
ChartFont f,
java.lang.String text) |
void |
moveTo(int x,
int y)
Sets the value of PenPos to x and y co-ordinates before calling LineTo.
|
static void |
penPrepare(ChartPen pen,
java.awt.Graphics g) |
void |
pie(int x1,
int y1,
int x2,
int y2,
double startAngle,
double endAngle)
Draws a Pie slice using StartAngle and End Angle.
|
void |
pixel(int x,
int y,
int z,
Color color)
Sets the 3D pixel to Color, using Pen Width.
|
void |
polygon(ChartBrush brush,
Point[] points)
Draws a polygon using the specified GDI brush.
|
void |
polygon(Point[] p)
Draws a polygon.
|
void |
polygon(PointDouble[] points) |
void |
polyLine(Point[] p)
Draws a series of line segments to join point array p.
|
void |
prepareDrawImage() |
static void |
prepareGradient(Gradient gradient,
java.awt.Graphics2D g,
Rectangle rect)
Brush to fill rectangular area rect
|
void |
rectangle(ChartBrush b,
Rectangle r) |
void |
rectangle(Rectangle rect)
Draws a Rectangle (Rectangle r).
|
void |
resetState() |
void |
resetTransform() |
void |
rotateLabel(int x,
int y,
java.lang.String text,
double rotDegree)
Draws a rotated text String at the specified xy coordinates with the
RotDegree rotation angle.
RotDegree values must be between 0 and 360. |
void |
rotateTransform(Point p,
double rotDegree) |
void |
roundRectangle(Rectangle r)
Draws a rectangle with rounded corners of personalized curvature and
size.
|
void |
roundRectangle(Rectangle r,
int roundWidth,
int roundHeight)
Draws a rectangle with rounded corners of personalized curvature and
size.
|
protected void |
roundRectangle(Rectangle r,
int roundWidth,
int roundHeight,
java.awt.Graphics2D g) |
void |
setClip(java.awt.Shape region) |
void |
setDirty(boolean value) |
void |
setGraphics(java.lang.Object value) |
void |
setPen(ChartPen value)
Determines the kind of pen used to draw Canvas lines.
|
void |
setPixel(int x,
int y,
int z,
Color color) |
void |
showImage() |
int |
sizeToDIP(float value) |
int |
sizeToUnit(int unit,
float value) |
protected void |
sphereEnh(int x1,
int y1,
int x2,
int y2)
Internal use.
|
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. |
protected void |
transparentEllipse(int x1,
int y1,
int x2,
int y2) |
void |
unClip()
Removes any clipping region applied to Chart Drawing.
|
boolean |
validState() |
void |
verticalLine(int x,
int top,
int bottom)
Draws a Vertical Line from (X,Top) to (X,Bottom).
|
applyBright, applyDark, arc, arc, arrow, calc3DPoint, calc3DPoint, calc3DPoint, calc3DPos, calc3DPos, calc3DPos, calc3DPos, calc3DPos, calc3DPos, calc3DPos, calcArcAngles, calcArcPoints, calcPerspective, calcRect3D, calcTrigValues, calculate2DPosition, calculate2DPosition, calculate3DPosition, calculate3DPosition, calculate3DPosition, changed, clipCube, clipRectangle, cone, cone, cone, cone, convexHull, correctRectangle, crossingLines, cube, cube, cube, cull, cull, cylinder, donut, draw, draw, drawBeziers, drawBlur, drawBlur, drawBlur, ellipse, ellipse, ellipse, ellipse, ellipse, ellipse, ellipse, ellipse, fillRectangle, fontTextHeight, fourPointsFromRect, getAspect, getBackColor, getBrush, getChartXCenter, getChartYCenter, getClipRoundRectangle, getColorPalette, getColorPaletteLength, getDefaultColor, getDefaultPattern, getFont, getFontHeight, getGradient, getIZoomfactor, getMetafiling, getMonochrome, getPen, getPolygon, getRectCenter, getRotationCenter, getSmoothingMode, getSupports3DText, getSupportsFullRotation, getTextAlign, getTextSmooth, getUseBuffer, getXCenter, getYCenter, horizontalLine, line, line, line, line, lineTo, lineTo, lineTo, lineTo, lineWithZ, moveTo, moveTo, moveTo, moveTo, orientRectangle, paintBevel, paintImageBevel, pie, pie, plane, plane, plane, planeFour3D, pointAtDistance, pointFromCircle, pointFromCircle, pointFromCircle, pointFromEllipse, pointFromEllipse, pointFromSpiral, pointInEllipse, pointInEllipse, pointInHorizTriangle, pointInLineTolerance, pointInLineTolerance, pointInPolygon, pointInRect, pointInTriangle, polygon, polygon, polygon, polygon, polygonFourDouble, polygonRect, polyLine, projection, pyramid, pyramid, pyramidTrunc, rad2Deg, rectangle, rectangle, rectangle, rectangle, rectangleWithZ, rectangleY, rectangleZ, rectCenter, rectFromPolygon, rectFromRectZ, reset, restore, rotateLabel, rotateLabel, rotateRectangle, roundRectangle, roundRectangle, save, setBackColor, setBrush, setColorPalette, setFont, setGradient, setIZoomfactor, setMetafiling, setRotationCenter, setSmoothingMode, setTextAlign, setTextSmooth, setUseBuffer, setXCenter, setYCenter, sliceArray, sliceArray, sphere, sphere, sphere, sphere, sphere, textHeight, textHeight, textOut, textOut, textWidth, textWidth, transparency, transparentColor, transparentEllipse, transparentEllipse, triangle, triangle, unClipRectangle, verticalLine, zLinegetChart, invalidate, setBooleanProperty, setChart, setColorProperty, setDoubleProperty, setIntegerProperty, setStringPropertyprotected transient int currentX
protected transient int currentY
protected transient java.awt.Graphics2D g
public transient boolean dirty
public Graphics3DAWT()
public Graphics3DAWT(IBaseChart c)
public java.lang.Object getGraphics()
public void resetState()
public void showImage()
public boolean getDirty()
getDirty in interface IGraphics3DgetDirty in class Graphics3Dpublic void setDirty(boolean value)
setDirty in interface IGraphics3DsetDirty in class Graphics3Dpublic boolean validState()
validState in class Graphics3Dpublic void initWindow(Aspect a, Rectangle r, int maxDepth)
initWindow in interface IGraphics3DinitWindow in class Graphics3Dprotected void roundRectangle(Rectangle r, int roundWidth, int roundHeight, java.awt.Graphics2D g)
public static final void penPrepare(ChartPen pen, java.awt.Graphics g)
public void setPen(ChartPen value)
Graphics3DsetPen in interface IGraphics3DsetPen in class Graphics3Dvalue - ChartPenpublic void prepareDrawImage()
prepareDrawImage in interface IGraphics3DprepareDrawImage in class Graphics3Dpublic void setPixel(int x,
int y,
int z,
Color color)
setPixel in interface IGraphics3DsetPixel in class Graphics3Dpublic void measureString(Dimension dimension, ChartFont f, java.lang.String text)
measureString in interface IGraphics3DmeasureString in class Graphics3Dpublic void setClip(java.awt.Shape region)
public void setGraphics(java.lang.Object value)
setGraphics in interface IGraphics3DsetGraphics in class Graphics3Dpublic static void prepareGradient(Gradient gradient, java.awt.Graphics2D g, Rectangle rect)
gradient - Gradientg - Graphics2Drect - Rectangleprotected void line(ChartPen p, Point a, Point b)
line in class Graphics3Dpublic void lineTo(int x,
int y)
lineTo in interface IGraphics3DlineTo in class Graphics3Dx - inty - intpublic void line(int x0,
int y0,
int x1,
int y1)
line in interface IGraphics3Dline in class Graphics3Dx0 - inty0 - intx1 - inty1 - intpublic void verticalLine(int x,
int top,
int bottom)
verticalLine in interface IGraphics3DverticalLine in class Graphics3Dx - inttop - intbottom - intpublic void horizontalLine(int left,
int right,
int y)
horizontalLine in interface IGraphics3DhorizontalLine in class Graphics3Dleft - intright - inty - intpublic void drawBeziers(Point[] p)
drawBeziers in interface IGraphics3DdrawBeziers in class Graphics3Dp - Point[]public void roundRectangle(Rectangle r, int roundWidth, int roundHeight)
roundRectangle in interface IGraphics3DroundRectangle in class Graphics3Dr - RectangleroundWidth - introundHeight - intpublic void rectangle(ChartBrush b, Rectangle r)
rectangle in interface IGraphics3Drectangle in class Graphics3Dprotected void drawBrushImage(Rectangle r)
public void rectangle(Rectangle rect)
rectangle in interface IGraphics3Drectangle in class Graphics3Dr - Rectanglepublic void arc(int x1,
int y1,
int x2,
int y2,
double startAngle,
double sweepAngle)
arc in interface IGraphics3Darc in class Graphics3Dx1 - inty1 - intx2 - inty2 - intstartAngle - doublesweepAngle - doublepublic void arc(int x1,
int y1,
int x2,
int y2,
int x3,
int y3,
int x4,
int y4)
arc in class Graphics3Dx1 - inty1 - intx2 - inty2 - intx3 - inty3 - intx4 - inty4 - intprotected void transparentEllipse(int x1,
int y1,
int x2,
int y2)
transparentEllipse in class Graphics3Dpublic void ellipse(int x1,
int y1,
int x2,
int y2)
ellipse in interface IGraphics3Dellipse in class Graphics3Dx1 - inty1 - intx2 - inty2 - intpublic void roundRectangle(Rectangle r)
Graphics3DroundRectangle in interface IGraphics3DroundRectangle in class Graphics3Dr - Rectangleprotected void drawString(int x,
int y,
java.lang.String text,
ChartBrush brush)
drawString in class Graphics3Dpublic void textOut(int x,
int y,
java.lang.String text)
Graphics3DtextOut in interface IGraphics3DtextOut in class Graphics3Dx - inty - inttext - Stringpublic void clipRectangle(Rectangle r)
clipRectangle in interface IGraphics3DclipRectangle in class Graphics3Dr - Rectanglepublic void clipPolygon(Point[] p)
clipPolygon in interface IGraphics3DclipPolygon in class Graphics3Dp - Point[]public void unClip()
unClip in interface IGraphics3DunClip in class Graphics3Dpublic void clipEllipse(Rectangle r)
clipEllipse in interface IGraphics3DclipEllipse in class Graphics3Dr - Rectanglepublic void rotateLabel(int x,
int y,
java.lang.String text,
double rotDegree)
rotateLabel in interface IGraphics3DrotateLabel in class Graphics3Dx - inty - inttext - StringrotDegree - doublepublic void rotateTransform(Point p, double rotDegree)
public void resetTransform()
public void moveTo(int x,
int y)
moveTo in interface IGraphics3DmoveTo in class Graphics3Dx - inty - intpublic void pie(int x1,
int y1,
int x2,
int y2,
double startAngle,
double endAngle)
pie in class Graphics3Dx1 - inty1 - intx2 - inty2 - intstartAngle - doubleendAngle - doublepublic void eraseBackground(int left,
int top,
int right,
int bottom)
eraseBackground in class Graphics3Dleft - inttop - intright - intbottom - intpublic void fillRectangle(ChartBrush brush, int x, int y, int width, int height)
fillRectangle in class Graphics3Dpublic void pixel(int x,
int y,
int z,
Color color)
pixel in class Graphics3Dx - inty - intz - intcolor - Colorpublic void polyLine(Point[] p)
polyLine in interface IGraphics3DpolyLine in class Graphics3Dp - Point[]public boolean fillPieSegment(int x1,
int y1,
int x2,
int y2,
int sd,
int rd,
int cl)
fillPieSegment in class Graphics3Dpublic void polygon(ChartBrush brush, Point[] points)
brush - ChartBrushpoints - Point[]public void polygon(Point[] p)
polygon in interface IGraphics3Dpolygon in class Graphics3Dp - Point[]public void polygon(PointDouble[] points)
polygon in interface IGraphics3Dpolygon in class Graphics3Dpublic void draw(Rectangle r, Image image, boolean transparent, boolean smoothed)
r - Rectangleimage - Imagetransparent - booleansmoothed - booleanpublic void draw(int x,
int y,
Image image)
x - inty - intimage - Imagepublic static boolean hasAlpha(Image image)
public java.awt.Shape getChartPolygon(Rectangle rect, int minZ, int maxZ)
protected void sphereEnh(int x1,
int y1,
int x2,
int y2)
sphereEnh in class Graphics3Dx1 - inty1 - intx2 - inty2 - intpublic void ellipseEnh(int x1,
int y1,
int x2,
int y2)
ellipseEnh in class Graphics3Dx1 - inty1 - intx2 - inty2 - intpublic int sizeToDIP(float value)
public int sizeToUnit(int unit,
float value)