Modifier and Type | Field and Description |
---|---|
static java.lang.String |
X_AXIS_VARIATION |
static java.lang.String |
Y_AXIS_VARIATION |
Constructor and Description |
---|
DefaultLayouter(int i,
int j) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.Point |
getInitialOffset(Word word,
org.eclipse.swt.graphics.Rectangle cloudArea)
Calculates the initial offset of the given word, within the bounds of the
specified rectangle.
|
boolean |
layout(org.eclipse.swt.graphics.Point offset,
Word word,
org.eclipse.swt.graphics.Rectangle cloudArea,
CloudMatrix mainTree)
Tries to position the given word in the given area.
|
void |
setOption(java.lang.String optionName,
java.lang.Object object)
Set Layouter-specific options.
|
public static final java.lang.String X_AXIS_VARIATION
public static final java.lang.String Y_AXIS_VARIATION
public org.eclipse.swt.graphics.Point getInitialOffset(Word word, org.eclipse.swt.graphics.Rectangle cloudArea)
ILayouter
getInitialOffset
in interface ILayouter
public boolean layout(org.eclipse.swt.graphics.Point offset, Word word, org.eclipse.swt.graphics.Rectangle cloudArea, CloudMatrix mainTree)
RectTree
of 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.public void setOption(java.lang.String optionName, java.lang.Object object)
ILayouter
DefaultLayouter
as an example.Copyright (c) 2000, 2012 itemis AG and others. All rights reserved.