Package com.openhtmltopdf.render
Class InlineBox
java.lang.Object
com.openhtmltopdf.render.InlineBox
- All Implemented Interfaces:
Styleable
public class InlineBox extends Object implements Styleable
A class which represents a portion of an inline element. If an inline element
does not contain any nested elements, then a single
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.- See Also:
InlineLayoutBox
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Method Details
-
setTextDirection
public void setTextDirection(byte direction)- Parameters:
direction- either LTR or RTL fromBidiSplitterinterface.
-
getTextDirection
public byte getTextDirection()- Returns:
- either LTR or RTL from
BidiSplitterinterface.
-
getText
-
setText
-
applyTextTransform
public void applyTextTransform() -
isRemovableWhitespace
public boolean isRemovableWhitespace() -
setRemovableWhitespace
public void setRemovableWhitespace(boolean removeableWhitespace) -
isEndsHere
public boolean isEndsHere() -
setEndsHere
public void setEndsHere(boolean endsHere) -
isStartsHere
public boolean isStartsHere() -
setStartsHere
public void setStartsHere(boolean startsHere) -
getStyle
-
setStyle
-
getElement
- Specified by:
getElementin interfaceStyleable
-
setElement
- Specified by:
setElementin interfaceStyleable
-
getContentFunction
-
setContentFunction
-
isDynamicFunction
public boolean isDynamicFunction() -
getSpaceWidth
-
getTrailingSpaceWidth
-
calcMinMaxWidth
-
getMaxWidth
public int getMaxWidth() -
getMinWidth
public int getMinWidth() -
getFirstLineWidth
public int getFirstLineWidth() -
getPseudoElementOrClass
- Specified by:
getPseudoElementOrClassin interfaceStyleable
-
setPseudoElementOrClass
-
toString
-
appendPositioningInfo
-
getFunction
-
setFunction
-
truncateText
public void truncateText()
-