org.eclipse.draw2d.text
Class TextLayout

java.lang.Object
  extended byorg.eclipse.draw2d.AbstractLayout
      extended byorg.eclipse.draw2d.text.FlowFigureLayout
          extended byorg.eclipse.draw2d.text.TextLayout
All Implemented Interfaces:
LayoutManager
Direct Known Subclasses:
ParagraphTextLayout, SimpleTextLayout

public abstract class TextLayout
extends FlowFigureLayout

Since:
2.1

Field Summary
 
Fields inherited from class org.eclipse.draw2d.text.FlowFigureLayout
context, invalid
 
Fields inherited from class org.eclipse.draw2d.AbstractLayout
isObservingVisibility, preferredSize
 
Constructor Summary
TextLayout(TextFlow flow)
          Creates a new TextLayout with the given TextFlow
 
Method Summary
protected  TextFragmentBox getFragment(int i, java.util.List fragments)
          Reuses an existing TextFragmentBox, or creates a new one.
 
Methods inherited from class org.eclipse.draw2d.text.FlowFigureLayout
calculatePreferredSize, getFlowFigure, invalidate, layout, layout, setFlowContext
 
Methods inherited from class org.eclipse.draw2d.AbstractLayout
calculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, isObservingVisibility, remove, setConstraint, setObserveVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextLayout

public TextLayout(TextFlow flow)
Creates a new TextLayout with the given TextFlow

Parameters:
flow - The TextFlow
Method Detail

getFragment

protected TextFragmentBox getFragment(int i,
                                      java.util.List fragments)
Reuses an existing TextFragmentBox, or creates a new one.

Parameters:
i - the index
fragments - the original list of fragments
Returns:
a TextFragmentBox