Search this API

y.layout.router.polyline
Interface DynamicDecomposition.Listener

All Known Subinterfaces:
GraphPartitionExtension
All Known Implementing Classes:
GraphPartition, GraphPartitionExtensionAdapter
Enclosing interface:
DynamicDecomposition

public static interface DynamicDecomposition.Listener

Interface for classes that want to be notified about changes in partitions. Implementations are notified when PartitionCells are created, divided, and/or finalized.


Method Summary
 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.
 

Method Detail

onCellCreated

void onCellCreated(PartitionCell createdCell)
Callback after a new PartitionCell has been created.

Parameters:
createdCell - The newly created cell.

onCellSubdivided

void onCellSubdivided(PartitionCell cell,
                      List subCells)
Callback after a PartitionCell has been subdivided into several sub cells.

Listener may not modify the list of sub cells.

Parameters:
cell - The cell that has been subdivided.
subCells - The new sub cells of the divided cell.

onCellFinalized

void onCellFinalized(PartitionCell finalizedCell)
Callback after a PartitionCell has been decided to be final and won't be subdivided further.

Parameters:
finalizedCell - The cell that has been finalized.

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