| Modifier and Type | Field and Description |
|---|---|
| private static final NullPipe | |
| public static final SurfaceData |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | copyArea(SunGraphics2D sg2d, int x, int y, int w, int h, int dx, int dy)
Overrides sun. Performs a copyarea within this surface. |
| public Rectangle | getBounds()
Implements abstract sun. Returns the bounds of the destination surface. |
| public Object | getDestination()
Implements abstract sun. Returns destination Image associated with this SurfaceData (null) |
| public GraphicsConfiguration | getDeviceConfiguration()
Implements abstract sun. Return the GraphicsConfiguration object that describes this destination surface. |
| public Raster | getRaster(int x, int y, int w, int h)
Implements abstract sun. Return a readable Raster which contains the pixels for the specified rectangular region of the destination surface. |
| public SurfaceData | getReplacement()
Implements abstract sun. Return a new SurfaceData object that represents the current state of the destination that this SurfaceData object describes. |
| public void | invalidate()
Overrides sun. Sets this SurfaceData object to the invalid state. |
| public int | pixelFor(int rgb)
Overrides sun. Returns the pixel data for the specified Argb value packed into an integer for easy storage and conveyance. |
| public int | rgbFor(int pixel)
Overrides sun. Returns the Argb representation for the specified integer value which is packed in the format of the associated ColorModel. |
| public boolean | useTightBBoxes()
Overrides sun. Does the pixel accessibility of the destination surface suggest that rendering algorithms might want to take extra time to calculate a more accurate bounding box for the operation being performed? |
| public void |
| nullpipe | back to summary |
|---|---|
| private static final NullPipe nullpipe | |
| theInstance | back to summary |
|---|---|
| public static final SurfaceData theInstance | |
| NullSurfaceData | back to summary |
|---|---|
| private NullSurfaceData() | |
| copyArea | back to summary |
|---|---|
| public boolean copyArea(SunGraphics2D sg2d, int x, int y, int w, int h, int dx, int dy) Overrides sun. Performs a copyarea within this surface. Returns false if there is no algorithm to perform the copyarea given the current settings of the SunGraphics2D. | |
| getBounds | back to summary |
|---|---|
| public Rectangle getBounds() Implements abstract sun. Returns the bounds of the destination surface. | |
| getDestination | back to summary |
|---|---|
| public Object getDestination() Implements abstract sun. Returns destination Image associated with this SurfaceData (null) | |
| getDeviceConfiguration | back to summary |
|---|---|
| public GraphicsConfiguration getDeviceConfiguration() Implements abstract sun. Doc from sun. Return the GraphicsConfiguration object that describes this destination surface. | |
| getRaster | back to summary |
|---|---|
| public Raster getRaster(int x, int y, int w, int h) Implements abstract sun. Return a readable Raster which contains the pixels for the specified rectangular region of the destination surface. The coordinate origin of the returned Raster is the same as the device space origin of the destination surface. In some cases the returned Raster might also be writeable. In most cases, the returned Raster might contain more pixels than requested.
| |
| getReplacement | back to summary |
|---|---|
| public SurfaceData getReplacement() Implements abstract sun. Return a new SurfaceData object that represents the current state of the destination that this SurfaceData object describes. This method is typically called when the SurfaceData is invalidated. | |
| invalidate | back to summary |
|---|---|
| public void invalidate() Overrides sun. Sets this SurfaceData object to the invalid state. All Graphics objects must get a new SurfaceData object via the refresh method and revalidate their pipelines before continuing. | |
| pixelFor | back to summary |
|---|---|
| public int pixelFor(int rgb) Overrides sun. Returns the pixel data for the specified Argb value packed into an integer for easy storage and conveyance. | |
| rgbFor | back to summary |
|---|---|
| public int rgbFor(int pixel) Overrides sun. Returns the Argb representation for the specified integer value which is packed in the format of the associated ColorModel. | |
| useTightBBoxes | back to summary |
|---|---|
| public boolean useTightBBoxes() Overrides sun. Does the pixel accessibility of the destination surface suggest that rendering algorithms might want to take extra time to calculate a more accurate bounding box for the operation being performed? The typical case when this will be true is when a copy of the pixels has to be made when doing a getRaster. The fewer pixels copied, the faster the operation will go.
| |
| validatePipe | back to summary |
|---|---|
| public void validatePipe(SunGraphics2D sg2d) Overrides sun. | |