|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.AbstractLayoutStage
y.layout.labeling.AbstractLabelingAlgorithm
y.layout.labeling.MISLabelingAlgorithm
y.layout.labeling.SALabeling
public class SALabeling
This class is based on the enhanced profit model and places the labels of a graph using a simulated annealing strategy taking into account the amount of overlaps of labels. The algorithm is inspired by the article of Christensen, Marks and Shieber.

| Field Summary |
|---|
| Fields inherited from class y.layout.labeling.MISLabelingAlgorithm |
|---|
boxesToNodes, conflictGraph, graph, nodesToBoxes, nodesToID, OPTIMIZATION_BALANCED, OPTIMIZATION_EDGE_OVERLAP, OPTIMIZATION_LABEL_OVERLAP, OPTIMIZATION_NODE_OVERLAP, OPTIMIZATION_NONE |
| Fields inherited from interface y.layout.Layouter |
|---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
| Constructor Summary | |
|---|---|
SALabeling()
|
|
| Method Summary | |
|---|---|
long |
getMaximalDuration()
Returns the time limit for the algorithm (in milliseconds). |
boolean |
isDeterministicModeEnabled()
Returns whether or not this labeling algorithm should work deterministically. |
void |
setDeterministicModeEnabled(boolean deterministicModeEnabled)
Specifies whether or not this labeling algorithm should work deterministically. |
void |
setMaximalDuration(long msec)
Sets a time limit for the labeling algorithm. |
| Methods inherited from class y.layout.labeling.MISLabelingAlgorithm |
|---|
assignProfit, createEdges, foundEdgeOverlap, foundLabelOverlap, foundNodeOverlap, getOptimizationStrategy, setOptimizationStrategy |
| Methods inherited from class y.layout.AbstractLayoutStage |
|---|
canLayoutCore, doLayoutCore, getCoreLayouter, setCoreLayouter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SALabeling()
| Method Detail |
|---|
public boolean isDeterministicModeEnabled()
setDeterministicModeEnabled(boolean)public void setDeterministicModeEnabled(boolean deterministicModeEnabled)
By default deterministic mode is disabled.
public void setMaximalDuration(long msec)
msec - the time in millisecondspublic long getMaximalDuration()
|
© Copyright 2000-2010, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||