|
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
This abstract adapter provides an empty implementation of GraphPartitionExtension.
The only real functionality is contained in the
prepare method which stores the
given PathSearchConfiguration and GraphPartition in properties..
getConfiguration(),
getGraphPartition()
| Constructor Summary | |
|---|---|
GraphPartitionExtensionAdapter()
|
|
| Method Summary | |
|---|---|
void |
cleanup()
Cleans the extension up from the last partitioning with the current configuration and graphPartition. |
protected PathSearchConfiguration |
getConfiguration()
Returns the configuration of the PathSearch passed in
GraphPartitionExtension.preparePartition(PathSearchConfiguration, GraphPartition). |
protected GraphPartition |
getGraphPartition()
Returns the bridge passed in GraphPartitionExtension.preparePartition(PathSearchConfiguration,
GraphPartition). |
void |
onCellCreated(PartitionCell createdCell)
Callback after a new PartitionCell has been created. |
void |
onCellFinalized(PartitionCell finalizedCell)
Callback after a PartitionCell has been decided to be final and won't be subdivided further. |
void |
onCellSubdivided(PartitionCell cell,
List subCells)
Callback after a PartitionCell has been subdivided into several sub cells. |
void |
preparePartition(PathSearchConfiguration configuration,
GraphPartition graphPartition)
This method is called by the given GraphPartition upon initialization before its
ObstaclePartition gets initialized. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphPartitionExtensionAdapter()
| Method Detail |
|---|
protected GraphPartition getGraphPartition()
GraphPartitionExtension.preparePartition(PathSearchConfiguration,
GraphPartition).
GraphPartitionExtension.preparePartition(PathSearchConfiguration,
GraphPartition).protected PathSearchConfiguration getConfiguration()
PathSearch passed in
GraphPartitionExtension.preparePartition(PathSearchConfiguration, GraphPartition).
PathSearch passed in
GraphPartitionExtension.preparePartition(PathSearchConfiguration, GraphPartition).public void onCellCreated(PartitionCell createdCell)
DynamicDecomposition.ListenerPartitionCell has been created.
onCellCreated in interface DynamicDecomposition.ListenercreatedCell - The newly created cell.
public void onCellSubdivided(PartitionCell cell,
List subCells)
DynamicDecomposition.ListenerPartitionCell has been subdivided into several sub cells.
Listener may not modify the list of sub cells.
onCellSubdivided in interface DynamicDecomposition.Listenercell - The cell that has been subdivided.subCells - The new sub cells of the divided cell.public void onCellFinalized(PartitionCell finalizedCell)
DynamicDecomposition.ListenerPartitionCell has been decided to be final and won't be subdivided further.
onCellFinalized in interface DynamicDecomposition.ListenerfinalizedCell - The cell that has been finalized.
public void preparePartition(PathSearchConfiguration configuration,
GraphPartition graphPartition)
GraphPartitionExtensionGraphPartition upon initialization before its
ObstaclePartition gets initialized.
Implementations may use the given graph the GraphPartition is based upon to initialize themselves
and/or add obstacles to the list
that ObstaclePartition is initialized with.
preparePartition in interface GraphPartitionExtensionconfiguration - The configuration used for the path search.graphPartition - The graph partition using this extension.public void cleanup()
GraphPartitionExtension
cleanup in interface GraphPartitionExtension
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||