y.view.hierarchy
Interface GroupFeature

All Known Implementing Classes:
GenericGroupNodeRealizer, GroupNodeRealizer

public interface GroupFeature

This is a common interface for group node realizers.

 

Method Summary
 Insets getBorderInsets()
           
 Insets getMinimalInsets()
           
 boolean isGroupClosed()
           
 void setBorderInsets(Insets insets)
          Sets the size of the empty border that will be added to the minimal bounds of this realizer.
 void setGroupClosed(boolean closed)
          Opens or closes the group node realizer.
 void setMinimalInsets(Insets insets)
          Sets the insets that define the minimal distance between the border of the group node and its graph content.
 

Method Detail

isGroupClosed

boolean isGroupClosed()
Returns:
true if this group node realizer is closed and false otherwise.

setGroupClosed

void setGroupClosed(boolean closed)
Opens or closes the group node realizer. An open node realizer is typically used to represent a group node within a graph hierarchy. A closed node realizer is usually serves as a representation of a folder node within a graph hierarchy.

Parameters:
closed - true for closing, false for opening a group node
See Also:
HierarchyManager.isGroupNode(Node), HierarchyManager.isFolderNode(Node)

setMinimalInsets

void setMinimalInsets(Insets insets)
Sets the insets that define the minimal distance between the border of the group node and its graph content.

Parameters:
insets - the insets

getMinimalInsets

Insets getMinimalInsets()
Returns:
the minimal insets defined for this realizer.
See Also:
setMinimalInsets(Insets)

setBorderInsets

void setBorderInsets(Insets insets)
Sets the size of the empty border that will be added to the minimal bounds of this realizer.

Parameters:
insets - the insets

getBorderInsets

Insets getBorderInsets()
Returns:
the size of the empty border that will be added to the minimal bounds of this realizer.

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