Class Draw
- All Implemented Interfaces:
AutoCloseable
Draw contains multiple groups of data, each of which will be initialized step by step.
-
Field Summary
Modifier and TypeFieldDescriptionfloat
Precomputed local AA radius ifGeometryRenderer.outsetBoundsForAA()
is true, set byClipStack
.Clip params (immutable), set byClipStack
.long
Packed draw order, seeDrawOrder
.float
Stroke params.float
Paint params, null implies depth-only draw (i.e.Pointer to the renderer instance, managed byRendererProvider
.byte
byte
This matrix transforms geometry's local space to device space. -
Constructor Summary
-
Method Summary
-
Field Details
-
mRenderer
Pointer to the renderer instance, managed byRendererProvider
. -
mTransform
This matrix transforms geometry's local space to device space. -
mGeometry
-
mDrawBounds
Clip params (immutable), set byClipStack
.DrawBounds: Tight bounds of the draw in device space, including any padding/outset for stroking and expansion due to inverse fill and intersected with the scissor.
TransformedShapeBounds: Clipped bounds of the shape in device space, including any padding/outset for stroking, intersected with the scissor and ignoring the fill rule. For a regular fill this is identical to DrawBounds. For an inverse fill, this is a subset of DrawBounds.
ScissorRect: The scissor rectangle obtained by restricting the bounds of the clip stack that affects the draw to the device bounds. The scissor must contain DrawBounds and must already be intersected with the device bounds.
-
mTransformedShapeBounds
-
mScissorRect
-
mAARadius
public float mAARadiusPrecomputed local AA radius ifGeometryRenderer.outsetBoundsForAA()
is true, set byClipStack
. -
mDrawOrder
public long mDrawOrderPacked draw order, seeDrawOrder
. -
mHalfWidth
public float mHalfWidthStroke params. -
mJoinLimit
public float mJoinLimit -
mStrokeCap
public byte mStrokeCap -
mStrokeAlign
public byte mStrokeAlign -
mPaintParams
Paint params, null implies depth-only draw (i.e. clipping mask).
-
-
Constructor Details
-
Draw
public Draw()
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
isClippedOut
public boolean isClippedOut() -
isStroke
public boolean isStroke()Returns true if the geometry is stroked instead of filled. -
isMiterJoin
public boolean isMiterJoin() -
isBevelJoin
public boolean isBevelJoin() -
isRoundJoin
public boolean isRoundJoin() -
getMiterLimit
public float getMiterLimit() -
getInflationRadius
public float getInflationRadius()- See Also:
-
getDepth
public int getDepth()Returns the painter's depth as unsigned integer. -
getDepthAsFloat
public float getDepthAsFloat()
-