Search this API

y.layout.router.polyline
Interface GraphPartitionExtension

All Superinterfaces:
DynamicDecomposition.Listener
All Known Implementing Classes:
GraphPartitionExtensionAdapter

public interface GraphPartitionExtension
extends DynamicDecomposition.Listener

Implementations are extending the functionality of a GraphPartition.

A GraphPartitionExtension can be used to create new Obstacles that will be given to the initializer of the ObstaclePartition and react to its decomposition events if the ObstaclePartition is a DynamicDecomposition.

A GraphPartitionExtension has to be added to the GraphPartition which will call its preparePartition method before the ObstaclePartition is initialized.


Method Summary
 void cleanup()
          Cleans the extension up from the last partitioning with the current configuration and graphPartition.
 void preparePartition(PathSearchConfiguration configuration, GraphPartition graphPartition)
          This method is called by the given GraphPartition upon initialization before its ObstaclePartition gets initialized.
 
Methods inherited from interface y.layout.router.polyline.DynamicDecomposition.Listener
onCellCreated, onCellFinalized, onCellSubdivided
 

Method Detail

preparePartition

void preparePartition(PathSearchConfiguration configuration,
                      GraphPartition graphPartition)
This method is called by the given GraphPartition 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.

Parameters:
configuration - The configuration used for the path search.
graphPartition - The graph partition using this extension.

cleanup

void cleanup()
Cleans the extension up from the last partitioning with the current configuration and graphPartition.


© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.