|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.Figure | +--org.eclipse.draw2d.text.FlowFigure
The base implementation for text flow figures. A flow figure is used to render a document in which elements are laid out horizontally within a "line" until that line is filled. Layout continues on the next line.
WARNING: This class is not intended to be subclassed by clients. Future versions may contain additional abstract methods.
Nested Class Summary |
Nested classes inherited from class org.eclipse.draw2d.Figure |
Figure.FigureIterator |
Nested classes inherited from class org.eclipse.draw2d.IFigure |
IFigure.NoInsets |
Field Summary |
Fields inherited from class org.eclipse.draw2d.Figure |
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip |
Fields inherited from interface org.eclipse.draw2d.IFigure |
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS |
Constructor Summary | |
FlowFigure()
Constructs a new FlowFigure. |
Method Summary | |
void |
add(IFigure child,
Object constraint,
int index)
If the child is a FlowFigure , its FlowContext is passed to it. |
protected abstract FlowFigureLayout |
createDefaultFlowLayout()
Creates the default layout manager |
protected void |
paintFigure(Graphics g)
Paints this Figure's primary representation, or background. |
abstract void |
postValidate()
Called after validate has occurred. |
void |
setBounds(Rectangle r)
FlowFigures override setBounds() to prevent translation of children. |
void |
setFlowContext(FlowContext flowContext)
Sets the flow context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FlowFigure()
Method Detail |
public void add(IFigure child, Object constraint, int index)
FlowFigure
, its FlowContext is passed to it.
add
in interface IFigure
add
in class Figure
IFigure.add(IFigure, Object, int)
protected abstract FlowFigureLayout createDefaultFlowLayout()
protected void paintFigure(Graphics g)
Figure
Figure.paintClientArea(Graphics)
and Figure.paintBorder(Graphics)
. Furthermore, it is safe
to call graphics.restoreState()
within this method, and doing so will
restore the graphics to its original state upon entry.
paintFigure
in class Figure
g
- The Graphics used to paintFigure.paintFigure(Graphics)
public abstract void postValidate()
public void setBounds(Rectangle r)
setBounds
in interface IFigure
setBounds
in class Figure
r
- The new boundsFigure.setBounds(Rectangle)
public void setFlowContext(FlowContext flowContext)
flowContext
- the flow context for this flow figure
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |