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

This interface is implemented by classes that require to be notified of changes in Partitions. Implementations are notified when PartitionCells are created, divided, finalized and/or unlocked.

 
Your browser does not support SVG content.

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

Method Detail

onCellCreated

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

Parameters:
createdCell - the newly created PartitionCell

onCellSubdivided

void onCellSubdivided(PartitionCell cell,
                      java.util.List subCells)
Callback after the given PartitionCell has been subdivided into several sub-cells.

DynamicDecomposition.Listener may not modify the list of sub-cells.

Parameters:
cell - the cell that has been subdivided
subCells - the sub-cells resulting from the subdivision of the given PartitionCell

onCellFinalized

void onCellFinalized(PartitionCell finalizedCell)
Callback after the given PartitionCell has been finalized.

Before the cell may be further subdivided, it has to be unlocked again.

Parameters:
finalizedCell - the cell that has been finalized

onCellUnlocked

void onCellUnlocked(PartitionCell unlockedCell)
Callback after the given PartitionCell has been unlocked.

The cell had previously be finalized but has been unlocked again and may be subdivided in the future.

Parameters:
unlockedCell - the cell that has been unlocked

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