Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
java.awt.Graphics
java.awt.Graphics2D
gnu.java.awt.java2d.AbstractGraphics2D
gnu.java.awt.peer.x.XGraphics2D
public class XGraphics2D
extends AbstractGraphics2D
Field Summary |
Fields inherited from class gnu.java.awt.java2d.AbstractGraphics2D | |
HashMap , |
Method Summary | |
Graphics |
|
void |
|
void |
|
protected void | |
protected ColorModel |
|
protected ColorModel |
|
protected Rectangle |
|
GraphicsConfiguration | |
protected void |
|
protected boolean |
|
void | |
void | |
void | |
protected void |
|
protected @Override |
|
protected @Override |
|
protected @Override |
|
@Override |
|
Methods inherited from class java.awt.Graphics2D | |
addRenderingHints , clip , draw , draw3DRect , drawGlyphVector , drawImage , drawImage , drawRenderableImage , drawRenderedImage , drawString , drawString , drawString , drawString , fill , fill3DRect , getBackground , getComposite , getDeviceConfiguration , getFontRenderContext , getPaint , getRenderingHint , getRenderingHints , getStroke , getTransform , hit , rotate , rotate , scale , setBackground , setComposite , setPaint , setRenderingHint , 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 , 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 , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public void drawString(String s, int x, int y)
Draws a string at the specified location, using the current font.
- Overrides:
- drawString in interface AbstractGraphics2D
- Parameters:
x
- the x-coordinate.y
- the y-coordinate.
- See Also:
Graphics.setFont(Font)
protected void fillShape(Shape s, boolean isFont)
- Overrides:
- fillShape in interface AbstractGraphics2D
protected ColorModel getColorModel()
Returns the color model of this Graphics object.
- Overrides:
- getColorModel in interface AbstractGraphics2D
- Returns:
- the color model of this Graphics object
protected ColorModel getDestinationColorModel()
Returns the color model of the target device.
- Returns:
- the color model of the target device
protected Rectangle getDeviceBounds()
Returns the bounds of the target.
- Overrides:
- getDeviceBounds in interface AbstractGraphics2D
- Returns:
- the bounds of the target
public GraphicsConfiguration getDeviceConfiguration()
- Overrides:
- getDeviceConfiguration in interface Graphics2D
protected boolean rawDrawImage(Image image, int x, int y, ImageObserver obs)
- Overrides:
- rawDrawImage in interface AbstractGraphics2D
public void setPaint(Paint p)
Sets the paint to be used for subsequent drawing operations.
- Overrides:
- setPaint in interface AbstractGraphics2D
- Parameters:
- See Also:
Graphics2D.getPaint()
protected void updateRaster(Raster raster, int x, int y, int w, int h)
Notifies the backend that the raster has changed in the specified rectangular area. The raster that is provided in this method is always the same as the one returned inXGraphics2D
. Backends that reflect changes to this raster directly don't need to do anything here.
- Overrides:
- updateRaster in interface AbstractGraphics2D
- Parameters:
raster
- the updated raster, identical to the raster returned bygetDestinationRaster()
x
- the upper left corner of the updated region, X coordinatey
- the upper lef corner of the updated region, Y coordinatew
- the width of the updated regionh
- the height of the updated region