-
- 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 int
UNSET
public final static String
PROP_SHADOW_OFFSET
public final static String
PROP_SHADOW_OFFSET_WIDTH
public final static String
PROP_SHADOW_OFFSET_HEIGHT
public final static String
PROP_SHADOW_RADIUS
public final static String
PROP_SHADOW_COLOR
public final static String
PROP_TEXT_TRANSFORM
public final static int
DEFAULT_TEXT_SHADOW_COLOR
-
Constructor Summary
Constructors Constructor Description ReactBaseTextShadowNode()
ReactBaseTextShadowNode(ReactTextViewManagerCallback reactTextViewManagerCallback)
-
Method Summary
Modifier and Type Method Description void
setNumberOfLines(int numberOfLines)
void
setLineHeight(float lineHeight)
void
setLetterSpacing(float letterSpacing)
void
setAllowFontScaling(boolean allowFontScaling)
void
setMaxFontSizeMultiplier(float maxFontSizeMultiplier)
void
setTextAlign(@Nullable() String textAlign)
void
setFontSize(float fontSize)
void
setColor(@Nullable() Integer color)
void
setBackgroundColor(@Nullable() Integer color)
void
setIsAccessibilityLink(@Nullable() String accessibilityRole)
void
setFontFamily(@Nullable() String fontFamily)
void
setFontWeight(@Nullable() String fontWeightString)
void
setFontVariant(@Nullable() ReadableArray fontVariantArray)
void
setFontStyle(@Nullable() String fontStyleString)
void
setIncludeFontPadding(boolean includepad)
void
setTextDecorationLine(@Nullable() String textDecorationLineString)
void
setTextBreakStrategy(@Nullable() String textBreakStrategy)
void
setTextShadowOffset(ReadableMap offsetMap)
void
setTextShadowRadius(float textShadowRadius)
void
setTextShadowColor(int textShadowColor)
void
setTextTransform(@Nullable() String textTransform)
void
setAdjustFontSizeToFit(boolean adjustsFontSizeToFit)
void
setMinimumFontScale(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)
-
-
-
-