Java Reference
In-Depth Information
Table 27-2
Commonly Used Method the Graphics Class (continued)
RETURNS
METHOD/ACTION
void
fill3DRect(int x, int y, int width, int height,
boolean raised)
Paints a 3-D highlighted rectangle filled with the
current color.
abstract
void
fillArc(int x, int y, int width, int height,
int startAngle, int arcAngle)
Fills a circular or elliptical arc defined bythe
specified bounding rectangle.
abstract
void
fillOval(int x, int y, int width, int height)
Fills an oval defined bythe specified bounding
rectangle, using the current color.
abstract
void
fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
Fills a closed polygon defined by arrays of x and y
coordinates.
void
fillPolygon(Polygon p)
Fills the polygon defined by the specified Polygon
object, using the graphics context's current color.
abstract
void
fillRect(int x, int y, int width, int height)
Fills the specified rectangle.
abstract
void
fillRoundRect(int x, int y, int width, int height,
int arcWidth, int arcHeight)
Fills the specified rounded corner rectangle using
the current color.
void
finalize()
Disposes of this graphics context once it is no longer
referenced.
abstract
Shape
getClip()
Gets the current clipping area.
abstract
Rectangle getClipBounds()
Returns the bounding rectangle of the current clipping
area.
abstract
Color
getColor()
Gets this graphics context's current color.
abstract
Font
getFont()
Gets the current font.
(continues)
Search WWH ::




Custom Search