|
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 | +--org.eclipse.draw2d.text.BlockFlow | +--org.eclipse.draw2d.text.FlowPage
The root of a Flow hierarchy. A flow page can be treated as a normal figure, but contains FlowFigures.
A FlowPage will not have a defined width unless it is inside a figure whose layout
provides width hints when calling
IFigure.getPreferredSize(int, int)
.
WARNING: This class is not intended to be subclassed by clients.
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 | |
FlowPage()
|
Method Summary | |
protected FlowFigureLayout |
createDefaultFlowLayout()
Creates the default layout manager |
Dimension |
getMinimumSize(int w,
int h)
Returns a hint indicating the smallest desireable size for the IFigure. |
Dimension |
getPreferredSize(int width,
int h)
Returns the desireable size for this IFigure using the provided width and height hints. |
void |
invalidate()
Invalidates this IFigure. |
void |
postValidate()
Called after validate has occurred. |
void |
setBounds(Rectangle r)
FlowFigures override setBounds() to prevent translation of children. |
void |
validate()
Causes this IFigure to layout itself, as well as its children. |
Methods inherited from class org.eclipse.draw2d.text.BlockFlow |
getBlockBox, getHorizontalAligment, setHorizontalAligment, useLocalCoordinates |
Methods inherited from class org.eclipse.draw2d.text.FlowFigure |
add, paintFigure, setFlowContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FlowPage()
Method Detail |
protected FlowFigureLayout createDefaultFlowLayout()
FlowFigure
createDefaultFlowLayout
in class BlockFlow
BlockFlow.createDefaultFlowLayout()
public Dimension getMinimumSize(int w, int h)
IFigure
getMinimumSize
in interface IFigure
getMinimumSize
in class Figure
Figure.getMinimumSize()
public void invalidate()
IFigure
invalidate
in interface IFigure
invalidate
in class Figure
Figure.invalidate()
public Dimension getPreferredSize(int width, int h)
IFigure
getPreferredSize
in interface IFigure
getPreferredSize
in class Figure
Figure.getPreferredSize(int, int)
public void postValidate()
FlowFigure
postValidate
in class BlockFlow
BlockFlow.postValidate()
public void setBounds(Rectangle r)
FlowFigure
setBounds
in interface IFigure
setBounds
in class FlowFigure
FlowFigure.setBounds(Rectangle)
public void validate()
IFigure
validate
in interface IFigure
validate
in class Figure
Figure.validate()
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |