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 |
baseGraphicsCOMPOSITE_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, translateprivate 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 WCGraphicsPrismContextpublic WCImage getImage()
getImage in class WCGraphicsPrismContextGraphics getGraphics(boolean checkClip)
getGraphics in class WCGraphicsPrismContextprotected boolean shouldCalculateIntersection()
shouldCalculateIntersection in class WCGraphicsPrismContextprotected boolean shouldRenderRect(float x,
float y,
float w,
float h,
DropShadow shadow,
BasicStroke stroke)
shouldRenderRect in class WCGraphicsPrismContextprotected boolean shouldRenderShape(Shape shape, DropShadow shadow, BasicStroke stroke)
shouldRenderShape in class WCGraphicsPrismContextprivate boolean trIntersectsClip(RectBounds bounds, BaseTransform tx)
public void saveState()
saveState in class WCGraphicsPrismContextpublic void setTransform(WCTransform tm)
setTransform in class WCGraphicsPrismContextprivate void init()
public void dispose()
dispose in class WCGraphicsPrismContext