Package icyllis.modernui.graphics.text
Class MeasuredText.ReplacementRun
java.lang.Object
icyllis.modernui.graphics.text.MeasuredText.Run
icyllis.modernui.graphics.text.MeasuredText.ReplacementRun
- Enclosing class:
MeasuredText
-
Field Summary
Fields inherited from class icyllis.modernui.graphics.text.MeasuredText.Run
mEnd, mStart
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canBreak()
float
getAdvance
(char[] text, int pos) float
getAdvance
(char[] text, int start, int end) void
getExtent
(char[] text, int start, int end, FontMetricsInt extent) int
int
int
boolean
isRtl()
void
measure
(char[] text, boolean computeLayout) toString()
-
Method Details
-
measure
- Specified by:
measure
in classMeasuredText.Run
-
getExtent
- Specified by:
getExtent
in classMeasuredText.Run
-
getAdvance
public float getAdvance(char[] text, int pos) - Specified by:
getAdvance
in classMeasuredText.Run
-
getAdvance
public float getAdvance(char[] text, int start, int end) - Specified by:
getAdvance
in classMeasuredText.Run
-
isRtl
public boolean isRtl()- Specified by:
isRtl
in classMeasuredText.Run
-
canBreak
public boolean canBreak()- Specified by:
canBreak
in classMeasuredText.Run
-
getLocale
- Specified by:
getLocale
in classMeasuredText.Run
-
getLineBreakStyle
public int getLineBreakStyle()- Specified by:
getLineBreakStyle
in classMeasuredText.Run
-
getLineBreakWordStyle
public int getLineBreakWordStyle()- Specified by:
getLineBreakWordStyle
in classMeasuredText.Run
-
getMemoryUsage
public int getMemoryUsage()- Specified by:
getMemoryUsage
in classMeasuredText.Run
-
toString
-