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() |
| Modifier and Type | Method and Description |
|---|---|
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, calculateLayout, calculateLayoutOnChildren, dirty, dispatchUpdates, dispose, getChildAt, getChildCount, getHeightMeasureSpec, getHierarchyInfo, getLayoutDirection, getLayoutHeight, getLayoutParent, getLayoutWidth, getLayoutX, getLayoutY, getNativeChildCount, getNativeKind, getNativeOffsetForChild, getNativeParent, getPadding, getParent, getReactTag, getRootTag, getScreenHeight, getScreenWidth, getScreenX, getScreenY, getStyleHeight, getStylePadding, getStyleWidth, getThemedContext, getTotalNativeChildren, getViewClass, getWidthMeasureSpec, hasNewLayout, hasUnseenUpdates, hasUpdates, hoistNativeChildren, indexOf, indexOfNativeChild, isDescendantOf, isDirty, isLayoutOnly, isMeasureDefined, isVirtualAnchor, isYogaLeafNode, markLayoutSeen, markUpdated, markUpdateSeen, 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, setLayoutParent, setLocalData, setMargin, setMarginAuto, setMarginPercent, setMeasureFunction, setMeasureSpecs, 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, updatePropertiespublic 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.