|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.linkmap.layout.GraphLayoutManager
info.aduna.linkmap.layout.SubgraphRelocationManager
public class SubgraphRelocationManager
A SubgraphRelocationManager is a GraphLayoutManager that uses other GraphLayoutManagers to calculate the layout for every connected subgraph of the total Graph, and combines the various parts of the Graph in a rectangular, square-like shape (if possible) so that the total amount of area needed by the Graph is close to minimal.
| Field Summary | |
|---|---|
static int |
DEFAULT_BASELINE_INTERVAL
The default value of the baseline interval parameter. |
static double |
DEFAULT_SUBGRAPH_PADDING
The default value of the subgraph padding parameter. |
| Constructor Summary | |
|---|---|
SubgraphRelocationManager(GraphLayoutManager subgraphLayoutManager)
Create a new SubgraphRelocationManager with the specified subgraph GraphLayoutManager, default subgraph padding and (perhaps initially) no GraphRenderer. |
|
SubgraphRelocationManager(GraphLayoutManager subgraphLayoutManager,
GraphRenderer renderer)
Create a new SubgraphRelocationManager with the specified subgraph GraphLayoutManager and GraphRenderer and with default subgraph padding. |
|
SubgraphRelocationManager(GraphLayoutManager subgraphLayoutManager,
GraphRenderer renderer,
double subgraphPadding)
Create a new SubgraphRelocationManager calculating layouts using the specified subgraph GraphLayoutManager, GraphRenderer and subgraph padding. |
|
| Method Summary | |
|---|---|
void |
addSubgraphRelocationListener(SubgraphRelocationListener listener)
Add a SubgraphRelocationListener to this SubgraphRelocationManager. |
LayoutConverter |
createLayoutConverter()
This method passes the invocation to the subgraph layout manager, and returns 'null' when there is none. |
void |
doLayout()
Calculates a layout for the complete Graph registered in this SubgraphRelocationManager. |
int |
getBaselineInterval()
|
GraphRenderer |
getGraphRenderer()
|
GraphLayoutManager |
getSubgraphLayoutManager()
|
double |
getSubgraphPadding()
|
void |
initialize(Graph graph)
Invokes the initialize method of the subgraph GraphLayoutManager. |
void |
removeSubgraphRelocationListener(SubgraphRelocationListener listener)
Remove a SubgraphRelocationListener from this SubgraphRelocationManager. |
void |
setBaselineInterval(int baselineInterval)
|
void |
setGraphRenderer(GraphRenderer renderer)
|
void |
setSubgraphLayoutManager(GraphLayoutManager subgraphLayoutManager)
|
void |
setSubgraphPadding(double subgraphPadding)
|
void |
stop()
Sets a flag that will cause the SubgraphRelocationManager to stop as soon as possible. |
| Methods inherited from class info.aduna.linkmap.layout.GraphLayoutManager |
|---|
getGraph, run, setGraph |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double DEFAULT_SUBGRAPH_PADDING
public static final int DEFAULT_BASELINE_INTERVAL
| Constructor Detail |
|---|
public SubgraphRelocationManager(GraphLayoutManager subgraphLayoutManager)
public SubgraphRelocationManager(GraphLayoutManager subgraphLayoutManager,
GraphRenderer renderer)
public SubgraphRelocationManager(GraphLayoutManager subgraphLayoutManager,
GraphRenderer renderer,
double subgraphPadding)
| Method Detail |
|---|
public void setSubgraphLayoutManager(GraphLayoutManager subgraphLayoutManager)
public GraphLayoutManager getSubgraphLayoutManager()
public void setGraphRenderer(GraphRenderer renderer)
public GraphRenderer getGraphRenderer()
public void setSubgraphPadding(double subgraphPadding)
public double getSubgraphPadding()
public void setBaselineInterval(int baselineInterval)
public int getBaselineInterval()
public LayoutConverter createLayoutConverter()
createLayoutConverter in class GraphLayoutManagerpublic void initialize(Graph graph)
initialize in class GraphLayoutManagerpublic void doLayout()
doLayout in class GraphLayoutManagerpublic void stop()
public void addSubgraphRelocationListener(SubgraphRelocationListener listener)
public void removeSubgraphRelocationListener(SubgraphRelocationListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||