public class InlineText extends Object
| Constructor and Description |
|---|
InlineText() |
| Modifier and Type | Method and Description |
|---|---|
float |
calcTotalAdjustment(JustificationInfo info) |
void |
countJustifiableChars(CharCounts counts) |
int |
getEnd() |
FunctionData |
getFunctionData() |
float |
getLetterSpacing()
Deprecated.
Use
getTextSpacing(), which also carries the word-spacing.
This method will be removed in a future release. |
String |
getMasterText() |
InlineLayoutBox |
getParent() |
int |
getStart() |
String |
getSubstring() |
byte |
getTextDirection() |
String |
getTextExportText() |
TextSpacing |
getTextSpacing() |
int |
getWidth() |
int |
getX() |
boolean |
isDynamicFunction() |
boolean |
isEmpty() |
boolean |
isEndsOnSoftHyphen() |
static boolean |
isJustifySpaceCodePoint(int cp) |
boolean |
isTrimmedLeadingSpace() |
void |
paint(RenderingContext c) |
void |
paintSelection(RenderingContext c) |
void |
setEndsOnSoftHyphen(boolean endsOnSoftHyphen) |
void |
setFunctionData(FunctionData functionData) |
void |
setLetterSpacing(float letterSpacing)
Deprecated.
Use
setTextSpacing(TextSpacing), which sets word-spacing
too. This method leaves any word-spacing already set alone, and will be
removed in a future release. |
void |
setMasterText(String masterText) |
void |
setParent(InlineLayoutBox parent) |
void |
setSubstring(int start,
int end) |
void |
setTextDirection(byte direction) |
void |
setTextSpacing(TextSpacing spacing)
The extra spacing (letter-spacing and word-spacing) that was applied to
this text during layout and must be applied again when it is drawn.
|
void |
setTrimmedLeadingSpace(boolean trimmedLeadingSpace) |
void |
setWidth(int width) |
void |
setX(int x) |
String |
toString() |
void |
trimTrailingSpace(LayoutContext c) |
void |
updateDynamicValue(RenderingContext c) |
public void setTextDirection(byte direction)
direction - either LTR or RTL from BidiSplitter interface.public byte getTextDirection()
public void setTextSpacing(TextSpacing spacing)
public TextSpacing getTextSpacing()
@Deprecated public void setLetterSpacing(float letterSpacing)
setTextSpacing(TextSpacing), which sets word-spacing
too. This method leaves any word-spacing already set alone, and will be
removed in a future release.@Deprecated public float getLetterSpacing()
getTextSpacing(), which also carries the word-spacing.
This method will be removed in a future release.public void trimTrailingSpace(LayoutContext c)
public boolean isEmpty()
public String getSubstring()
public void setSubstring(int start,
int end)
public String getMasterText()
public void setMasterText(String masterText)
public int getX()
public void setX(int x)
public int getWidth()
public void setWidth(int width)
public void paint(RenderingContext c)
public void paintSelection(RenderingContext c)
public InlineLayoutBox getParent()
public void setParent(InlineLayoutBox parent)
public boolean isDynamicFunction()
public FunctionData getFunctionData()
public void setFunctionData(FunctionData functionData)
public void updateDynamicValue(RenderingContext c)
public String getTextExportText()
public boolean isTrimmedLeadingSpace()
public void setTrimmedLeadingSpace(boolean trimmedLeadingSpace)
public static boolean isJustifySpaceCodePoint(int cp)
public void countJustifiableChars(CharCounts counts)
public float calcTotalAdjustment(JustificationInfo info)
public int getStart()
public int getEnd()
public void setEndsOnSoftHyphen(boolean endsOnSoftHyphen)
public boolean isEndsOnSoftHyphen()
Copyright © 2004–2026. All rights reserved.