Package icyllis.modernui.graphics.text
Class MeasuredText.Run
java.lang.Object
icyllis.modernui.graphics.text.MeasuredText.Run
- Direct Known Subclasses:
MeasuredText.ReplacementRun
,MeasuredText.StyleRun
- Enclosing class:
MeasuredText
A logical run, subrange of bidi run.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
canBreak()
abstract float
getAdvance
(char[] text, int pos) abstract float
getAdvance
(char[] text, int start, int end) abstract void
getExtent
(char[] text, int start, int end, FontMetricsInt extent) abstract int
abstract int
abstract Locale
abstract int
abstract boolean
isRtl()
abstract void
measure
(char[] text, boolean computeLayout)
-
Field Details
-
mStart
public final int mStart -
mEnd
public final int mEnd
-
-
Method Details
-
measure
-
getExtent
public abstract void getExtent(@NonNull char[] text, int start, int end, @NonNull FontMetricsInt extent) -
getAdvance
public abstract float getAdvance(char[] text, int pos) -
getAdvance
public abstract float getAdvance(char[] text, int start, int end) -
isRtl
public abstract boolean isRtl() -
canBreak
public abstract boolean canBreak() -
getLocale
-
getLineBreakStyle
public abstract int getLineBreakStyle() -
getLineBreakWordStyle
public abstract int getLineBreakWordStyle() -
getMemoryUsage
public abstract int getMemoryUsage()
-