Search this API

Package y.view.hierarchy

Provides classes and interfaces for managing and viewing graph hierarchies (a.k.a. hierarchically organized graphs) where nodes can be nested within other nodes to arbitrary depth.

See:
          Description

Interface Summary
AutoBoundsFeature Additional interface for node realizers whose bounds may be determined by other factors then explicit bound assignment.
GenericGroupNodeRealizer.GenericAutoBoundsFeature Additional interface for node realizers whose bounds may be determined by other factors then explicit bound assignment.
GroupFeature This is a common interface for group node realizers.
HierarchyListener The listener interface for receiving HierarchyEvents.
HierarchyManager.InterEdgeData Specifies the general contract for storing and retrieving additional data for inter-edges.
HierarchyManager.NodeVisitor Callback interface that allows to perform some action when nodes within the hierarchy get visited in a certain order.
InterEdgeConfigurator Callback interface that is used by class HierarchyManager whenever the state of an edge/inter-edge changes.
 

Class Summary
DefaultGenericAutoBoundsFeature This class is an implementation of interface GenericGroupNodeRealizer.GenericAutoBoundsFeature and is responsible for assigning node bounds for node realizers whose bounds may be determined by other factors then explicit bound assignment.
DefaultHierarchyGraphFactory This is the default graph factory used by HierarchyManager to create and configure new graph elements within the hierarchy.
DefaultInterEdgeConfigurator This default implementation of the InterEdgeConfigurator performs some simple heuristics.
DefaultNodeChangePropagator This Graph2DListeners translates incoming Graph2DEvents that signal node label changes to hierarchy events that signal node changes.
GenericGroupNodeRealizer This class is a specialization of GenericNodeRealizer for group and folder nodes.
GroupLayoutConfigurator This convenience class helps to prepare a hierarchically grouped Graph2D for an automatic assignment of layout information.
GroupLayoutConfigurator.MinNodeSizeDataProvider A data provider that returns minimal sizes of node realizers that are provided through the node realizer's SizeConstraintProvider, see NodeRealizer.getSizeConstraintProvider()
GroupNodePainter A decorator GenericNodeRealizer.Painter for group/folder nodes that adds a state label that display whether the node is an opened group node or a closed folder node.
GroupNodePainter.GroupStateEditor A MouseInputEditor implementation that closes group nodes and opens folder nodes in response to state change gestures (that is a mouse click at an appropriate location).
GroupNodePainter.GroupStateStyle A GroupStateStyle provides opacity information for painting group state icons.
GroupNodeRealizer A node realizer that is crafted to represent group and folder nodes within a graph hierarchy.
GroupNodeRealizer.StateChangeListener This static inner class can be used to automatically adjust the groupClosed property of GroupFeature instances.
HierarchyEvent Encapsulates information describing changes to a graph hierarchy and used to notify hierarchy listeners of the change.
HierarchyJTree A JTree configured to display the hierarchically organized nodes within a HierarchyManager.
HierarchyManager This class manages a hierarchy of grouped nodes and nested graphs.
HierarchyTreeCellRenderer Default TreeCellRenderer to visualize elements within HierarchyTreeModel.
HierarchyTreeModel This class represents a tree model view of a graph hierarchy managed by HierarchyManager.
HierarchyTreeSelectionModel This TreeSelectionModel represents the selection state of the nodes within a graph hierarchy.
HierarchyTreeTransferHandler A transfer handler for HierarchyJTree that allows to reorganize the hierarchical group structure by a drag and drop gesture on the tree elements.
ProxyAutoBoundsNodeRealizer A proxy node realizer that implements the auto bounds feature.
 

Package y.view.hierarchy Description

Provides classes and interfaces for managing and viewing graph hierarchies (a.k.a. hierarchically organized graphs) where nodes can be nested within other nodes to arbitrary depth.

Most prominent class of this package is HierarchyManager. It adds support for grouping and nesting to a yet "flat" graph, and maintains the model that is behind graph hierarchies.
Further classes provide functionality that extend corresponding classes from package y.view to suit the specialized needs of hierarchically organized graphs.

Related Documentation

See the yFiles Developer's Guide chapter on Graph Hierarchies for a description on the concepts of hierarchically organized graphs.

 

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