|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Graphics | +--com.cult3d.TextureGraphics
This is a graphics context that allow an application to draw onto off-screen images.
TextureImage
Method Summary | |
void |
clearRect(int x,
int y,
int width,
int height)
Clears the specified rectangle by filling it with the background color of the current drawing surface. |
void |
clipRect(int x,
int y,
int width,
int height)
Intersects the current clip with the specified rectangle. |
void |
copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
Not implemented in this version. |
java.awt.Graphics |
create()
Creates a new Graphics object that is a copy of this Graphics object. |
void |
dispose()
Dispose of the system resources used by this graphics context. |
void |
drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
Not implemented in this version. |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
|
boolean |
drawImage(java.awt.Image img,
int x,
int y,
java.awt.image.ImageObserver observer)
Draws the specified image at the specified coordinate (x, y). |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
Not implemented in this version. |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.image.ImageObserver observer)
Not implemented in this version. |
boolean |
drawImage(java.awt.Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
Not implemented in this version. |
boolean |
drawImage(java.awt.Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.image.ImageObserver observer)
Not implemented in this version. |
void |
drawLine(int x1,
int y1,
int x2,
int y2)
Draws a line between the coordinates (x1,y1) and (x2,y2) using the current color. |
void |
drawOval(int x,
int y,
int width,
int height)
Not implemented in this version. |
void |
drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
Draws the outline of a polygon defined by arrays of x coordinates and y coordinates using the current color. |
void |
drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
Draws a sequence of connected lines defined by arrays of x coordinates and y coordinates using the current color. |
void |
drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
Not implemented in this version. |
void |
drawString(java.lang.String str,
int x,
int y)
Draws the specified String using the current font and color. |
void |
fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
Not implemented in this version. |
void |
fillOval(int x,
int y,
int width,
int height)
Not implemented in this version. |
void |
fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
Not implemented in this version. |
void |
fillRect(int x,
int y,
int width,
int height)
Fills the specified rectangle with the current color. |
void |
fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
Not implemented in this version. |
java.awt.Shape |
getClip()
Return a Shape object representing the current clipping area. |
java.awt.Rectangle |
getClipBounds()
Returns the bounding rectangle of the current clipping area. |
java.awt.Color |
getColor()
Gets the current color. |
java.awt.Font |
getFont()
Gets the current font. |
java.awt.FontMetrics |
getFontMetrics(java.awt.Font f)
Gets the font metrics for the specified font. |
void |
setClip(int x,
int y,
int width,
int height)
Sets the current clip to the rectangle specified by the given coordinates. |
void |
setClip(java.awt.Shape clip)
Set the current clipping area to an arbitrary clip shape. |
void |
setColor(java.awt.Color c)
Sets the current color to the specified color. |
void |
setFont(java.awt.Font font)
Sets the font for all subsequent text rendering operations. |
void |
setPaintMode()
Sets the logical pixel operation function to the Paint, or overwrite mode. |
void |
setXORMode(java.awt.Color c1)
Not implemented in this version. |
void |
translate(int x,
int y)
Translates the origin of the graphics context to the point (x, y) in the current coordinate system. |
Methods inherited from class java.awt.Graphics |
create,
draw3DRect,
drawBytes,
drawChars,
drawPolygon,
drawRect,
drawString,
fill3DRect,
fillPolygon,
finalize,
getClipBounds,
getClipRect,
getFontMetrics,
hitClip,
toString |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public java.awt.Graphics create()
public void translate(int x, int y)
x
- the x coordinate of the new translation originy
- the y coordinate of the new translation originpublic java.awt.Color getColor()
setColor(java.awt.Color)
public void setColor(java.awt.Color c)
c
- the new rendering colorgetColor()
public void setPaintMode()
public void setXORMode(java.awt.Color c1)
public java.awt.Font getFont()
setFont(java.awt.Font)
public void setFont(java.awt.Font font)
font
- the specified fontgetFont()
,
drawString(java.lang.String, int, int)
,
Graphics.drawBytes(byte[], int, int, int, int)
,
Graphics.drawChars(char[], int, int, int, int)
public java.awt.FontMetrics getFontMetrics(java.awt.Font f)
f
- the specified fontgetFont()
public java.awt.Rectangle getClipBounds()
getClip()
,
clipRect(int, int, int, int)
,
setClip(int, int, int, int)
,
setClip(Shape)
public void clipRect(int x, int y, int width, int height)
x
- the x coordinate of the rectangle to intersect the clip withy
- the y coordinate of the rectangle to intersect the clip withwidth
- the width of the rectangle to intersect the clip withheight
- the height of the rectangle to intersect the clip withsetClip(int, int, int, int)
,
setClip(Shape)
public void setClip(int x, int y, int width, int height)
x
- the x coordinate of the new clip rectangley
- the y coordinate of the new clip rectanglewidth
- the width of the new clip rectangleheight
- the height of the new clip rectangleclipRect(int, int, int, int)
,
setClip(Shape)
public java.awt.Shape getClip()
getClipBounds()
,
clipRect(int, int, int, int)
,
setClip(int, int, int, int)
,
setClip(Shape)
public void setClip(java.awt.Shape clip)
getClip()
,
clipRect(int, int, int, int)
,
setClip(int, int, int, int)
public void copyArea(int x, int y, int width, int height, int dx, int dy)
public void drawLine(int x1, int y1, int x2, int y2)
x1
- the x coordinate of the start of the liney1
- the y coordinate of the start of the linex2
- the x coordinate of the end of the liney2
- the y coordinate of the end of the linepublic void fillRect(int x, int y, int width, int height)
x
- the x coordinate of the rectangle to be filledy
- the y coordinate of the rectangle to be filledwidth
- the width of the rectangle to be filledheight
- the height of the rectangle to be filledGraphics.drawRect(int, int, int, int)
,
clearRect(int, int, int, int)
public void clearRect(int x, int y, int width, int height)
x
- the x coordinate of the rectangle to cleary
- the y coordinate of the rectangle to clearwidth
- the width of the rectangle to clearheight
- the height of the rectangle to clearfillRect(int, int, int, int)
,
Graphics.drawRect(int, int, int, int)
public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
public void drawOval(int x, int y, int width, int height)
public void fillOval(int x, int y, int width, int height)
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)
public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)
xPoints
- an array of x pointsyPoints
- an array of y pointsnPoints
- the total number of pointsdrawPolygon(int[], int[], int)
public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
xPoints
- an array of x pointsyPoints
- an array of y pointsnPoints
- the total number of pointsdrawPolyline(int[], int[], int)
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
public void drawString(java.lang.String str, int x, int y)
str
- the String to be drawnx
- the x coordinate of the baseline of the texty
- the y coordinate of the baseline of the textpublic boolean drawImage(java.awt.Image img, int x, int y, java.awt.image.ImageObserver observer)
img
- the specified image to be drawnx
- the x coordinatey
- the y coordinateobserver
- ignoredpublic boolean drawImage(java.awt.Image img, int x, int y, int width, int height, java.awt.image.ImageObserver observer)
public boolean drawImage(java.awt.Image img, int x, int y, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
public boolean drawImage(java.awt.Image img, int x, int y, int width, int height, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
public boolean drawImage(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.image.ImageObserver observer)
public boolean drawImage(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
public void dispose()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |