InlineBox
object will contain the content for the entire element. Otherwise multiple
InlineBox objects will be created corresponding to each
discrete chunk of text appearing in the element. It is not rendered directly
(and hence does not extend from Box), but does play an important
role in layout (for example, when calculating min/max widths). Note that it
does not contain children. Inline content is stored as a flat list in the
layout tree. However, InlineBox does contain enough
information to reconstruct the original element nesting and this is, in fact,
done during inline layout.
InlineLayoutBox
| Modifier and Type | Field and Description |
|---|---|
| private ContentFunction | |
| private Element | |
| private boolean | |
| private int | |
| private BlockBox | |
| private FSFunction | |
| private int | |
| private boolean | |
| private int | |
| private String | |
| private String | |
| private boolean | |
| private boolean | |
| private CalculatedStyle | |
| private String | |
| private byte |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public void | |
| private void | |
| public void | |
| private int | calcMinWidthFromWordLength(LayoutContext c, int cbWidth, boolean trimLeadingSpace, boolean includeWS)
|
| public ContentFunction | |
| public Element | |
| public int | |
| public BlockBox | |
| public FSFunction | |
| private int | |
| private int | |
| public int | |
| public int | |
| public String | |
| public int | |
| public CalculatedStyle | |
| public String | |
| private String | |
| public byte | |
| private int | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private String | |
| public String | |
| public void |
| _contentFunction | back to summary |
|---|---|
| private ContentFunction _contentFunction | |
| _element | back to summary |
|---|---|
| private Element _element | |
| _endsHere | back to summary |
|---|---|
| private boolean _endsHere See | |
| _firstLineWidth | back to summary |
|---|---|
| private int _firstLineWidth | |
| _footnoteBody | back to summary |
|---|---|
| private BlockBox _footnoteBody | |
| _function | back to summary |
|---|---|
| private FSFunction _function | |
| _maxWidth | back to summary |
|---|---|
| private int _maxWidth | |
| _minMaxCalculated | back to summary |
|---|---|
| private boolean _minMaxCalculated | |
| _minWidth | back to summary |
|---|---|
| private int _minWidth | |
| _originalText | back to summary |
|---|---|
| private String _originalText | |
| _pseudoElementOrClass | back to summary |
|---|---|
| private String _pseudoElementOrClass | |
| _removableWhitespace | back to summary |
|---|---|
| private boolean _removableWhitespace | |
| _startsHere | back to summary |
|---|---|
| private boolean _startsHere See | |
| _style | back to summary |
|---|---|
| private CalculatedStyle _style | |
| _text | back to summary |
|---|---|
| private String _text | |
| _textDirection | back to summary |
|---|---|
| private byte _textDirection | |
| InlineBox | back to summary |
|---|---|
| public InlineBox(String text) | |
| appendPositioningInfo | back to summary |
|---|---|
| protected void appendPositioningInfo(StringBuilder result) | |
| applyTextTransform | back to summary |
|---|---|
| public void applyTextTransform() | |
| calcMaxWidthFromLineLength | back to summary |
|---|---|
| private void calcMaxWidthFromLineLength(LayoutContext c, int cbWidth, boolean trim) | |
| calcMinMaxWidth | back to summary |
|---|---|
| public void calcMinMaxWidth(LayoutContext c, int cbWidth, boolean trimLeadingSpace) | |
| calcMinWidthFromWordLength | back to summary |
|---|---|
| private int calcMinWidthFromWordLength(LayoutContext c, int cbWidth, boolean trimLeadingSpace, boolean includeWS) | |
| getContentFunction | back to summary |
|---|---|
| public ContentFunction getContentFunction() | |
| getElement | back to summary |
|---|---|
| public Element getElement() Implements com.
| |
| getFirstLineWidth | back to summary |
|---|---|
| public int getFirstLineWidth() | |
| getFootnoteBody | back to summary |
|---|---|
| public BlockBox getFootnoteBody() | |
| getFunction | back to summary |
|---|---|
| public FSFunction getFunction() | |
| getInlineMBP | back to summary |
|---|---|
| private int getInlineMBP(LayoutContext c, int cbWidth) | |
| getMaxCharWidth | back to summary |
|---|---|
| private int getMaxCharWidth(LayoutContext c, String s) | |
| getMaxWidth | back to summary |
|---|---|
| public int getMaxWidth() | |
| getMinWidth | back to summary |
|---|---|
| public int getMinWidth() | |
| getPseudoElementOrClass | back to summary |
|---|---|
| public String getPseudoElementOrClass() Implements com.
| |
| getSpaceWidth | back to summary |
|---|---|
| public int getSpaceWidth(LayoutContext c) | |
| getStyle | back to summary |
|---|---|
| public CalculatedStyle getStyle() Implements com.
| |
| getText | back to summary |
|---|---|
| public String getText() | |
| getText | back to summary |
|---|---|
| private String getText(boolean trimLeadingSpace) | |
| getTextDirection | back to summary |
|---|---|
public byte getTextDirection()
| |
| getTextWidth | back to summary |
|---|---|
| private int getTextWidth(LayoutContext c, String s) | |
| getTrailingSpaceWidth | back to summary |
|---|---|
| public int getTrailingSpaceWidth(LayoutContext c) | |
| hasFootnote | back to summary |
|---|---|
| public boolean hasFootnote() | |
| isDynamicFunction | back to summary |
|---|---|
| public boolean isDynamicFunction() | |
| isEndsHere | back to summary |
|---|---|
| public boolean isEndsHere() The opposite of | |
| isRemovableWhitespace | back to summary |
|---|---|
| public boolean isRemovableWhitespace() | |
| isStartsHere | back to summary |
|---|---|
| public boolean isStartsHere() Whether this is the first InlineBox for a box. For example:
| |
| setContentFunction | back to summary |
|---|---|
| public void setContentFunction(ContentFunction contentFunction) | |
| setElement | back to summary |
|---|---|
| public void setElement(Element element) Implements com.
| |
| setEndsHere | back to summary |
|---|---|
| public void setEndsHere(boolean endsHere) See | |
| setFootnote | back to summary |
|---|---|
| public void setFootnote(BlockBox footnoteBody) | |
| setFunction | back to summary |
|---|---|
| public void setFunction(FSFunction function) | |
| setPseudoElementOrClass | back to summary |
|---|---|
| public void setPseudoElementOrClass(String pseudoElementOrClass) | |
| setRemovableWhitespace | back to summary |
|---|---|
| public void setRemovableWhitespace(boolean removeableWhitespace) | |
| setStartsHere | back to summary |
|---|---|
| public void setStartsHere(boolean startsHere) See | |
| setStyle | back to summary |
|---|---|
| public void setStyle(CalculatedStyle style) Implements com.
| |
| setText | back to summary |
|---|---|
| public void setText(String text) | |
| setTextDirection | back to summary |
|---|---|
public void setTextDirection(byte direction)
| |
| shortText | back to summary |
|---|---|
| private String shortText() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| truncateText | back to summary |
|---|---|
| public void truncateText() | |