| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.TemporaryGroupDescriptor
public class TemporaryGroupDescriptor
This class allows specifying temporary groups for nodes that are considered by the
 TemporaryGroupNodeInsertionStage.
 
 More precisely, nodes mapped to the same TemporaryGroupDescriptor instance will form a temporary group
 inserted by the stage. This mapping is specified by a DataProvider registered with key
 TemporaryGroupNodeInsertionStage.TEMPORARY_GROUP_DESCRIPTOR_DPKEY.
 A TemporaryGroupDescriptor may have a reference to its parent which
 allows to create a hierarchically nested grouping structure.
 
| Constructor Summary | |
|---|---|
| TemporaryGroupDescriptor()Creates a new instance of TemporaryGroupDescriptor. | |
| TemporaryGroupDescriptor(TemporaryGroupDescriptor parent,
                         Layouter recursiveGroupLayoutAlgorithm)Creates a new instance of TemporaryGroupDescriptorusing the given descriptor as parent and thelayout algorithmthat is considered by theRecursiveGroupLayouter. | |
| Method Summary | |
|---|---|
|  YRectangle | getComputedBounds()Returns the boundsof this temporary group. | 
|  NodeHalo | getHalo()Returns the haloof this temporary group ornullif the group has no halo. | 
|  YInsets | getInsets()Returns the insetsof this temporary group ornullif the group has no insets. | 
|  YDimension | getMinimumSize()Returns the minimum sizeof this temporary group ornullif the group has 
 no minimum size constraint. | 
|  TemporaryGroupDescriptor | getParent()Returns the parent groupof this temporary group. | 
|  Layouter | getRecursiveGroupLayoutAlgorithm()Returns the layout algorithmthat is considered by theRecursiveGroupLayouterwhen arranging the nodes belonging to this temporary group. | 
|  void | setHalo(NodeHalo halo)Specifies the haloof this temporary group ornullif the group has no halo. | 
|  void | setInsets(YInsets insets)Specifies the insetsof this temporary group ornullif the group has no insets. | 
|  void | setMinimumSize(YDimension minimumSize)Specifies the minimum sizeof this temporary group ornullif the group has 
 no minimum size constraint. | 
|  void | setParent(TemporaryGroupDescriptor parent)Specifies the parent groupof this temporary group. | 
|  void | setRecursiveGroupLayoutAlgorithm(Layouter layoutAlgorithm)Specifies the layout algorithmthat is considered by theRecursiveGroupLayouterwhen arranging the nodes belonging to this temporary group. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public TemporaryGroupDescriptor()
TemporaryGroupDescriptor.
public TemporaryGroupDescriptor(TemporaryGroupDescriptor parent,
                                Layouter recursiveGroupLayoutAlgorithm)
TemporaryGroupDescriptor using the given descriptor as parent and the
 layout algorithm that is considered by the RecursiveGroupLayouter.
 
   If the applied TemporaryGroupNodeInsertionStage uses the RecursiveGroupLayouter
   as core layout algorithm,
   the recursive group layout algorithm specified here is responsible for the arrangement of the nodes belonging
   to this temporary group.
   Internally, the temporary inserted group node that encloses the nodes is automatically mapped
   in a DataProvider registered with key RecursiveGroupLayouter.GROUP_NODE_LAYOUTER_DPKEY.
 
recursive group layout algorithm is only considered if the used
            core layout algorithm
            is of type RecursiveGroupLayouter.parent - the parent temporary group of this grouprecursiveGroupLayoutAlgorithm - the layout algorithm that is applied in each recursion step| Method Detail | 
|---|
public Layouter getRecursiveGroupLayoutAlgorithm()
layout algorithm that is considered by the RecursiveGroupLayouter
 when arranging the nodes belonging to this temporary group.
 
   If the applied TemporaryGroupNodeInsertionStage uses the RecursiveGroupLayouter
   as core layout algorithm,
   the recursive group layout algorithm specified here is responsible for the arrangement of the nodes belonging
   to this temporary group.
   Internally, the temporary inserted group node that encloses the nodes is automatically mapped
   in a DataProvider registered with key RecursiveGroupLayouter.GROUP_NODE_LAYOUTER_DPKEY.
 
recursive group layout algorithm is only considered if the used
            core layout algorithm
            is of type RecursiveGroupLayouter.layout algorithm that is considered by the RecursiveGroupLayoutersetRecursiveGroupLayoutAlgorithm(Layouter)public void setRecursiveGroupLayoutAlgorithm(Layouter layoutAlgorithm)
layout algorithm that is considered by the RecursiveGroupLayouter
 when arranging the nodes belonging to this temporary group.
 
   If the applied TemporaryGroupNodeInsertionStage uses the RecursiveGroupLayouter
   as core layout algorithm,
   the recursive group layout algorithm specified here is responsible for the arrangement of the nodes belonging
   to this temporary group.
   Internally, the temporary inserted group node that encloses the nodes is automatically mapped
   in a DataProvider registered with key RecursiveGroupLayouter.GROUP_NODE_LAYOUTER_DPKEY.
 
recursive group layout algorithm is only considered if the used
            core layout algorithm
            is of type RecursiveGroupLayouter.layoutAlgorithm - public TemporaryGroupDescriptor getParent()
parent group of this temporary group.
parent groupsetParent(TemporaryGroupDescriptor)public void setParent(TemporaryGroupDescriptor parent)
parent group of this temporary group.
parent - the parent grouppublic YInsets getInsets()
insets of this temporary group or null if the group has no insets.
insets are only considered if the TemporaryGroupNodeInsertionStage
 uses a core layout algorithm that can handle group nodes.insets of this temporary groupsetInsets(YInsets)public void setInsets(YInsets insets)
insets of this temporary group or null if the group has no insets.
insets are only considered if the TemporaryGroupNodeInsertionStage
 uses a core layout algorithm that can handle group nodes.insets - the insets of this temporary grouppublic YDimension getMinimumSize()
minimum size of this temporary group or null if the group has 
 no minimum size constraint.
minimum size is only considered if the TemporaryGroupNodeInsertionStage
 uses a core layout algorithm that can handle
 group nodes and minimum group sizes.minimum size of this temporary groupsetMinimumSize(YDimension)public void setMinimumSize(YDimension minimumSize)
minimum size of this temporary group or null if the group has 
 no minimum size constraint.
minimum size is only considered if the TemporaryGroupNodeInsertionStage
 uses a core layout algorithm that can handle
 group nodes and minimum group sizes.minimumSize - the minimum size of this temporary grouppublic NodeHalo getHalo()
halo of this temporary group or null if the group has no halo.
halo is only considered if the TemporaryGroupNodeInsertionStage
 uses a core layout algorithm that can handle group
 nodes and node halos.setHalo(NodeHalo)public void setHalo(NodeHalo halo)
halo of this temporary group or null if the group has no halo.
halo is only considered if the TemporaryGroupNodeInsertionStage
 uses a core layout algorithm that can handle group
 nodes and node halos.halo - the halo of the temporary grouppublic YRectangle getComputedBounds()
bounds of this temporary group.
TemporaryGroupNodeInsertionStage uses a
 core layout algorithm that can handle group nodes,
 all nodes associated with this temporary group should be placed within the returned bounds.bounds of the temporary group| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||