|
Eclipse Draw2d 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.Figure
org.eclipse.draw2d.text.FlowFigure
org.eclipse.draw2d.text.BlockFlow
A FlowFigure represented by a single BlockBox fragment containing
one or more lines. A BlockFlow is a creator of LineBoxes, which its children require
during layout. A BlockFlow can be thought of as a paragraph.
BlockFlows should be nested inside other BlockFlows, but it is also valid to place
them in InlineFlows. FlowPage can be used as a "root" block and can be added to
normal draw2d Figures.
Only FlowFigures can be added to a BlockFlow.
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, Figure.IdentitySearch |
| 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 | |
BlockFlow()
Constructs a new BlockFlow. |
|
| Method Summary | |
protected void |
contributeBidi(BidiProcessor proc)
BlockFlows contribute a paragraph separator so as to keep the Bidi state of the text on either side of this block from affecting each other. |
protected FlowFigureLayout |
createDefaultFlowLayout()
Creates the default layout manager |
int |
getBidiOrientation()
Returns this block's Bidi orientation. |
protected BlockBox |
getBlockBox()
Returns the BlockBox associated with this. |
int |
getHorizontalAligment()
Returns the horizontal aligment. |
protected void |
invalidateBidi()
Overridden to do nothing since a BlockFlow is unaffected by changes in its containing block. |
void |
postValidate()
Called after validate has occurred. |
protected void |
revalidateBidi(IFigure origin)
A Block will invalidate the Bidi state of all its children, so that it is re-evaluated when this block is next validated. |
void |
setBidiOrientation(int newOrientation)
Sets the Bidi orientation for this block. |
void |
setHorizontalAligment(int value)
Sets the horitontal aligment of the block. |
protected boolean |
useLocalCoordinates()
Returns true if this Figure uses local coordinates. |
void |
validate()
Re-evaluate the Bidi state of all the fragments if it has been invalidated. |
| Methods inherited from class org.eclipse.draw2d.text.FlowFigure |
add, addLeadingWordRequirements, getBidiValues, remove, setAppendJoiner, setBidiValues, setBounds, setFlowContext, setPrependJoiner |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BlockFlow()
| Method Detail |
protected void contributeBidi(BidiProcessor proc)
contributeBidi in class FlowFigureproc - the BidiProcessor to which contributions should be madeFlowFigure.contributeBidi(org.eclipse.draw2d.text.BidiProcessor)protected FlowFigureLayout createDefaultFlowLayout()
FlowFigure
createDefaultFlowLayout in class FlowFigureFlowFigure.createDefaultFlowLayout()public int getBidiOrientation()
setBidiOrientation(int)protected BlockBox getBlockBox()
public int getHorizontalAligment()
protected void invalidateBidi()
invalidateBidi in class FlowFigureFlowFigure.invalidateBidi()public void postValidate()
FlowFigure
postValidate in class FlowFigureFlowFigure.postValidate()protected void revalidateBidi(IFigure origin)
revalidateBidi in class FlowFigureorigin - the figure that was revalidatedFlowFigure.revalidateBidi(org.eclipse.draw2d.IFigure)public void setBidiOrientation(int newOrientation)
newOrientation - SWT.LEFT_TO_RIGHT or SWT.RIGHT_TO_LEFT or SWT.NONE (inherit from
containing block)public void setHorizontalAligment(int value)
value - the aligmentprotected boolean useLocalCoordinates()
Figuretrue if this Figure uses local coordinates. This means its
children are placed relative to this Figure's top-left corner.
useLocalCoordinates in class Figuretrue if this Figure uses local coordinatesFigure.useLocalCoordinates()public void validate()
validate in interface IFigurevalidate in class FigureIFigure.validate()
|
Eclipse Draw2d 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||