Eclipse Draw2d
2.1

org.eclipse.draw2d.text
Class ParagraphTextLayout

java.lang.Object
  |
  +--org.eclipse.draw2d.AbstractLayout
        |
        +--org.eclipse.draw2d.text.FlowFigureLayout
              |
              +--org.eclipse.draw2d.text.TextLayout
                    |
                    +--org.eclipse.draw2d.text.ParagraphTextLayout
All Implemented Interfaces:
LayoutManager

public class ParagraphTextLayout
extends TextLayout

The layout for TextFlow.

Since:
2.1

Field Summary
 
Fields inherited from class org.eclipse.draw2d.text.FlowFigureLayout
context, invalid
 
Fields inherited from class org.eclipse.draw2d.AbstractLayout
preferredSize
 
Constructor Summary
ParagraphTextLayout(TextFlow flow)
          Consturcts a new ParagraphTextLayout on the specified TextFlow.
 
Method Summary
protected  float getAverageCharWidth(TextFragmentBox fragment)
           
protected  void layout()
          Called during {@link #layout(IFigure).
 
Methods inherited from class org.eclipse.draw2d.text.TextLayout
getFragment
 
Methods inherited from class org.eclipse.draw2d.text.FlowFigureLayout
calculatePreferredSize, getFlowFigure, invalidate, layout, setFlowContext
 
Methods inherited from class org.eclipse.draw2d.AbstractLayout
calculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, remove, setConstraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParagraphTextLayout

public ParagraphTextLayout(TextFlow flow)
Consturcts a new ParagraphTextLayout on the specified TextFlow.

Parameters:
flow - the TextFlow
Method Detail

getAverageCharWidth

protected float getAverageCharWidth(TextFragmentBox fragment)

layout

protected void layout()
Description copied from class: FlowFigureLayout
Called during #layout(IFigure). The {@link #invalid} flag is reset after this method is called.

Specified by:
layout in class FlowFigureLayout
See Also:
FlowFigureLayout.layout()

Eclipse Draw2d
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.