Class InlineBoxSequenceElement
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.layout.process.layoutrules.InlineNodeSequenceElement
-
- org.pentaho.reporting.engine.classic.core.layout.process.layoutrules.InlineBoxSequenceElement
-
- All Implemented Interfaces:
InlineSequenceElement
public class InlineBoxSequenceElement extends InlineNodeSequenceElement
Anthing that is not text. This could be an image or an inline-block element. For now, we assume that these beasts are not breakable at the end of the line (outer linebreaks).- Author:
- Thomas Morgner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.pentaho.reporting.engine.classic.core.layout.process.layoutrules.InlineSequenceElement
InlineSequenceElement.Classification
-
-
Field Summary
Fields Modifier and Type Field Description static InlineSequenceElement
INSTANCE
-
Fields inherited from interface org.pentaho.reporting.engine.classic.core.layout.process.layoutrules.InlineSequenceElement
CONTENT, END, START
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getMaximumWidth(RenderNode node)
The extra-space width for an element.long
getMinimumWidth(RenderNode node)
The width of the element.boolean
isPreserveWhitespace(RenderNode node)
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.layout.process.layoutrules.InlineNodeSequenceElement
getClassification, getType
-
-
-
-
Field Detail
-
INSTANCE
public static final InlineSequenceElement INSTANCE
-
-
Method Detail
-
getMinimumWidth
public long getMinimumWidth(RenderNode node)
The width of the element. This is the minimum width of the element.- Specified by:
getMinimumWidth
in interfaceInlineSequenceElement
- Overrides:
getMinimumWidth
in classInlineNodeSequenceElement
- Returns:
-
getMaximumWidth
public long getMaximumWidth(RenderNode node)
Description copied from class:InlineNodeSequenceElement
The extra-space width for an element. Some elements can expand to fill some more space (justified text is a good example, adding some space between the letters of each word to reduce the inner-word spacing).- Specified by:
getMaximumWidth
in interfaceInlineSequenceElement
- Overrides:
getMaximumWidth
in classInlineNodeSequenceElement
- Returns:
-
isPreserveWhitespace
public boolean isPreserveWhitespace(RenderNode node)
- Specified by:
isPreserveWhitespace
in interfaceInlineSequenceElement
- Overrides:
isPreserveWhitespace
in classInlineNodeSequenceElement
-
-