public class RadialLayoutAlgorithm extends java.lang.Object implements ILayoutAlgorithm
Constructor and Description |
---|
RadialLayoutAlgorithm()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
applyLayout(boolean clean)
Makes this algorithm perform layout computation and apply it to its
context.
|
ILayoutContext |
getLayoutContext()
Returns the previously set
ILayoutContext . |
boolean |
isResizing() |
void |
setLayoutContext(ILayoutContext context)
Sets the layout context for this algorithm.
|
void |
setRangeToLayout(double startDegree,
double endDegree)
Set the range the radial layout will use when
applyLayout(boolean) is called. |
void |
setResizing(boolean resizing) |
public void applyLayout(boolean clean)
ILayoutAlgorithm
applyLayout
in interface ILayoutAlgorithm
clean
- if true the receiver should assume that the layout context has
changed significantly and recompute the whole layout even if
it keeps track of changes with listeners. False can be used
after dynamic layout in a context is turned back on so that
layout algorithm working in background can apply accumulated
changes. Static layout algorithm can ignore this call entirely
if clean is false.public void setLayoutContext(ILayoutContext context)
ILayoutAlgorithm
setLayoutContext
in interface ILayoutAlgorithm
context
- a new layout context or null if this algorithm should not
perform any layoutpublic ILayoutContext getLayoutContext()
ILayoutAlgorithm
ILayoutContext
.getLayoutContext
in interface ILayoutAlgorithm
ILayoutContext
public void setRangeToLayout(double startDegree, double endDegree)
applyLayout(boolean)
is called. Both values must be in radians.startDegree
- The start angle for this algorithm (in degree).endDegree
- The end angle for this algorithm (in degree).public boolean isResizing()
public void setResizing(boolean resizing)
resizing
- true if this algorithm should resize elements (default is
false)Copyright (c) 2014 itemis AG and others. All rights reserved.