|
Eclipse Draw2d 3.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The context that a FlowFigureLayout uses to perform its layout.
WARNING: This interface is not intended to be implemented by clients. It exists to define the API between the layout and its context.
| Method Summary | |
void |
addLine(CompositeBox box)
Adds an entire line into the context. |
void |
addToCurrentLine(FlowBox box)
Adds the given box into the current line. |
void |
endLine()
The current line should be committed if it is occupied, and then set to null. |
boolean |
getContinueOnSameLine()
This method is used to convey layout state to different FlowFigures. |
int |
getRemainingLineWidth()
This method can be used to query the amount of space left on the current line. |
void |
getWidthLookahead(FlowFigure child,
int[] width)
This method looks ahead for line-breaks. |
boolean |
isCurrentLineOccupied()
|
void |
setContinueOnSameLine(boolean value)
This method is used to convey layout state to different FlowFigures. |
| Method Detail |
public void addToCurrentLine(FlowBox box)
box - the FlowBox to addpublic void addLine(CompositeBox box)
box - the line being addedpublic void endLine()
null. Otherwise, do nothing.
public int getRemainingLineWidth()
public boolean getContinueOnSameLine()
true if the next fragment should be placed on the current linesetContinueOnSameLine(boolean)
public void getWidthLookahead(FlowFigure child,
int[] width)
child - the search will occur starting from the figure after the given childwidth - 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 arraypublic boolean isCurrentLineOccupied()
true if the current line contains any fragmentspublic void setContinueOnSameLine(boolean value)
value - true indicates that the first fragment of the next TextFlow
should be laid out on the current line, and not a new onegetContinueOnSameLine()
|
Eclipse Draw2d 3.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||