org.jfree.layouting.renderer.model

Class SpacerRenderNode

public class SpacerRenderNode extends RenderNode

A spacer reserves space for whitespaces found in the text. When encountered at the beginning or end of lines, it gets removed.

Spacers are always considered discardable, so when encountered alone, they will get pruned.

Author: Thomas Morgner

Constructor Summary
SpacerRenderNode()
SpacerRenderNode(long width, long height, boolean preserve)
Method Summary
booleanisDiscardable()
booleanisEmpty()
booleanisIgnorableForRendering()
If that method returns true, the element will not be used for rendering.

Constructor Detail

SpacerRenderNode

public SpacerRenderNode()

SpacerRenderNode

public SpacerRenderNode(long width, long height, boolean preserve)

Method Detail

isDiscardable

public boolean isDiscardable()

isEmpty

public boolean isEmpty()

isIgnorableForRendering

public boolean isIgnorableForRendering()
If that method returns true, the element will not be used for rendering. For the purpose of computing sizes or performing the layouting (in the validate() step), this element will treated as if it is not there.

If the element reports itself as non-empty, however, it will affect the margin computation.

Returns: