|
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.text.FlowFigure |
selectionStart |
| 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 |
protected BlockBox |
getBlockBox()
Returns the BlockBox associated with this. |
int |
getHorizontalAligment()
Returns the horizontal aligment. |
int |
getOrientation()
Returns this block's Bidi orientation. |
protected void |
invalidateBidi()
Overridden to do nothing since a BlockFlow is unaffected by changes in its containing block. |
void |
paintBorder(Graphics graphics)
Paints the border associated with this Figure, if one exists. |
void |
postValidate()
Called after validate has occurred. |
void |
revalidate()
Invalidates this figure and revalidates() its parent. |
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 |
setHorizontalAligment(int value)
Sets the horitontal aligment of the block. |
void |
setOrientation(int orientation)
Sets the orientation for this 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, remove, setBidiInfo, setBounds, setFlowContext, setSelection |
| 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 getOrientation()
setOrientation(int)protected BlockBox getBlockBox()
public int getHorizontalAligment()
protected void invalidateBidi()
org.eclipse.draw2d.text.FlowFigure#invalidateBidi()public void paintBorder(Graphics graphics)
Figure
paintBorder in class Figuregraphics - The Graphics used to paintFigure.paint(org.eclipse.draw2d.Graphics)public void postValidate()
FlowFigure
postValidate in class FlowFigureFlowFigure.postValidate()public void revalidate()
IFigure
revalidate in interface IFigurerevalidate in class FigureFlowFigure#revalidate(IFigure)protected void revalidateBidi(IFigure origin)
revalidateBidi in class FlowFigureorigin - the figure that was revalidatedFlowFigure.revalidateBidi(org.eclipse.draw2d.IFigure)public void setOrientation(int orientation)
NONE is used to indicate that orientation should be inherited from the
encompassing block, or LEFT_TO_RIGHT if no parent block exists.
orientation - LTR, RTL or NONEpublic 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 | ||||||||||