Package org.eclipse.zest.cloudio.layout
Class DefaultLayouter
java.lang.Object
org.eclipse.zest.cloudio.layout.DefaultLayouter
- All Implemented Interfaces:
- ILayouter
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetInitialOffset(Word word, Rectangle cloudArea) Calculates the initial offset of the given word, within the bounds of the specified rectangle.booleanlayout(Point offset, Word word, Rectangle cloudArea, CloudMatrix mainTree) Tries to position the given word in the given area.voidSet Layouter-specific options.
- 
Field Details- 
X_AXIS_VARIATION- See Also:
 
- 
Y_AXIS_VARIATION- See Also:
 
 
- 
- 
Constructor Details- 
DefaultLayouterpublic DefaultLayouter(int i, int j) 
 
- 
- 
Method Details- 
getInitialOffsetDescription copied from interface:ILayouterCalculates the initial offset of the given word, within the bounds of the specified rectangle. The layout algorithm will try to find a matching position around the initial offset.- Specified by:
- getInitialOffsetin interface- ILayouter
- Parameters:
- word-
- cloudArea-
 
- 
layoutTries to position the given word in the given area. First a start point is chosen, then theRectTreeof the word and the main area is used to detect whether the word can be placed at the given position, or not. If not, the current point is moved slightly in a spiral manner, similar to the approach of Wordle.
- 
setOptionDescription copied from interface:ILayouterSet Layouter-specific options. SeeDefaultLayouteras an example.
 
-