| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv BufferedImage | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private BufferedImageGraphicsConfig | |
| private static RenderLoops[] | |
| private final double | |
| private final double | |
| pack-priv RenderLoops | |
| private static SurfaceType[] |
| Access | Constructor and Description |
|---|---|
| public | BufImgSurfaceData(DataBuffer db, BufferedImage bufImg, SurfaceType sType, double scaleX, double scaleY)
|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static SurfaceData | |
| public static SurfaceData | |
| public static SurfaceData | |
| public static SurfaceData | |
| public static SurfaceData | |
| public static SurfaceData | |
| public static SurfaceData | createDataSC(BufferedImage bImg, SurfaceType sType, IndexColorModel icm, double scaleX, double scaleY)
|
| public Rectangle | getBounds()
Implements abstract sun. Returns the bounds of the destination surface. |
| public double | getDefaultScaleX()
Overrides sun. Returns default horizontal scale factor of the destination surface. |
| public double | getDefaultScaleY()
Overrides sun. Returns default vertical scale factor of the destination surface. |
| public Object | getDestination()
Implements abstract sun. Returns destination Image associated with this SurfaceData. |
| public synchronized 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 RenderLoops | getRenderLoops(SunGraphics2D sg2d)
Overrides sun. Return a RenderLoops object containing all of the basic GraphicsPrimitive objects for rendering to the destination surface with the current attributes of the given SunGraphics2D. |
| public SurfaceData | getReplacement()
Implements abstract sun. Certain changes in the configuration of a surface require the invalidation of existing associated SurfaceData objects and the creation of brand new ones. |
| public static synchronized RenderLoops | |
| private static native void | |
| protected native void | initRaster(Object theArray, int offset, int bitoffset, int width, int height, int pixStr, int scanStr, IndexColorModel icm)
Initializes the native Ops pointer. |
| public void |
| bufImg | back to summary |
|---|---|
| pack-priv BufferedImage bufImg | |
| CACHE_SIZE | back to summary |
|---|---|
| private static final int CACHE_SIZE | |
| DCM_4444_ALPHA_MASK | back to summary |
|---|---|
| private static final int DCM_4444_ALPHA_MASK | |
| DCM_4444_BLUE_MASK | back to summary |
|---|---|
| private static final int DCM_4444_BLUE_MASK | |
| DCM_4444_GREEN_MASK | back to summary |
|---|---|
| private static final int DCM_4444_GREEN_MASK | |
| DCM_4444_RED_MASK | back to summary |
|---|---|
| private static final int DCM_4444_RED_MASK | |
| DCM_555X_BLUE_MASK | back to summary |
|---|---|
| private static final int DCM_555X_BLUE_MASK | |
| DCM_555X_GREEN_MASK | back to summary |
|---|---|
| private static final int DCM_555X_GREEN_MASK | |
| DCM_555X_RED_MASK | back to summary |
|---|---|
| private static final int DCM_555X_RED_MASK | |
| DCM_ARGBBM_ALPHA_MASK | back to summary |
|---|---|
| private static final int DCM_ARGBBM_ALPHA_MASK | |
| DCM_ARGBBM_BLUE_MASK | back to summary |
|---|---|
| private static final int DCM_ARGBBM_BLUE_MASK | |
| DCM_ARGBBM_GREEN_MASK | back to summary |
|---|---|
| private static final int DCM_ARGBBM_GREEN_MASK | |
| DCM_ARGBBM_RED_MASK | back to summary |
|---|---|
| private static final int DCM_ARGBBM_RED_MASK | |
| DCM_RGBX_BLUE_MASK | back to summary |
|---|---|
| private static final int DCM_RGBX_BLUE_MASK | |
| DCM_RGBX_GREEN_MASK | back to summary |
|---|---|
| private static final int DCM_RGBX_GREEN_MASK | |
| DCM_RGBX_RED_MASK | back to summary |
|---|---|
| private static final int DCM_RGBX_RED_MASK | |
| graphicsConfig | back to summary |
|---|---|
| private BufferedImageGraphicsConfig graphicsConfig | |
| loopcache | back to summary |
|---|---|
| private static RenderLoops[] loopcache | |
| scaleX | back to summary |
|---|---|
| private final double scaleX | |
| scaleY | back to summary |
|---|---|
| private final double scaleY | |
| solidloops | back to summary |
|---|---|
| pack-priv RenderLoops solidloops | |
| typecache | back to summary |
|---|---|
| private static SurfaceType[] typecache | |
| BufImgSurfaceData | back to summary |
|---|---|
| public BufImgSurfaceData(DataBuffer db, BufferedImage bufImg, SurfaceType sType, double scaleX, double scaleY) | |
| BufImgSurfaceData | back to summary |
|---|---|
| protected BufImgSurfaceData(SurfaceType surfaceType, ColorModel cm) | |
| createData | back to summary |
|---|---|
| public static SurfaceData createData(BufferedImage bufImg) | |
| createData | back to summary |
|---|---|
| public static SurfaceData createData(BufferedImage bufImg, double scaleX, double scaleY) | |
| createData | back to summary |
|---|---|
| public static SurfaceData createData(Raster ras, ColorModel cm) | |
| createDataBC | back to summary |
|---|---|
| public static SurfaceData createDataBC(BufferedImage bImg, SurfaceType sType, int primaryBank, double scaleX, double scaleY) | |
| createDataBP | back to summary |
|---|---|
| public static SurfaceData createDataBP(BufferedImage bImg, SurfaceType sType, double scaleX, double scaleY) | |
| createDataIC | back to summary |
|---|---|
| public static SurfaceData createDataIC(BufferedImage bImg, SurfaceType sType, double scaleX, double scaleY) | |
| createDataSC | back to summary |
|---|---|
| public static SurfaceData createDataSC(BufferedImage bImg, SurfaceType sType, IndexColorModel icm, double scaleX, double scaleY) | |
| getBounds | back to summary |
|---|---|
| public Rectangle getBounds() Implements abstract sun. Doc from sun. Returns the bounds of the destination surface. | |
| getDefaultScaleX | back to summary |
|---|---|
| public double getDefaultScaleX() Overrides sun. Doc from sun. Returns default horizontal scale factor of the destination surface. Scale factor describes the mapping between virtual and physical coordinates of the SurfaceData. If the scale is 2 then virtual pixel coordinates need to be doubled for physical pixels.
| |
| getDefaultScaleY | back to summary |
|---|---|
| public double getDefaultScaleY() Overrides sun. Doc from sun. Returns default vertical scale factor of the destination surface. Scale factor describes the mapping between virtual and physical coordinates of the SurfaceData. If the scale is 2 then virtual pixel coordinates need to be doubled for physical pixels.
| |
| getDestination | back to summary |
|---|---|
| public Object getDestination() Implements abstract sun. Returns destination Image associated with this SurfaceData. | |
| getDeviceConfiguration | back to summary |
|---|---|
| public synchronized 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. Doc from 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. | |
| getRenderLoops | back to summary |
|---|---|
| public RenderLoops getRenderLoops(SunGraphics2D sg2d) Overrides sun. Doc from sun. Return a RenderLoops object containing all of the basic GraphicsPrimitive objects for rendering to the destination surface with the current attributes of the given SunGraphics2D. | |
| getReplacement | back to summary |
|---|---|
| public SurfaceData getReplacement() Implements abstract sun. Doc from sun. Certain changes in the configuration of a surface require the invalidation of existing associated SurfaceData objects and the creation of brand new ones. These changes include size, ColorModel, or SurfaceType. Existing Graphics objects which are directed at such surfaces, however, must continue to render to them even after the change occurs underneath the covers. The getReplacement() method is called from SunGraphics2D.revalidateAll() when the associated SurfaceData is found to be invalid so that a Graphics object can continue to render to the surface in its new configuration. Such changes only tend to happen to window based surfaces since most image based surfaces never change size or pixel format. Even VolatileImage objects never change size and they only change their pixel format when manually validated against a new GraphicsConfiguration, at which point old Graphics objects are no longer expected to render to them after the validation step. Thus, only window based surfaces really need to deal with this form of replacement. | |
| getSolidLoops | back to summary |
|---|---|
| public static synchronized RenderLoops getSolidLoops(SurfaceType type) | |
| initIDs | back to summary |
|---|---|
| private static native void initIDs(Class<?> ICM, Class<?> ICMColorData) | |
| initRaster | back to summary |
|---|---|
| protected native void initRaster(Object theArray, int offset, int bitoffset, int width, int height, int pixStr, int scanStr, IndexColorModel icm) Initializes the native Ops pointer. | |
| initSolidLoops | back to summary |
|---|---|
| public void initSolidLoops() | |
| Modifier and Type | Field and Description |
|---|---|
| private long |
| Access | Constructor and Description |
|---|---|
| private |
| pData | back to summary |
|---|---|
| private long pData | |
| ICMColorData | back to summary |
|---|---|
| private ICMColorData(long pData) | |