public class ARTShapeShadowNode extends ARTVirtualNode
Modifier and Type | Field and Description |
---|---|
protected android.graphics.Path |
mPath |
MIN_OPACITY_FOR_DRAW, mOpacity, mScale
Constructor and Description |
---|
ARTShapeShadowNode() |
ARTShapeShadowNode(ARTShapeShadowNode node) |
Modifier and Type | Method and Description |
---|---|
void |
draw(android.graphics.Canvas canvas,
android.graphics.Paint paint,
float opacity) |
ARTShapeShadowNode |
mutableCopy() |
void |
setFill(ReadableArray fillColors) |
void |
setShapePath(ReadableArray shapePath) |
void |
setStroke(ReadableArray strokeColors) |
void |
setStrokeCap(int strokeCap) |
void |
setStrokeDash(ReadableArray strokeDash) |
void |
setStrokeJoin(int strokeJoin) |
void |
setStrokeWidth(float strokeWidth) |
protected boolean |
setupFillPaint(android.graphics.Paint paint,
float opacity)
Sets up
#mPaint according to the props set on a shadow view. |
protected boolean |
setupStrokePaint(android.graphics.Paint paint,
float opacity)
Sets up
#mPaint according to the props set on a shadow view. |
isVirtual, restoreCanvas, saveAndSetupCanvas, setOpacity, setTransform, setupMatrix
addChildAt, addNativeChildAt, calculateLayout, dirty, dispatchUpdates, dispose, getChildAt, getChildCount, getHierarchyInfo, getLayoutDirection, getLayoutHeight, getLayoutWidth, getLayoutX, getLayoutY, getNativeChildCount, getNativeOffsetForChild, getNativeParent, getNewProps, getPadding, getParent, getReactTag, getRootNode, getScreenHeight, getScreenWidth, getScreenX, getScreenY, getStyleHeight, getStylePadding, getStyleWidth, getThemedContext, getTotalNativeChildren, getViewClass, hasNewLayout, hasUnseenUpdates, hasUpdates, indexOf, indexOfNativeChild, isDescendantOf, isDirty, isLayoutOnly, isMeasureDefined, isVirtualAnchor, isYogaLeafNode, markLayoutSeen, markUpdated, markUpdateSeen, mutableCopyWithNewChildren, mutableCopyWithNewChildrenAndProps, mutableCopyWithNewProps, onAfterUpdateTransaction, onBeforeLayout, onCollectExtraUpdates, removeAllNativeChildren, removeAndDisposeAllChildren, removeChildAt, removeNativeChildAt, setAlignContent, setAlignItems, setAlignSelf, setBaselineFunction, setBorder, setDefaultPadding, setDisplay, setFlex, setFlexBasis, setFlexBasisAuto, setFlexBasisPercent, setFlexDirection, setFlexGrow, setFlexShrink, setFlexWrap, setIsLayoutOnly, setJustifyContent, setLayoutDirection, setLocalData, setMargin, setMarginAuto, setMarginPercent, setMeasureFunction, setOverflow, setPadding, setPaddingPercent, setPosition, setPositionPercent, setPositionType, setReactTag, setRootNode, setShouldNotifyOnLayout, setStyleAspectRatio, setStyleHeight, setStyleHeightAuto, setStyleHeightPercent, setStyleMaxHeight, setStyleMaxHeightPercent, setStyleMaxWidth, setStyleMaxWidthPercent, setStyleMinHeight, setStyleMinHeightPercent, setStyleMinWidth, setStyleMinWidthPercent, setStyleWidth, setStyleWidthAuto, setStyleWidthPercent, setThemedContext, setViewClassName, shouldNotifyOnLayout, toString, updateProperties
public ARTShapeShadowNode()
public ARTShapeShadowNode(ARTShapeShadowNode node)
public ARTShapeShadowNode mutableCopy()
mutableCopy
in interface ReactShadowNode<ReactShadowNodeImpl>
mutableCopy
in class ReactShadowNodeImpl
ReactShadowNode
public void setShapePath(@Nullable ReadableArray shapePath)
public void setStroke(@Nullable ReadableArray strokeColors)
public void setStrokeDash(@Nullable ReadableArray strokeDash)
public void setFill(@Nullable ReadableArray fillColors)
public void setStrokeWidth(float strokeWidth)
public void setStrokeCap(int strokeCap)
public void setStrokeJoin(int strokeJoin)
public void draw(android.graphics.Canvas canvas, android.graphics.Paint paint, float opacity)
draw
in class ARTVirtualNode
protected boolean setupStrokePaint(android.graphics.Paint paint, float opacity)
#mPaint
according to the props set on a shadow view. Returns true
if the stroke should be drawn, false
if not.protected boolean setupFillPaint(android.graphics.Paint paint, float opacity)
#mPaint
according to the props set on a shadow view. Returns true
if the fill should be drawn, false
if not.