Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----java.awt.Graphics | +----java.awt.Graphics2D | +----java.awt.print.ProxyGraphics2D
Fields inherited from class java.awt.Graphics2D |
ANTIALIAS_DEFAULT, ANTIALIAS_OFF, ANTIALIAS_ON, ANTIALIASING, RENDER_DEFAULT, RENDER_QUALITY, RENDER_SPEED, RENDERING |
Constructor Summary | |
ProxyGraphics2D(Graphics2D graphics,
PageContext pageContext)
|
Method Summary | |
void | clearRect(int x,
int y,
int width,
int height)
|
void | clip(Shape s)
|
void | clipRect(int x,
int y,
int width,
int height)
|
void | copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
dx and dy .
|
Graphics | create()
Graphics object that is
a copy of this Graphics object.
|
void | dispose()
|
void | draw(Shape s)
|
void | drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
|
boolean | drawImage(Image img,
int x,
int y,
ImageObserver observer)
|
boolean | drawImage(Image img,
int x,
int y,
int width,
int height,
ImageObserver observer)
|
boolean | drawImage(Image img,
int x,
int y,
Color bgcolor,
ImageObserver observer)
|
boolean | drawImage(Image img,
int x,
int y,
int width,
int height,
Color bgcolor,
ImageObserver observer)
|
boolean | drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
ImageObserver observer)
|
boolean | drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
Color bgcolor,
ImageObserver observer)
|
void | drawImage(Image img,
AffineTransform xform,
ImageObserver obs)
|
void | drawImage(BufferedImage img,
BufferedImageOp op,
int x,
int y)
|
void | drawLine(int x1,
int y1,
int x2,
int y2)
(x1, y1) and (x2, y2)
in this graphics context's coordinate system.
|
void | drawOval(int x,
int y,
int width,
int height)
|
void | drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
|
void | drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
|
void | drawRenderableImage(RenderableImage img,
AffineTransform xfrom,
Hashtable renderHints,
Hashtable renderHintsObserved)
|
void | drawRenderedImage(RenderedImage img,
AffineTransform xform)
|
void | drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
|
void | drawString(String str,
int x,
int y)
|
void | drawString(String s,
float x,
float y)
|
void | drawString(StyledString s,
float x,
float y)
|
void | drawString(GlyphSet g,
float x,
float y)
|
void | drawString(TextLayout text,
float x,
float y)
|
void | fill(Shape s)
|
void | fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
|
void | fillOval(int x,
int y,
int width,
int height)
|
void | fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
|
void | fillRect(int x,
int y,
int width,
int height)
|
void | fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
|
Color | getBackground()
|
Shape | getClip()
|
Rectangle | getClipBounds()
|
Color | getColor()
|
Composite | getComposite()
|
Graphics2D | getDelegate()
|
GraphicsConfiguration | getDeviceConfiguration()
|
Font | getFont()
|
FontMetrics | getFontMetrics(Font f)
|
PageFormat | getPageFormat()
|
int | getPageIndex()
|
String | getPageName()
|
Printable | getPagePainter()
|
Paint | getPaint()
|
int | getRenderingHints(int hintCategory)
|
Stroke | getStroke()
|
AffineTransform | getTransform()
|
boolean | hit(Rectangle rect,
Shape s,
boolean onStroke)
|
boolean | hitString(Rectangle rect,
StyledString s,
float x,
float y)
|
void | rotate(double theta)
|
void | rotate(double theta,
double x,
double y)
|
void | scale(double sx,
double sy)
|
void | setBackground(Color color)
|
void | setClip(int x,
int y,
int width,
int height)
|
void | setClip(Shape clip)
|
void | setColor(Color c)
|
void | setComposite(Composite comp)
|
void | setDelegate(Graphics2D graphics)
|
void | setFont(Font font)
|
void | setPaint(Paint paint)
|
void | setPaintMode()
|
void | setRenderingHints(int hintCategory,
int hintValue)
|
void | setStroke(Stroke s)
|
void | setTransform(AffineTransform Tx)
|
void | setXORMode(Color c1)
|
void | shear(double shx,
double shy)
|
void | transform(AffineTransform Tx)
|
void | translate(int x,
int y)
|
void | translate(double tx,
double ty)
|
Methods inherited from class java.awt.Graphics2D |
clip, draw, drawImage, drawImage, drawRenderableImage, drawRenderedImage, drawString, drawString, drawString, drawString, fill, getBackground, getComposite, getDeviceConfiguration, getPaint, getRenderingHints, getStroke, getTransform, hit, hitString, rotate, rotate, scale, setBackground, setComposite, setPaint, setRenderingHints, setStroke, setTransform, shear, transform, translate, translate |
Methods inherited from class java.awt.Graphics |
clearRect, clipRect, copyArea, create, create, dispose, draw3DRect, drawArc, drawBytes, drawChars, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawPolygon, drawPolygon, drawPolyline, drawRect, drawRoundRect, drawString, fill3DRect, fillArc, fillOval, fillPolygon, fillPolygon, fillRect, fillRoundRect, finalize, getClip, getClipBounds, getClipBounds, getClipRect, getColor, getFont, getFontMetrics, getFontMetrics, hitClip, setClip, setClip, setColor, setFont, setPaintMode, setXORMode, toString, translate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProxyGraphics2D(Graphics2D graphics, PageContext pageContext)
Method Detail |
public Graphics2D getDelegate()
public void setDelegate(Graphics2D graphics)
public PageFormat getPageFormat()
public Printable getPagePainter()
public int getPageIndex()
public String getPageName()
public GraphicsConfiguration getDeviceConfiguration()
public Graphics create()
Graphics
object that is
a copy of this Graphics
object.public void translate(int x, int y)
x
- the x coordinate.
y
- the y coordinate.
public void translate(double tx, double ty)
[ 1 0 tx ] [ 0 1 ty ] [ 0 0 1 ]
public void rotate(double theta)
[ cos(theta) -sin(theta) 0 ] [ sin(theta) cos(theta) 0 ] [ 0 0 1 ]Rotating with a positive angle theta rotates points on the positive x axis toward the positive y axis.
theta
- The angle of rotation in radians.
public void rotate(double theta, double x, double y)
translate(x, y); rotate(theta); translate(-x, -y);Rotating with a positive angle theta rotates points on the positive x axis toward the positive y axis.
theta
- The angle of rotation in radians.
x
- The x coordinate of the origin of the rotation
y
- The x coordinate of the origin of the rotation
public void scale(double sx, double sy)
[ sx 0 0 ] [ 0 sy 0 ] [ 0 0 1 ]
public void shear(double shx, double shy)
[ 1 shx 0 ] [ shy 1 0 ] [ 0 0 1 ]
shx
- The factor by which coordinates are shifted towards the
positive X axis direction according to their Y coordinate
shy
- The factor by which coordinates are shifted towards the
positive Y axis direction according to their X coordinate
public Color getColor()
public void setColor(Color c)
c
- the new rendering color.
public void setPaintMode()
public void setXORMode(Color c1)
When drawing operations are performed, pixels which are the current color are changed to the specified color, and vice versa.
Pixels that are of colors other than those two colors are changed in an unpredictable but reversible manner; if the same figure is drawn twice, then all pixels are restored to their original values.
c1
- the XOR alternation color
public Font getFont()
public void setFont(Font font)
font
- the font.
public FontMetrics getFontMetrics(Font f)
f
- the specified font
public Rectangle getClipBounds()
public void clipRect(int x, int y, int width, int height)
x
- the x coordinate of the rectangle to intersect the clip with
y
- the y coordinate of the rectangle to intersect the clip with
width
- the width of the rectangle to intersect the clip with
height
- the height of the rectangle to intersect the clip with
public void setClip(int x, int y, int width, int height)
x
- the x coordinate of the new clip rectangle.
y
- the y coordinate of the new clip rectangle.
width
- the width of the new clip rectangle.
height
- the height of the new clip rectangle.
public Shape getClip()
Shape
object representing the
current clipping area.public void setClip(Shape clip)
Shape
interface can be used to set the clip. The only
Shape
objects which are guaranteed to be
supported are Shape
objects which are
obtained via the getClip
method and via
Rectangle
objects.public void copyArea(int x, int y, int width, int height, int dx, int dy)
dx
and dy
. From the point specified
by x
and y
, this method
copies downwards and to the right. To copy an area of the
component to the left or upwards, specify a negative value for
dx
or dy
.
If a portion of the source rectangle lies outside the bounds
of the component, or is obscured by another window or component,
copyArea
will be unable to copy the associated
pixels. The area that is omitted can be refreshed by calling
the component's paint
method.
x
- the x coordinate of the source rectangle.
y
- the y coordinate of the source rectangle.
width
- the width of the source rectangle.
height
- the height of the source rectangle.
dx
- the horizontal distance to copy the pixels.
dy
- the vertical distance to copy the pixels.
public void drawLine(int x1, int y1, int x2, int y2)
(x1, y1)
and (x2, y2)
in this graphics context's coordinate system.
x1
- the first point's x coordinate.
y1
- the first point's y coordinate.
x2
- the second point's x coordinate.
y2
- the second point's y coordinate.
public void fillRect(int x, int y, int width, int height)
x
and x + width - 1
.
The top and bottom edges are at
y
and y + height - 1
.
The resulting rectangle covers an area
width
pixels wide by
height
pixels tall.
The rectangle is filled using the graphics context's current color.
x
- the x coordinate
of the rectangle to be filled.
y
- the y coordinate
of the rectangle to be filled.
width
- the width of the rectangle to be filled.
height
- the height of the rectangle to be filled.
public void clearRect(int x, int y, int width, int height)
Beginning with Java 1.1, the background color
of offscreen images may be system dependent. Applications should
use setColor
followed by fillRect
to
ensure that an offscreen image is cleared to a specific color.
x
- the x coordinate of the rectangle to clear.
y
- the y coordinate of the rectangle to clear.
width
- the width of the rectangle to clear.
height
- the height of the rectangle to clear.
public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
x
and x + width
,
respectively. The top and bottom edges of the rectangle are at
y
and y + height
.
x
- the x coordinate of the rectangle to be drawn.
y
- the y coordinate of the rectangle to be drawn.
width
- the width of the rectangle to be drawn.
height
- the height of the rectangle to be drawn.
arcWidth
- the horizontal diameter of the arc
at the four corners.
arcHeight
- the vertical diameter of the arc
at the four corners.
public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
x
and x + width - 1
,
respectively. The top and bottom edges of the rectangle are at
y
and y + height - 1
.
x
- the x coordinate of the rectangle to be filled.
y
- the y coordinate of the rectangle to be filled.
width
- the width of the rectangle to be filled.
height
- the height of the rectangle to be filled.
arcWidth
- the horizontal diameter
of the arc at the four corners.
arcHeight
- the vertical diameter
of the arc at the four corners.
public void drawOval(int x, int y, int width, int height)
x
, y
,
width
, and height
arguments.
The oval covers an area that is
width + 1
pixels wide
and height + 1
pixels tall.
public void fillOval(int x, int y, int width, int height)
x
- the x coordinate of the upper left corner
of the oval to be filled.
y
- the y coordinate of the upper left corner
of the oval to be filled.
width
- the width of the oval to be filled.
height
- the height of the oval to be filled.
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)
The resulting arc begins at startAngle
and extends
for arcAngle
degrees, using the current color.
Angles are interpreted such that 0 degrees
is at the 3 o'clock position.
A positive value indicates a counter-clockwise rotation
while a negative value indicates a clockwise rotation.
The center of the arc is the center of the rectangle whose origin
is (x, y) and whose size is specified by the
width
and height
arguments.
The resulting arc covers an area
width + 1
pixels wide
by height + 1
pixels tall.
x
- the x coordinate of the
upper-left corner of the arc to be drawn.
y
- the y coordinate of the
upper-left corner of the arc to be drawn.
width
- the width of the arc to be drawn.
height
- the height of the arc to be drawn.
startAngle
- the beginning angle.
arcAngle
- the angular extent of the arc,
relative to the start angle.
public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
The resulting arc begins at startAngle
and extends
for arcAngle
degrees.
Angles are interpreted such that 0 degrees
is at the 3 o'clock position.
A positive value indicates a counter-clockwise rotation
while a negative value indicates a clockwise rotation.
The center of the arc is the center of the rectangle whose origin
is (x, y) and whose size is specified by the
width
and height
arguments.
The resulting arc covers an area
width + 1
pixels wide
by height + 1
pixels tall.
x
- the x coordinate of the
upper-left corner of the arc to be filled.
y
- the y coordinate of the
upper-left corner of the arc to be filled.
width
- the width of the arc to be filled.
height
- the height of the arc to be filled.
startAngle
- the beginning angle.
arcAngle
- the angular extent of the arc,
relative to the start angle.
public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)
xPoints
- an array of x points
yPoints
- an array of y points
nPoints
- the total number of points
public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
This method draws the polygon defined by nPoint
line
segments, where the first nPoint - 1
line segments are line segments from
(xPoints[i - 1], yPoints[i - 1])
to (xPoints[i], yPoints[i])
, for
1 ≤ i ≤ nPoints
.
The figure is automatically closed by drawing a line connecting
the final point to the first point, if those points are different.
xPoints
- a an array of x
coordinates.
yPoints
- a an array of y
coordinates.
nPoints
- a the total number of points.
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
This method draws the polygon defined by nPoint
line
segments, where the first nPoint - 1
line segments are line segments from
(xPoints[i - 1], yPoints[i - 1])
to (xPoints[i], yPoints[i])
, for
1 ≤ i ≤ nPoints
.
The figure is automatically closed by drawing a line connecting
the final point to the first point, if those points are different.
The area inside the polygon is defined using an even-odd fill rule, also known as the alternating rule.
xPoints
- a an array of x
coordinates.
yPoints
- a an array of y
coordinates.
nPoints
- a the total number of points.
public void drawString(String str, int x, int y)
str
- the string to be drawn.
x
- the x coordinate.
y
- the y coordinate.
public boolean drawImage(Image img, int x, int y, ImageObserver observer)
This method returns immediately in all cases, even if the complete image has not yet been loaded, and it has not been dithered and converted for the current output device.
If the image has not yet been completely loaded, then
drawImage
returns false
. As more of
the image becomes available, the process that draws the image notifies
the specified image observer.
img
- the specified image to be drawn.
x
- the x coordinate.
y
- the y coordinate.
observer
- object to be notified as more of
the image is converted.
public boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)
The image is drawn inside the specified rectangle of this graphics context's coordinate space, and is scaled if necessary. Transparent pixels do not affect whatever pixels are already there.
This method returns immediately in all cases, even if the
entire image has not yet been scaled, dithered, and converted
for the current output device.
If the current output representation is not yet complete, then
drawImage
returns false
. As more of
the image becomes available, the process that draws the image notifies
the image observer by calling its imageUpdate
method.
A scaled version of an image will not necessarily be available immediately just because an unscaled version of the image has been constructed for this output device. Each size of the image may be cached separately and generated from the original data in a separate image production sequence.
img
- the specified image to be drawn.
x
- the x coordinate.
y
- the y coordinate.
width
- the width of the rectangle.
height
- the height of the rectangle.
observer
- object to be notified as more of
the image is converted.
public boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)
This operation is equivalent to filling a rectangle of the width and height of the specified image with the given color and then drawing the image on top of it, but possibly more efficient.
This method returns immediately in all cases, even if the complete image has not yet been loaded, and it has not been dithered and converted for the current output device.
If the image has not yet been completely loaded, then
drawImage
returns false
. As more of
the image becomes available, the process that draws the image notifies
the specified image observer.
img
- the specified image to be drawn.
x
- the x coordinate.
y
- the y coordinate.
bgcolor
- the background color to paint under the
non-opaque portions of the image.
observer
- object to be notified as more of
the image is converted.
public boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)
The image is drawn inside the specified rectangle of this graphics context's coordinate space, and is scaled if necessary. Transparent pixels are drawn in the specified background color. This operation is equivalent to filling a rectangle of the width and height of the specified image with the given color and then drawing the image on top of it, but possibly more efficient.
This method returns immediately in all cases, even if the
entire image has not yet been scaled, dithered, and converted
for the current output device.
If the current output representation is not yet complete then
drawImage
returns false
. As more of
the image becomes available, the process that draws the image notifies
the specified image observer.
A scaled version of an image will not necessarily be available immediately just because an unscaled version of the image has been constructed for this output device. Each size of the image may be cached separately and generated from the original data in a separate image production sequence.
img
- the specified image to be drawn.
x
- the x coordinate.
y
- the y coordinate.
width
- the width of the rectangle.
height
- the height of the rectangle.
bgcolor
- the background color to paint under the
non-opaque portions of the image.
observer
- object to be notified as more of
the image is converted.
public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)
This method returns immediately in all cases, even if the
image area to be drawn has not yet been scaled, dithered, and converted
for the current output device.
If the current output representation is not yet complete then
drawImage
returns false
. As more of
the image becomes available, the process that draws the image notifies
the specified image observer.
This method always uses the unscaled version of the image to render the scaled rectangle and performs the required scaling on the fly. It does not use a cached, scaled version of the image for this operation. Scaling of the image from source to destination is performed such that the first coordinate of the source rectangle is mapped to the first coordinate of the destination rectangle, and the second source coordinate is mapped to the second destination coordinate. The subimage is scaled and flipped as needed to preserve those mappings.
img
- the specified image to be drawn
dx1
- the x coordinate of the first corner of the
destination rectangle.
dy1
- the y coordinate of the first corner of the
destination rectangle.
dx2
- the x coordinate of the second corner of the
destination rectangle.
dy2
- the y coordinate of the second corner of the
destination rectangle.
sx1
- the x coordinate of the first corner of the
source rectangle.
sy1
- the y coordinate of the first corner of the
source rectangle.
sx2
- the x coordinate of the second corner of the
source rectangle.
sy2
- the y coordinate of the second corner of the
source rectangle.
observer
- object to be notified as more of the image is
scaled and converted.
public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)
Transparent pixels are drawn in the specified background color. This operation is equivalent to filling a rectangle of the width and height of the specified image with the given color and then drawing the image on top of it, but possibly more efficient.
This method returns immediately in all cases, even if the
image area to be drawn has not yet been scaled, dithered, and converted
for the current output device.
If the current output representation is not yet complete then
drawImage
returns false
. As more of
the image becomes available, the process that draws the image notifies
the specified image observer.
This method always uses the unscaled version of the image to render the scaled rectangle and performs the required scaling on the fly. It does not use a cached, scaled version of the image for this operation. Scaling of the image from source to destination is performed such that the first coordinate of the source rectangle is mapped to the first coordinate of the destination rectangle, and the second source coordinate is mapped to the second destination coordinate. The subimage is scaled and flipped as needed to preserve those mappings.
img
- the specified image to be drawn
dx1
- the x coordinate of the first corner of the
destination rectangle.
dy1
- the y coordinate of the first corner of the
destination rectangle.
dx2
- the x coordinate of the second corner of the
destination rectangle.
dy2
- the y coordinate of the second corner of the
destination rectangle.
sx1
- the x coordinate of the first corner of the
source rectangle.
sy1
- the y coordinate of the first corner of the
source rectangle.
sx2
- the x coordinate of the second corner of the
source rectangle.
sy2
- the y coordinate of the second corner of the
source rectangle.
bgcolor
- the background color to paint under the
non-opaque portions of the image.
observer
- object to be notified as more of the image is
scaled and converted.
public void drawRenderedImage(RenderedImage img, AffineTransform xform)
img
- The image to be drawn.
xform
- The transformation from image space into user space.
public void drawRenderableImage(RenderableImage img, AffineTransform xfrom, Hashtable renderHints, Hashtable renderHintsObserved)
public void dispose()
Graphics
object cannot be used after
dispose
has been called.
When a Java program runs, a large number of Graphics
objects can be created within a short time frame.
Although the finalization process of the garbage collector
also disposes of the same system resources, it is preferable
to manually free the associated resources by calling this
method rather than to rely on a finalization process which
may not run to completion for a long period of time.
Graphics objects which are provided as arguments to the
paint
and update
methods
of components are automatically released by the system when
those methods return. For efficiency, programmers should
call dispose
when finished using
a Graphics
object only if it was created
directly from a component or another Graphics
object.
public void draw(Shape s)
s
- The shape to be drawn.
public void drawImage(Image img, AffineTransform xform, ImageObserver obs)
img
- The image to be drawn.
xform
- The transformation from image space into user space.
obs
- The image observer to be notified as more of the image
is converted.
public void drawImage(BufferedImage img, BufferedImageOp op, int x, int y)
img1 = op.filter(img, null); drawImage(img1, new AffineTransform(1f,0f,0f,1f,x,y), null);
op
- The filter to be applied to the image before drawing.
img
- The BufferedImage to be drawn.
x,y
- The location in user space where the image should be drawn.
public void drawString(String s, float x, float y)
s
- The string to be drawn.
x,y
- The coordinates where the string should be drawn.
public void drawString(StyledString s, float x, float y)
s
- The StyledString to be drawn.
x,y
- The coordinates where the StyledString should be drawn.
public void drawString(GlyphSet g, float x, float y)
g
- The GlyphSet to be drawn.
x,y
- The coordinates where the glyphs should be drawn.
public void drawString(TextLayout text, float x, float y)
public void fill(Shape s)
public boolean hit(Rectangle rect, Shape s, boolean onStroke)
rect
- The area in device space to check for a hit.
s
- The shape to check for a hit.
onStroke
- Flag to choose between testing the stroked or
the filled shape.
public boolean hitString(Rectangle rect, StyledString s, float x, float y)
rect
- The area in device space to check for a hit.
s
- The StyledString to check for a hit.
x,y
- The coordinates where the StyledString should be
hit tested.
public void setComposite(Composite comp)
comp
- The Composite object to be used for drawing.
public void setPaint(Paint paint)
paint
- The Paint object to be used to generate color in
the rendering process.
public void setStroke(Stroke s)
s
- The Stroke object to be used to stroke a Shape in
the rendering process.
public void setRenderingHints(int hintCategory, int hintValue)
hintCategory
- The category of hint to be set. Possible values
are ANTIALIASING and RENDERING.
hintValue
- The value indicating preferences for the specified
hint category. Possible values for the ANTIALIASING category are
ANTIALIAS_ON, ANTIALIAS_OFF, ANTIALIAS_DEFAULT. Possible values for
the RENDERING hint are RENDER_SPEED, RENDER_QUALITY, RENDER_DEFAULT.
public int getRenderingHints(int hintCategory)
hintCategory
- The category of hint to be set. Possible values
are ANTIALIASING and RENDERING.
public void transform(AffineTransform Tx)
Tx
- The Transform object to be composed with the current
transform.
public void setTransform(AffineTransform Tx)
Tx
- The Transform object to be used in the rendering process.
public AffineTransform getTransform()
public Paint getPaint()
public Composite getComposite()
public void setBackground(Color color)
color
- The background color that should be used in
subsequent calls to clearRect().
public Color getBackground()
public Stroke getStroke()
public void clip(Shape s)
s
- The Shape to be intersected with the current clip.
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |