org.pentaho.reporting.engine.classic.core.layout.process.layoutrules
Interface InlineSequenceElement

All Known Implementing Classes:
EndSequenceElement, InlineBoxSequenceElement, InlineNodeSequenceElement, ReplacedContentSequenceElement, SpacerSequenceElement, StartSequenceElement, TextSequenceElement

public interface InlineSequenceElement

A sequence element. Usually all elements get their maximum width. There are only a few special cases, where the minimum width needs to be considered:

* The element is an inline-block and there is not enough space to print he complete element. The element is guaranteed to always get its minimum width.

Author:
Thomas Morgner

Nested Class Summary
static class InlineSequenceElement.Classification
           
 
Field Summary
static int CONTENT
           
static int END
           
static int START
           
 
Method Summary
 int getClassification()
           
 long getMaximumWidth(RenderNode node)
          The maximum width an element wants to take.
 long getMinimumWidth(RenderNode node)
          The minimum width of the element.
 InlineSequenceElement.Classification getType()
           
 boolean isPreserveWhitespace(RenderNode node)
           
 

Field Detail

START

static final int START
See Also:
Constant Field Values

CONTENT

static final int CONTENT
See Also:
Constant Field Values

END

static final int END
See Also:
Constant Field Values
Method Detail

getMinimumWidth

long getMinimumWidth(RenderNode node)
The minimum width of the element. This is the minimum width of the element.

Returns:

getMaximumWidth

long getMaximumWidth(RenderNode node)
The maximum width an element wants to take. This returns the preferred size; even if offered more space, an element would not consume more than that.

Returns:

isPreserveWhitespace

boolean isPreserveWhitespace(RenderNode node)

getClassification

int getClassification()

getType

InlineSequenceElement.Classification getType()