final class WCBufferedContext extends WCGraphicsPrismContext
WCGraphicsPrismContext.Type
Modifier and Type | Field and Description |
---|---|
private PrismImage |
img |
private boolean |
isInitialized |
private RectBounds |
TEMP_BOUNDS |
private float[] |
TEMP_COORDS |
private NGRectangle |
TEMP_NGRECT |
private RoundRectangle2D |
TEMP_RECT |
baseGraphics
COMPOSITE_CLEAR, COMPOSITE_COPY, COMPOSITE_DESTINATION_ATOP, COMPOSITE_DESTINATION_IN, COMPOSITE_DESTINATION_OUT, COMPOSITE_DESTINATION_OVER, COMPOSITE_HIGHLIGHT, COMPOSITE_PLUS_DARKER, COMPOSITE_PLUS_LIGHTER, COMPOSITE_SOURCE_ATOP, COMPOSITE_SOURCE_IN, COMPOSITE_SOURCE_OUT, COMPOSITE_SOURCE_OVER, COMPOSITE_XOR
Constructor and Description |
---|
WCBufferedContext(PrismImage img) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
(package private) Graphics |
getGraphics(boolean checkClip) |
WCImage |
getImage() |
private void |
init() |
void |
saveState() |
void |
setTransform(WCTransform tm) |
protected boolean |
shouldCalculateIntersection() |
protected boolean |
shouldRenderRect(float x,
float y,
float w,
float h,
DropShadow shadow,
BasicStroke stroke) |
protected boolean |
shouldRenderShape(Shape shape,
DropShadow shadow,
BasicStroke stroke) |
private boolean |
trIntersectsClip(RectBounds bounds,
BaseTransform tx) |
WCGraphicsPrismContext.Type |
type() |
beginTransparencyLayer, clearRect, concatTransform, createColor, createLinearGradient, createRadialGradient, drawBitmapImage, drawEllipse, drawFocusRing, drawIcon, drawImage, drawLine, drawPattern, drawPolygon, drawRect, drawScrollbar, drawString, drawString, drawWidget, endTransparencyLayer, fillPath, fillRect, fillRoundedRect, flush, getAlpha, getClip, getClipRectNoClone, getFontSmoothingType, getPlatformGraphics, getTransform, getTransformNoClone, initBaseTransform, restoreState, rotate, scale, setAlpha, setClip, setClip, setClip, setComposite, setFillColor, setFillGradient, setFontSmoothingType, setLineCap, setLineDash, setLineJoin, setMiterLimit, setPerspectiveTransform, setShadow, setStrokeColor, setStrokeGradient, setStrokeStyle, setStrokeWidth, setTextMode, strokeArc, strokePath, strokeRect, translate
private final PrismImage img
private boolean isInitialized
private final RectBounds TEMP_BOUNDS
private final NGRectangle TEMP_NGRECT
private final RoundRectangle2D TEMP_RECT
private final float[] TEMP_COORDS
WCBufferedContext(PrismImage img)
public WCGraphicsPrismContext.Type type()
type
in class WCGraphicsPrismContext
public WCImage getImage()
getImage
in class WCGraphicsPrismContext
Graphics getGraphics(boolean checkClip)
getGraphics
in class WCGraphicsPrismContext
protected boolean shouldCalculateIntersection()
shouldCalculateIntersection
in class WCGraphicsPrismContext
protected boolean shouldRenderRect(float x, float y, float w, float h, DropShadow shadow, BasicStroke stroke)
shouldRenderRect
in class WCGraphicsPrismContext
protected boolean shouldRenderShape(Shape shape, DropShadow shadow, BasicStroke stroke)
shouldRenderShape
in class WCGraphicsPrismContext
private boolean trIntersectsClip(RectBounds bounds, BaseTransform tx)
public void saveState()
saveState
in class WCGraphicsPrismContext
public void setTransform(WCTransform tm)
setTransform
in class WCGraphicsPrismContext
private void init()
public void dispose()
dispose
in class WCGraphicsPrismContext