|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.router.polyline.GraphPartitionExtensionAdapter
public abstract class GraphPartitionExtensionAdapter
GraphPartitionExtensionAdapter provides an empty implementation of GraphPartitionExtension.
The only real functionality is contained in method GraphPartitionExtension.preparePartition(PathSearchConfiguration, GraphPartition)
which stores the given PathSearchConfiguration and GraphPartition in properties.
getConfiguration(),
getGraphPartition()![]() |
![]() |
| Constructor Summary | |
|---|---|
GraphPartitionExtensionAdapter()
Creates a new instance of GraphPartitionExtensionAdapter. |
|
| Method Summary | |
|---|---|
void |
cleanup()
Cleans up the extension from the last partitioning with the current configuration
and GraphPartition. |
protected PathSearchConfiguration |
getConfiguration()
Returns the configuration of the PathSearch passed to
GraphPartitionExtension.preparePartition(PathSearchConfiguration, GraphPartition). |
protected GraphPartition |
getGraphPartition()
Returns the GraphPartition passed to GraphPartitionExtension.preparePartition(PathSearchConfiguration,
GraphPartition). |
void |
onCellCreated(PartitionCell createdCell)
Callback after the new given PartitionCell has been created. |
void |
onCellFinalized(PartitionCell finalizedCell)
Callback after the given PartitionCell has been finalized. |
void |
onCellSubdivided(PartitionCell cell,
java.util.List subCells)
Callback after the given PartitionCell has been subdivided into several sub-cells. |
void |
onCellUnlocked(PartitionCell unlockedCell)
Callback after the given PartitionCell has been unlocked. |
void |
preparePartition(PathSearchConfiguration configuration,
GraphPartition graphPartition)
Stores the given PathSearchConfiguration and GraphPartition such that they are accessible
through getConfiguration() and getGraphPartition(), respectively. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphPartitionExtensionAdapter()
GraphPartitionExtensionAdapter.
| Method Detail |
|---|
protected GraphPartition getGraphPartition()
GraphPartition passed to GraphPartitionExtension.preparePartition(PathSearchConfiguration,
GraphPartition).
GraphPartition passed to GraphPartitionExtension.preparePartition(PathSearchConfiguration,
GraphPartition) or null if said method has not been called yet or this instance has been
cleaned upprotected PathSearchConfiguration getConfiguration()
PathSearch passed to
GraphPartitionExtension.preparePartition(PathSearchConfiguration, GraphPartition).
PathSearch passed to
GraphPartitionExtension.preparePartition(PathSearchConfiguration, GraphPartition)
or null if said method has not been called yet or this instance has been
cleaned uppublic void onCellCreated(PartitionCell createdCell)
DynamicDecomposition.ListenerPartitionCell has been created.
onCellCreated in interface DynamicDecomposition.ListenercreatedCell - the newly created PartitionCell
public void onCellSubdivided(PartitionCell cell,
java.util.List subCells)
DynamicDecomposition.ListenerPartitionCell has been subdivided into several sub-cells.
DynamicDecomposition.Listener may not modify the list of sub-cells.
onCellSubdivided in interface DynamicDecomposition.Listenercell - the cell that has been subdividedsubCells - the sub-cells resulting from the subdivision of the given PartitionCellpublic void onCellFinalized(PartitionCell finalizedCell)
DynamicDecomposition.ListenerPartitionCell has been finalized.
Before the cell may be further subdivided, it has to be unlocked again.
onCellFinalized in interface DynamicDecomposition.ListenerfinalizedCell - the cell that has been finalizedpublic void onCellUnlocked(PartitionCell unlockedCell)
DynamicDecomposition.ListenerPartitionCell has been unlocked.
The cell had previously be finalized but has been unlocked again
and may be subdivided in the future.
onCellUnlocked in interface DynamicDecomposition.ListenerunlockedCell - the cell that has been unlocked
public void preparePartition(PathSearchConfiguration configuration,
GraphPartition graphPartition)
PathSearchConfiguration and GraphPartition such that they are accessible
through getConfiguration() and getGraphPartition(), respectively.
preparePartition in interface GraphPartitionExtensionconfiguration - the configuration used for the path searchgraphPartition - the graph partition that uses this extensionpublic void cleanup()
GraphPartitionExtensionconfiguration
and GraphPartition.
cleanup in interface GraphPartitionExtension
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||