public class NoverlapLayout extends AbstractLayout implements Layout, LongTask
| Constructor and Description |
|---|
NoverlapLayout(LayoutBuilder layoutBuilder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancel the task.
|
void |
endAlgo()
Called when the algorithm is finished (canAlgo() returns false).
|
Double |
getMargin() |
LayoutProperty[] |
getProperties()
The properties for this layout.
|
Double |
getRatio() |
Double |
getSpeed() |
void |
goAlgo()
Run a step in the algorithm, should be called only if canAlgo() returns
true.
|
void |
initAlgo()
initAlgo() is called to initialize the algorithm (prepare to run).
|
void |
resetPropertiesValues()
Resets the properties values to the default values.
|
void |
setMargin(Double margin) |
void |
setProgressTicket(ProgressTicket progressTicket)
Set the progress ticket for the long task.
|
void |
setRatio(Double ratio) |
void |
setSpeed(Double speed) |
canAlgo, ensureSafeLayoutNodePositions, getBuilder, isConverged, setConverged, setGraphModelequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanAlgo, getBuilder, setGraphModelpublic NoverlapLayout(LayoutBuilder layoutBuilder)
public void initAlgo()
Layoutpublic void goAlgo()
Layoutpublic void endAlgo()
Layoutpublic LayoutProperty[] getProperties()
LayoutgetProperties in interface Layoutpublic void resetPropertiesValues()
LayoutresetPropertiesValues in interface Layoutpublic Double getSpeed()
public void setSpeed(Double speed)
public Double getRatio()
public void setRatio(Double ratio)
public Double getMargin()
public void setMargin(Double margin)
public boolean cancel()
LongTasktrue if the task has been sucessfully cancelled, false otherwise.public void setProgressTicket(ProgressTicket progressTicket)
LongTasksetProgressTicket in interface LongTaskprogressTicket - the progress ticket for this taskCopyright © 2007–2017. All rights reserved.