|
|||||||||
| Home >> All >> java >> [ awt overview ] | PREV NEXT | ||||||||
Uses of Class
java.awt.Graphics
| Uses of Graphics in java.awt |
| Subclasses of Graphics in java.awt | |
class |
Graphics2D
|
| Methods in java.awt that return Graphics | |
Graphics |
Component.getGraphics()
Returns a graphics object for this component. |
Graphics |
Component.BltBufferStrategy.getDrawGraphics()
Retrieves a graphics object that can be used to draw into this strategy's image buffer. |
Graphics |
Component.FlipBufferStrategy.getDrawGraphics()
Retrieves a graphics object that can be used to draw into this strategy's image buffer. |
abstract Graphics |
Image.getGraphics()
Returns a graphics context object for drawing an off-screen object. |
abstract Graphics |
PrintJob.getGraphics()
Returns a graphics context suitable for rendering the next page. |
abstract Graphics |
Graphics.create()
Returns a copy of this Graphics object. |
Graphics |
Graphics.create(int x,
int y,
int width,
int height)
Returns a copy of this Graphics object. |
| Methods in java.awt with parameters of type Graphics | |
void |
Component.paint(Graphics g)
Paints this component on the screen. |
void |
Component.update(Graphics g)
Updates this component. |
void |
Component.paintAll(Graphics g)
Paints this entire component, including any sub-components. |
void |
Component.print(Graphics g)
Prints this component. |
void |
Component.printAll(Graphics g)
Prints this component, including all sub-components. |
void |
Container.paint(Graphics g)
Paints this container. |
void |
Container.update(Graphics g)
Updates this container. |
void |
Container.print(Graphics g)
Prints this container. |
void |
Container.paintComponents(Graphics g)
Paints all of the components in this container. |
void |
Container.printComponents(Graphics g)
Prints all of the components in this container. |
private void |
Container.visitChildren(Graphics gfx,
Container.GfxVisitor visitor,
boolean lightweightOnly)
Perform a graphics operation on the children of this container. |
private void |
Container.visitChild(Graphics gfx,
Container.GfxVisitor visitor,
Component comp)
Perform a graphics operation on a child. |
abstract void |
Container.GfxVisitor.visit(Component c,
Graphics gfx)
|
void |
Container.GfxPaintVisitor.visit(Component c,
Graphics gfx)
|
void |
Container.GfxPrintVisitor.visit(Component c,
Graphics gfx)
|
void |
Container.GfxPaintAllVisitor.visit(Component c,
Graphics gfx)
|
void |
Container.GfxPrintAllVisitor.visit(Component c,
Graphics gfx)
|
java.awt.font.LineMetrics |
FontMetrics.getLineMetrics(java.lang.String text,
Graphics g)
Returns a java.awt.font.LineMetrics object constructed with the specified text and the java.awt.font.FontRenderContext of the Graphics object when it is an instance of Graphics2D or a generic FontRenderContext with a null transform, not anti-aliased and not using fractional metrics. |
java.awt.font.LineMetrics |
FontMetrics.getLineMetrics(java.lang.String text,
int begin,
int limit,
Graphics g)
Returns a java.awt.font.LineMetrics object constructed with the specified text and the java.awt.font.FontRenderContext of the Graphics object when it is an instance of Graphics2D or a generic FontRenderContext with a null transform, not anti-aliased and not using fractional metrics. |
java.awt.font.LineMetrics |
FontMetrics.getLineMetrics(char[] chars,
int begin,
int limit,
Graphics g)
Returns a java.awt.font.LineMetrics object constructed with the specified text and the java.awt.font.FontRenderContext of the Graphics object when it is an instance of Graphics2D or a generic FontRenderContext with a null transform, not anti-aliased and not using fractional metrics. |
java.awt.geom.Rectangle2D |
FontMetrics.getMaxCharBounds(Graphics context)
Returns the bounds of the largest character in a Graphics context. |
java.awt.font.LineMetrics |
FontMetrics.getLineMetrics(java.text.CharacterIterator ci,
int begin,
int limit,
Graphics g)
Returns a java.awt.font.LineMetrics object constructed with the specified text and the java.awt.font.FontRenderContext of the Graphics object when it is an instance of Graphics2D or a generic FontRenderContext with a null transform, not anti-aliased and not using fractional metrics. |
java.awt.geom.Rectangle2D |
FontMetrics.getStringBounds(java.lang.String str,
Graphics context)
|
java.awt.geom.Rectangle2D |
FontMetrics.getStringBounds(java.lang.String str,
int beginIndex,
int limit,
Graphics context)
|
java.awt.geom.Rectangle2D |
FontMetrics.getStringBounds(char[] chars,
int beginIndex,
int limit,
Graphics context)
|
java.awt.geom.Rectangle2D |
FontMetrics.getStringBounds(java.text.CharacterIterator ci,
int beginIndex,
int limit,
Graphics context)
|
private java.awt.font.FontRenderContext |
FontMetrics.getFontRenderContext(Graphics context)
|
void |
Canvas.paint(Graphics gfx)
Repaints the canvas window. |
void |
Canvas.update(Graphics graphics)
Updates the canvas in response to a request to repaint() it. |
void |
ScrollPane.printComponents(Graphics graphics)
Prints all of the components in this container. |
|
|||||||||
| Home >> All >> java >> [ awt overview ] | PREV NEXT | ||||||||