-
- All Implemented Interfaces:
-
com.facebook.react.uimanager.ReactShadowNode
public abstract class ReactBaseTextShadowNode extends LayoutShadowNode
ReactShadowNode abstract class for spannable text nodes.
This class handles all text attributes associated with
{@code }-ish node. A concrete node can be an anchor{@code }node, an anchor{@code }node or virtual{@code * }node inside{@code }or{@code }node. Or even something else.This also node calculates Spannable object based on subnodes of the same type, which can be used in concrete classes to feed native views and compute layout.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intUNSETpublic final static StringPROP_SHADOW_OFFSETpublic final static StringPROP_SHADOW_OFFSET_WIDTHpublic final static StringPROP_SHADOW_OFFSET_HEIGHTpublic final static StringPROP_SHADOW_RADIUSpublic final static StringPROP_SHADOW_COLORpublic final static StringPROP_TEXT_TRANSFORMpublic final static intDEFAULT_TEXT_SHADOW_COLOR
-
Constructor Summary
Constructors Constructor Description ReactBaseTextShadowNode()ReactBaseTextShadowNode(ReactTextViewManagerCallback reactTextViewManagerCallback)
-
Method Summary
Modifier and Type Method Description voidsetNumberOfLines(int numberOfLines)voidsetLineHeight(float lineHeight)voidsetLetterSpacing(float letterSpacing)voidsetAllowFontScaling(boolean allowFontScaling)voidsetMaxFontSizeMultiplier(float maxFontSizeMultiplier)voidsetTextAlign(@Nullable() String textAlign)voidsetFontSize(float fontSize)voidsetColor(@Nullable() Integer color)voidsetBackgroundColor(@Nullable() Integer color)voidsetIsAccessibilityLink(@Nullable() String accessibilityRole)voidsetFontFamily(@Nullable() String fontFamily)voidsetFontWeight(@Nullable() String fontWeightString)voidsetFontVariant(@Nullable() ReadableArray fontVariantArray)voidsetFontStyle(@Nullable() String fontStyleString)voidsetIncludeFontPadding(boolean includepad)voidsetTextDecorationLine(@Nullable() String textDecorationLineString)voidsetTextBreakStrategy(@Nullable() String textBreakStrategy)voidsetTextShadowOffset(ReadableMap offsetMap)voidsetTextShadowRadius(float textShadowRadius)voidsetTextShadowColor(int textShadowColor)voidsetTextTransform(@Nullable() String textTransform)voidsetAdjustFontSizeToFit(boolean adjustsFontSizeToFit)voidsetMinimumFontScale(float minimumFontScale)-
Methods inherited from class com.facebook.react.uimanager.LayoutShadowNode
setAlignContent, setAlignItems, setAlignSelf, setAspectRatio, setBorderWidths, setCollapsable, setDisplay, setFlex, setFlexBasis, setFlexDirection, setFlexGrow, setFlexShrink, setFlexWrap, setHeight, setJustifyContent, setMargins, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPaddings, setPosition, setPositionValues, setShouldNotifyOnLayout, setShouldNotifyPointerEnter, setShouldNotifyPointerLeave, setShouldNotifyPointerMove, setWidth -
Methods inherited from class com.facebook.react.uimanager.ReactShadowNodeImpl
addChildAt, addNativeChildAt, calculateLayout, calculateLayout, calculateLayoutOnChildren, dirty, dispatchUpdates, dispose, getChildAt, getChildCount, getFlex, 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, isVirtual, isVirtualAnchor, isYogaLeafNode, markLayoutSeen, markUpdateSeen, markUpdated, onAfterUpdateTransaction, onBeforeLayout, onCollectExtraUpdates, removeAllNativeChildren, removeAndDisposeAllChildren, removeChildAt, removeNativeChildAt, setAlignContent, setAlignItems, setAlignSelf, setBaselineFunction, setBorder, setDefaultPadding, setDisplay, setFlexBasis, setFlexBasisAuto, setFlexBasisPercent, setFlexDirection, setFlexWrap, setIsLayoutOnly, setJustifyContent, setLayoutDirection, setLayoutParent, setLocalData, setMargin, setMarginAuto, setMarginPercent, setMeasureFunction, setMeasureSpecs, setOverflow, setPadding, setPaddingPercent, setPosition, setPositionPercent, setPositionType, setReactTag, setRootTag, setStyleAspectRatio, setStyleHeight, setStyleHeightAuto, setStyleHeightPercent, setStyleMaxHeight, setStyleMaxHeightPercent, setStyleMaxWidth, setStyleMaxWidthPercent, setStyleMinHeight, setStyleMinHeightPercent, setStyleMinWidth, setStyleMinWidthPercent, setStyleWidth, setStyleWidthAuto, setStyleWidthPercent, setThemedContext, setViewClassName, shouldNotifyOnLayout, toString, updateProperties -
Methods inherited from class com.facebook.react.uimanager.ReactShadowNode
addChildAt, addNativeChildAt, dispatchUpdates, getChildAt, getLayoutParent, getNativeOffsetForChild, getNativeParent, getParent, indexOf, indexOfNativeChild, isDescendantOf, removeChildAt, removeNativeChildAt, setLayoutParent -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ReactBaseTextShadowNode
ReactBaseTextShadowNode()
-
ReactBaseTextShadowNode
ReactBaseTextShadowNode(ReactTextViewManagerCallback reactTextViewManagerCallback)
-
-
Method Detail
-
setNumberOfLines
void setNumberOfLines(int numberOfLines)
-
setLineHeight
void setLineHeight(float lineHeight)
-
setLetterSpacing
void setLetterSpacing(float letterSpacing)
-
setAllowFontScaling
void setAllowFontScaling(boolean allowFontScaling)
-
setMaxFontSizeMultiplier
void setMaxFontSizeMultiplier(float maxFontSizeMultiplier)
-
setTextAlign
void setTextAlign(@Nullable() String textAlign)
-
setFontSize
void setFontSize(float fontSize)
-
setBackgroundColor
void setBackgroundColor(@Nullable() Integer color)
-
setIsAccessibilityLink
void setIsAccessibilityLink(@Nullable() String accessibilityRole)
-
setFontFamily
void setFontFamily(@Nullable() String fontFamily)
-
setFontWeight
void setFontWeight(@Nullable() String fontWeightString)
-
setFontVariant
void setFontVariant(@Nullable() ReadableArray fontVariantArray)
-
setFontStyle
void setFontStyle(@Nullable() String fontStyleString)
-
setIncludeFontPadding
void setIncludeFontPadding(boolean includepad)
-
setTextDecorationLine
void setTextDecorationLine(@Nullable() String textDecorationLineString)
-
setTextBreakStrategy
void setTextBreakStrategy(@Nullable() String textBreakStrategy)
-
setTextShadowOffset
void setTextShadowOffset(ReadableMap offsetMap)
-
setTextShadowRadius
void setTextShadowRadius(float textShadowRadius)
-
setTextShadowColor
void setTextShadowColor(int textShadowColor)
-
setTextTransform
void setTextTransform(@Nullable() String textTransform)
-
setAdjustFontSizeToFit
void setAdjustFontSizeToFit(boolean adjustsFontSizeToFit)
-
setMinimumFontScale
void setMinimumFontScale(float minimumFontScale)
-
-
-
-