Class SpacerSequenceElement
- java.lang.Object
-
- org.jfree.layouting.renderer.process.layoutrules.SpacerSequenceElement
-
- All Implemented Interfaces:
InlineSequenceElement
public class SpacerSequenceElement extends java.lang.Object implements InlineSequenceElement
A spacer. This is some empty space (not padding, but for instance whitespaces)- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description SpacerSequenceElement(SpacerRenderNode spacerNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getMaximumWidth()
The extra-space width for an element.long
getMinimumWidth()
The width of the element.RenderNode
getNode()
boolean
isPreserveWhitespace()
-
-
-
Constructor Detail
-
SpacerSequenceElement
public SpacerSequenceElement(SpacerRenderNode spacerNode)
-
-
Method Detail
-
getMinimumWidth
public long getMinimumWidth()
The width of the element. This is the minimum width of the element.- Specified by:
getMinimumWidth
in interfaceInlineSequenceElement
- Returns:
-
getMaximumWidth
public long getMaximumWidth()
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
- Returns:
-
getNode
public RenderNode getNode()
- Specified by:
getNode
in interfaceInlineSequenceElement
-
isPreserveWhitespace
public boolean isPreserveWhitespace()
- Specified by:
isPreserveWhitespace
in interfaceInlineSequenceElement
-
-