org.pentaho.reporting.engine.classic.core.layout.process.layoutrules
Class TextSequenceElement

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.layout.process.layoutrules.TextSequenceElement
All Implemented Interfaces:
InlineSequenceElement

public class TextSequenceElement
extends Object
implements InlineSequenceElement

Text in a line. A text item is special as it may shrink or stretch to better fit the line. If hyphenation is implemented, it may even split or change into a different text (this happens a lot in the german language).

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
static InlineSequenceElement INSTANCE
           
 
Fields inherited from interface org.pentaho.reporting.engine.classic.core.layout.process.layoutrules.InlineSequenceElement
CONTENT, END, START
 
Method Summary
 int getClassification()
           
 long getMaximumWidth(RenderNode node)
          The extra-space width for an element.
 long getMinimumWidth(RenderNode node)
          The width of the element.
 InlineSequenceElement.Classification getType()
           
 boolean isPreserveWhitespace(RenderNode node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface InlineSequenceElement
Returns:

getMaximumWidth

public long getMaximumWidth(RenderNode node)
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 interface InlineSequenceElement
Returns:

isPreserveWhitespace

public boolean isPreserveWhitespace(RenderNode node)
Specified by:
isPreserveWhitespace in interface InlineSequenceElement

getClassification

public int getClassification()
Specified by:
getClassification in interface InlineSequenceElement

getType

public InlineSequenceElement.Classification getType()
Specified by:
getType in interface InlineSequenceElement