Search this API

y.view.hierarchy
Interface GroupFeature

All Known Implementing Classes:
GenericGroupNodeRealizer, GroupNodeRealizer, TableGroupNodeRealizer

public interface GroupFeature

This is a common interface for group node realizers.

 
Your browser does not support SVG content.

Method Summary
 YInsets getBorderInsets()
          Returns the size of the empty border that will be added to the minimal bounds of this realizer.
 YInsets getMinimalInsets()
          Returns the minimal insets defined for this realizer.
 boolean isGroupClosed()
          Returns true if this group node realizer is closed and false otherwise.
 void setBorderInsets(YInsets 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(YInsets 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.

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(YInsets insets)
Sets the insets that define the minimal distance between the border of the group node and its graph content.

Parameters:
insets - the insets.
See Also:
getMinimalInsets()

getMinimalInsets

YInsets getMinimalInsets()
Returns the minimal insets defined for this realizer.

Returns:
the minimal insets defined for this realizer.
See Also:
setMinimalInsets(y.geom.YInsets)

setBorderInsets

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

Parameters:
insets - the insets to add to the minimal auto bounds.
See Also:
getBorderInsets()

getBorderInsets

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

Returns:
the size of the empty border that will be added to the minimal bounds of this realizer.
See Also:
setBorderInsets(y.geom.YInsets)

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