Package | Description |
---|---|
java.awt |
Contains all of the classes for creating user
interfaces and for painting graphics and images.
|
Modifier and Type | Class and Description |
---|---|
class |
Graphics2D
This
Graphics2D class extends the
Graphics class to provide more sophisticated
control over geometry, coordinate transformations, color management,
and text layout. |
Modifier and Type | Method and Description |
---|---|
abstract Graphics |
Graphics.create()
Creates a new
Graphics object that is
a copy of this Graphics object. |
Graphics |
Graphics.create(int x,
int y,
int width,
int height)
Creates a new
Graphics object based on this
Graphics object, but with a new translation and clip area. |
Graphics |
Component.FlipBufferStrategy.getDrawGraphics()
|
Graphics |
Component.BltBufferStrategy.getDrawGraphics()
|
abstract Graphics |
PrintJob.getGraphics()
Gets a Graphics object that will draw to the next page.
|
abstract Graphics |
Image.getGraphics()
Creates a graphics context for drawing to an off-screen image.
|
Graphics |
Component.getGraphics()
Creates a graphics context for this component.
|
Modifier and Type | Method and Description |
---|---|
java.awt.font.LineMetrics |
FontMetrics.getLineMetrics(char[] chars,
int beginIndex,
int limit,
Graphics context)
Returns the
LineMetrics object for the specified
character array in the specified Graphics context. |
java.awt.font.LineMetrics |
FontMetrics.getLineMetrics(java.text.CharacterIterator ci,
int beginIndex,
int limit,
Graphics context)
Returns the
LineMetrics object for the specified
CharacterIterator in the specified Graphics
context. |
java.awt.font.LineMetrics |
FontMetrics.getLineMetrics(java.lang.String str,
Graphics context)
|
java.awt.font.LineMetrics |
FontMetrics.getLineMetrics(java.lang.String str,
int beginIndex,
int limit,
Graphics context)
|
java.awt.geom.Rectangle2D |
FontMetrics.getMaxCharBounds(Graphics context)
Returns the bounds for the character with the maximum bounds
in the specified
Graphics context. |
java.awt.geom.Rectangle2D |
FontMetrics.getStringBounds(char[] chars,
int beginIndex,
int limit,
Graphics context)
Returns the bounds of the specified array of characters
in the specified
Graphics context. |
java.awt.geom.Rectangle2D |
FontMetrics.getStringBounds(java.text.CharacterIterator ci,
int beginIndex,
int limit,
Graphics context)
Returns the bounds of the characters indexed in the specified
CharacterIterator in the
specified Graphics context. |
java.awt.geom.Rectangle2D |
FontMetrics.getStringBounds(java.lang.String str,
Graphics context)
Returns the bounds of the specified
String in the
specified Graphics context. |
java.awt.geom.Rectangle2D |
FontMetrics.getStringBounds(java.lang.String str,
int beginIndex,
int limit,
Graphics context)
Returns the bounds of the specified
String in the
specified Graphics context. |
void |
Window.paint(Graphics g)
Paints the container.
|
void |
Container.paint(Graphics g)
Paints the container.
|
void |
Component.paint(Graphics g)
Paints this component.
|
void |
Canvas.paint(Graphics g)
Paints this canvas.
|
void |
Component.paintAll(Graphics g)
Paints this component and all of its subcomponents.
|
void |
Container.paintComponents(Graphics g)
Paints each of the components in this container.
|
void |
Container.print(Graphics g)
Prints the container.
|
void |
Component.print(Graphics g)
Prints this component.
|
void |
Component.printAll(Graphics g)
Prints this component and all of its subcomponents.
|
void |
ScrollPane.printComponents(Graphics g)
Prints the component in this scroll pane.
|
void |
Container.printComponents(Graphics g)
Prints each of the components in this container.
|
void |
Container.update(Graphics g)
Updates the container.
|
void |
Component.update(Graphics g)
Updates this component.
|
void |
Canvas.update(Graphics g)
Updates this canvas.
|