final class SWContext
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
SWContext.JavaShapeRenderer |
(package private) class |
SWContext.NativeShapeRenderer |
(package private) static interface |
SWContext.ShapeRenderer |
Modifier and Type | Field and Description |
---|---|
private ResourceFactory |
factory |
private java.lang.ref.SoftReference<SWArgbPreTexture> |
imagePaintTextureRef |
private java.lang.ref.SoftReference<SWRTTexture> |
readBackBufferRef |
private SWContext.ShapeRenderer |
shapeRenderer |
Constructor and Description |
---|
SWContext(ResourceFactory factory) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
dispose() |
private void |
disposeImagePaintTexture() |
private void |
disposeRBBuffer() |
private SWArgbPreTexture |
initImagePaintTexture(int width,
int height) |
private SWRTTexture |
initRBBuffer(int width,
int height) |
(package private) void |
renderShape(PiscesRenderer pr,
Shape shape,
BasicStroke stroke,
BaseTransform tr,
Rectangle clip,
boolean antialiasedShape) |
(package private) SWArgbPreTexture |
validateImagePaintTexture(int width,
int height) |
(package private) SWRTTexture |
validateRBBuffer(int width,
int height) |
private final ResourceFactory factory
private final SWContext.ShapeRenderer shapeRenderer
private java.lang.ref.SoftReference<SWRTTexture> readBackBufferRef
private java.lang.ref.SoftReference<SWArgbPreTexture> imagePaintTextureRef
SWContext(ResourceFactory factory)
void renderShape(PiscesRenderer pr, Shape shape, BasicStroke stroke, BaseTransform tr, Rectangle clip, boolean antialiasedShape)
private SWRTTexture initRBBuffer(int width, int height)
private void disposeRBBuffer()
SWRTTexture validateRBBuffer(int width, int height)
private SWArgbPreTexture initImagePaintTexture(int width, int height)
private void disposeImagePaintTexture()
SWArgbPreTexture validateImagePaintTexture(int width, int height)
void dispose()