|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.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 up
protected 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 up
public void onCellCreated(PartitionCell createdCell)
DynamicDecomposition.Listener
PartitionCell
has been created.
onCellCreated
in interface DynamicDecomposition.Listener
createdCell
- the newly created PartitionCell
public void onCellSubdivided(PartitionCell cell, java.util.List subCells)
DynamicDecomposition.Listener
PartitionCell
has been subdivided into several sub-cells.
DynamicDecomposition.Listener
may not modify the list of sub-cells.
onCellSubdivided
in interface DynamicDecomposition.Listener
cell
- the cell that has been subdividedsubCells
- the sub-cells resulting from the subdivision of the given PartitionCell
public void onCellFinalized(PartitionCell finalizedCell)
DynamicDecomposition.Listener
PartitionCell
has been finalized.
Before the cell may be further subdivided, it has to be unlocked
again.
onCellFinalized
in interface DynamicDecomposition.Listener
finalizedCell
- the cell that has been finalizedpublic void onCellUnlocked(PartitionCell unlockedCell)
DynamicDecomposition.Listener
PartitionCell
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.Listener
unlockedCell
- the cell that has been unlockedpublic void preparePartition(PathSearchConfiguration configuration, GraphPartition graphPartition)
PathSearchConfiguration
and GraphPartition
such that they are accessible
through getConfiguration()
and getGraphPartition()
, respectively.
preparePartition
in interface GraphPartitionExtension
configuration
- the configuration used for the path searchgraphPartition
- the graph partition that uses this extensionpublic void cleanup()
GraphPartitionExtension
configuration
and GraphPartition
.
cleanup
in interface GraphPartitionExtension
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |