|
Eclipse Draw2d 3.1 |
||||||||||
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.InlineFlow
A FlowFigure
represented by multiple LineBox
fragments. An
InlineFlow
's parent must be either a BlockFlow
or another
InlineFlow.
An InlineFlow may contain other InlineFlow figures.
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 | |
InlineFlow()
|
Method Summary | |
boolean |
addLeadingWordRequirements(int[] width)
Iterates over the children to find the width before a line-break is encountered. |
boolean |
containsPoint(int x,
int y)
Extended to return false if the point is not also contained by at least one fragment. |
protected FlowFigureLayout |
createDefaultFlowLayout()
Creates the default layout manager |
List |
getFragments()
Returns the LineBox fragments contained in this InlineFlow |
protected void |
paintBorder(Graphics graphics)
Overridden to paint a FlowBorder if present, and draw selection. |
protected void |
paintSelection(Graphics graphics)
Renders the XOR selection rectangles to the graphics. |
void |
postValidate()
Called after validate has occurred. |
void |
setBorder(Border border)
Overridden to assert that only FlowBorder is used. |
Methods inherited from class org.eclipse.draw2d.text.FlowFigure |
add, contributeBidi, remove, revalidateBidi, 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 InlineFlow()
Method Detail |
public boolean addLeadingWordRequirements(int[] width)
addLeadingWordRequirements
in class FlowFigure
width
- the width before the next line-break (if one's found; all the width,
otherwise) will be added on to the first int in the given array
FlowFigure.addLeadingWordRequirements(int[])
public boolean containsPoint(int x, int y)
containsPoint
in interface IFigure
containsPoint
in class Figure
x
- the relative x coordinatey
- the relative y coordinate
true
if a fragment contains the given pointIFigure.containsPoint(int, int)
protected FlowFigureLayout createDefaultFlowLayout()
FlowFigure
createDefaultFlowLayout
in class FlowFigure
FlowFigure.createDefaultFlowLayout()
public List getFragments()
LineBox
fragments contained in this InlineFlow
protected void paintBorder(Graphics graphics)
FlowBorder
if present, and draw selection. The border is
painted first, followed by selection which is generally done in XOR, which still allows
the border to be seen.
paintBorder
in class Figure
graphics
- the graphicsBorder.paint(IFigure, Graphics, Insets)
protected void paintSelection(Graphics graphics)
graphics
- the graphics to paint onpublic void postValidate()
FlowFigure
postValidate
in class FlowFigure
FlowFigure.postValidate()
public void setBorder(Border border)
FlowBorder
is used. null
is still a
valid value as well.
setBorder
in interface IFigure
setBorder
in class Figure
border
- null
or a FlowBorderIFigure.setBorder(Border)
|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |