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 |
|---|---|
protected ARTShapeShadowNode |
copy() |
void |
draw(android.graphics.Canvas canvas,
android.graphics.Paint paint,
float opacity) |
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, setupMatrixaddChildAt, addNativeChildAt, calculateLayout, dirty, dispatchUpdates, dispose, getChildAt, getChildCount, getChildrenList, getHierarchyInfo, getInstanceHandle, getLayoutDirection, getLayoutHeight, getLayoutWidth, getLayoutX, getLayoutY, getNativeChildCount, getNativeOffsetForChild, getNativeParent, getNewProps, getOriginalReactShadowNode, getPadding, getParent, getReactTag, getRootTag, getScreenHeight, getScreenWidth, getScreenX, getScreenY, getStyleHeight, getStylePadding, getStyleWidth, getThemedContext, getTotalNativeChildren, getViewClass, hasNewLayout, hasUnseenUpdates, hasUpdates, indexOf, indexOfNativeChild, isDescendantOf, isDirty, isLayoutOnly, isMeasureDefined, isSealed, isVirtualAnchor, isYogaLeafNode, markAsSealed, markLayoutSeen, markUpdated, markUpdateSeen, mutableCopy, 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, setInstanceHandle, setIsLayoutOnly, setJustifyContent, setLayoutDirection, setLocalData, setMargin, setMarginAuto, setMarginPercent, setMeasureFunction, setOriginalReactShadowNode, setOverflow, setPadding, setPaddingPercent, setPosition, setPositionPercent, setPositionType, setReactTag, setRootTag, setShouldNotifyOnLayout, setStyleAspectRatio, setStyleHeight, setStyleHeightAuto, setStyleHeightPercent, setStyleMaxHeight, setStyleMaxHeightPercent, setStyleMaxWidth, setStyleMaxWidthPercent, setStyleMinHeight, setStyleMinHeightPercent, setStyleMinWidth, setStyleMinWidthPercent, setStyleWidth, setStyleWidthAuto, setStyleWidthPercent, setThemedContext, setViewClassName, shouldNotifyOnLayout, toString, updateProperties, updateScreenLayoutpublic ARTShapeShadowNode()
public ARTShapeShadowNode(ARTShapeShadowNode node)
protected ARTShapeShadowNode copy()
copy in class ReactShadowNodeImplpublic void setShapePath(ReadableArray shapePath)
public void setStroke(ReadableArray strokeColors)
public void setStrokeDash(ReadableArray strokeDash)
public void setFill(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 ARTVirtualNodeprotected 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.