|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.steema.teechart.TeeBase
com.steema.teechart.drawing.Graphics3D
com.steema.teechart.drawing.Graphics3DAWT
public class Graphics3DAWT
Title: Graphics3DAWT class
Description: Access to central Chart drawing elements
Copyright (c) 2005-2006 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
| Field Summary | |
|---|---|
protected int |
currentX
|
protected int |
currentY
|
boolean |
dirty
|
protected java.awt.Graphics2D |
g
|
| Fields inherited from class com.steema.teechart.drawing.Graphics3D |
|---|
aspect, bounds, brush, DARKCOLORQUANTITY, DARKERCOLORQUANTITY, DefaultPalette, font, fourPoints, metafiling, monochrome, pen, smoothingMode, stringFormat, textSmooth |
| Fields inherited from class com.steema.teechart.TeeBase |
|---|
chart |
| Constructor Summary | |
|---|---|
Graphics3DAWT()
|
|
Graphics3DAWT(IBaseChart c)
|
|
| Method Summary | |
|---|---|
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. |
java.awt.image.BufferedImage |
bufferedFrom(java.awt.Image image,
Color foreground)
|
void |
clipEllipse(Rectangle r)
Creates a Elliptical Windows GDI clipping region. |
void |
clipPolygon(java.awt.Point[] p)
Creates a Polygonal Windows GDI clipping region. |
void |
clipRectangle(Rectangle r)
Creates a rectangular Windows GDI clipping region. |
void |
draw(int x,
int y,
java.awt.Image image)
Paints the image at x,y coordinates. |
void |
draw(Rectangle r,
java.awt.Image image,
boolean transparent)
Paints the image in rectangle r. |
void |
drawBeziers(java.awt.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 |
eraseBackground(int left,
int top,
int right,
int bottom)
Clears background defined for Rectangle Left, Top, Right, Bottom. |
void |
fillRectangle(ChartBrush brush,
int x,
int y,
int width,
int height)
|
boolean |
getDirty()
|
java.lang.Object |
getGraphics()
Accesses Drawing Graphics |
java.lang.Object |
getImagePixels(java.awt.Image image)
getImagePixels |
static boolean |
hasAlpha(java.awt.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,
java.awt.Point a,
java.awt.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. |
java.awt.Dimension |
measureString(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,
java.awt.Point[] points)
Draws a polygon using the specified GDI brush. |
void |
polygon(java.awt.Point[] p)
Draws a polygon. |
void |
polyLine(java.awt.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 r)
Draws a Rectangle (Rectangle r). |
void |
resetState()
|
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. |
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()
|
void |
textOut(int x,
int y,
java.lang.String text)
Displays the 2D non-rotated label at the specified X Y screen coordinates. |
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). |
| Methods inherited from class com.steema.teechart.TeeBase |
|---|
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int currentX
protected int currentY
protected java.awt.Graphics2D g
public boolean dirty
| Constructor Detail |
|---|
public Graphics3DAWT()
public Graphics3DAWT(IBaseChart c)
| Method Detail |
|---|
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 Graphics3D
public void initWindow(Aspect a,
Rectangle r,
int maxDepth)
initWindow in interface IGraphics3DinitWindow in class Graphics3D
protected 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)
Graphics3D
setPen in interface IGraphics3DsetPen in class Graphics3Dvalue - ChartPenpublic void prepareDrawImage()
prepareDrawImage in interface IGraphics3DprepareDrawImage in class Graphics3D
public void setPixel(int x,
int y,
int z,
Color color)
setPixel in interface IGraphics3DsetPixel in class Graphics3D
public java.awt.Dimension measureString(ChartFont f,
java.lang.String text)
measureString in interface IGraphics3DmeasureString in class Graphics3Dpublic void setClip(java.awt.Shape region)
setClip in class Graphics3Dpublic void setGraphics(java.lang.Object value)
setGraphics in interface IGraphics3DsetGraphics in class Graphics3D
public static void prepareGradient(Gradient gradient,
java.awt.Graphics2D g,
Rectangle rect)
gradient - Gradientg - Graphics2Drect - Rectangle
protected void line(ChartPen p,
java.awt.Point a,
java.awt.Point b)
line in class Graphics3D
public void lineTo(int x,
int y)
lineTo in interface IGraphics3DlineTo in class Graphics3Dx - inty - int
public void line(int x0,
int y0,
int x1,
int y1)
line in interface IGraphics3Dline in class Graphics3Dx0 - inty0 - intx1 - inty1 - int
public void verticalLine(int x,
int top,
int bottom)
verticalLine in interface IGraphics3DverticalLine in class Graphics3Dx - inttop - intbottom - int
public void horizontalLine(int left,
int right,
int y)
horizontalLine in interface IGraphics3DhorizontalLine in class Graphics3Dleft - intright - inty - intpublic void drawBeziers(java.awt.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 - int
public void rectangle(ChartBrush b,
Rectangle r)
rectangle in interface IGraphics3Drectangle in class Graphics3Dprotected void drawBrushImage(Rectangle r)
public void rectangle(Rectangle r)
rectangle in interface IGraphics3Drectangle in class Graphics3Dr - Rectangle
public 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 - double
public 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 - int
protected void transparentEllipse(int x1,
int y1,
int x2,
int y2)
transparentEllipse in class Graphics3D
public 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)
Graphics3D
roundRectangle in interface IGraphics3DroundRectangle in class Graphics3Dr - Rectangle
protected void drawString(int x,
int y,
java.lang.String text,
ChartBrush brush)
drawString in class Graphics3D
public void textOut(int x,
int y,
java.lang.String text)
Graphics3D
textOut in interface IGraphics3DtextOut in class Graphics3Dx - inty - inttext - Stringpublic void clipRectangle(Rectangle r)
clipRectangle in interface IGraphics3DclipRectangle in class Graphics3Dr - Rectanglepublic void clipPolygon(java.awt.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 - Rectangle
public void rotateLabel(int x,
int y,
java.lang.String text,
double rotDegree)
rotateLabel in interface IGraphics3DrotateLabel in class Graphics3Dx - inty - inttext - StringrotDegree - double
public void moveTo(int x,
int y)
moveTo in interface IGraphics3DmoveTo in class Graphics3Dx - inty - int
public void pie(int x1,
int y1,
int x2,
int y2,
double startAngle,
double endAngle)
pie in class Graphics3Dx1 - inty1 - intx2 - inty2 - intstartAngle - doubleendAngle - double
public void eraseBackground(int left,
int top,
int right,
int bottom)
eraseBackground in class Graphics3Dleft - inttop - intright - intbottom - int
public void fillRectangle(ChartBrush brush,
int x,
int y,
int width,
int height)
fillRectangle in class Graphics3D
public void pixel(int x,
int y,
int z,
Color color)
pixel in class Graphics3Dx - inty - intz - intcolor - Colorpublic void polyLine(java.awt.Point[] p)
polyLine in interface IGraphics3DpolyLine in class Graphics3Dp - Point[]
public void polygon(ChartBrush brush,
java.awt.Point[] points)
brush - ChartBrushpoints - Point[]public void polygon(java.awt.Point[] p)
polygon in interface IGraphics3Dpolygon in class Graphics3Dp - Point[]
public void draw(Rectangle r,
java.awt.Image image,
boolean transparent)
draw in interface IGraphics3Ddraw in class Graphics3Dr - Rectangleimage - Imagetransparent - boolean
public void draw(int x,
int y,
java.awt.Image image)
x - inty - intimage - Imagepublic static boolean hasAlpha(java.awt.Image image)
public java.lang.Object getImagePixels(java.awt.Image image)
IGraphics3D
image - Image
public java.awt.image.BufferedImage bufferedFrom(java.awt.Image image,
Color foreground)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||