public class IlpTreeLayoutParameters extends IlpGraphLayoutParameters
To customize per-object properties, the graph layout renderer must be enabled and configured to customize per-object properties.
IlvTreeLayout
Constructor and Description |
---|
IlpTreeLayoutParameters()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
apply(IlvGraphLayout layout,
IlpRepresentationObject ro,
IlvGraphic layoutProxy)
Applies the configuration that is stored in this bean into
the given layout for the given node.
|
int |
getAlignment()
Returns the alignment option of an individual node.
|
int |
getLinkStyle()
Returns the style of the shape of an individual link.
|
int |
getRootPreference()
Specifies the preference of the node to become root node.
|
boolean |
isRoot()
Returns if this configuration is for a root node.
|
void |
reset()
Resets the configuration in this bean.
|
void |
setAlignment(int align)
Sets the alignment option of an individual node.
|
void |
setLinkStyle(int style)
Sets the style of the shape of an individual link.
|
void |
setRoot(boolean flag)
Allows you to specify the root(s) of the tree.
|
void |
setRootPreference(int preference)
Specifies the preference of the node to become root node.
|
isFixed, isLayoutIgnored, setFixed, setLayoutIgnored
public void reset()
reset
in class IlpGraphLayoutParameters
public boolean apply(IlvGraphLayout layout, IlpRepresentationObject ro, IlvGraphic layoutProxy)
apply
in class IlpGraphLayoutParameters
layout
- Graph Layoutro
- Object to which the configuration will be appliedlayoutProxy
- Layout graphic object for a node or linkpublic void setAlignment(int align)
MIXED
. Otherwise, all nodes have the alignment
that is specified as the global alignment.
Valid values are:
CENTER
-
the node is centered with respect to the centers of its children.
BORDER_CENTER
-
the node is centered with respect to the border of its children.
EAST
-
the node is aligned to the border of its easternmost child.
WEST
-
the node is aligned to the border of its westernmost child.
TIP_OVER
-
a parent is outside the border of the children, while the children are
placed sequentially instead of in parallel.
TIP_OVER_BOTH_SIDES
-
similar to TIP_OVER
but the children are arranged in
pairs at both sides of the link segment that starts at the parent node.
This alignment option is not possible in the radial or level layout modes.
The default value is CENTER
.
public int getAlignment()
setAlignment(int)
public void setLinkStyle(int style)
MIXED_STYLE
and the link is part of the spanning tree.
If the global link style is not MIXED_STYLE
, all links
of the spanning tree have the style that
is specified as the global link style.
Links that are not part of the spanning tree have the link style
NO_RESHAPE_STYLE
.
Valid values are:
ORTHOGONAL_STYLE
-
the link has an orthogonal shape, that is, a shape consisting of a
sequence of orthogonal line segments. This option is not available for the
radial layout modes.
STRAIGHT_LINE_STYLE
-
the link has a straight-line shape.
NO_RESHAPE_STYLE
-
no reshape is performed on the link.
The default value is STRAIGHT_LINE_STYLE
.
style
- The shape style.getLinkStyle()
,
IlvTreeLayout.setLinkStyle(java.lang.Object, int)
public int getLinkStyle()
setLinkStyle(int)
public void setRoot(boolean flag)
Setting the root node by this method is identical to setting the root preference of this node to 10000.
IlvTreeLayout.setRoot(java.lang.Object)
public boolean isRoot()
true
if this configuration applies to a root node.setRoot(boolean)
public void setRootPreference(int preference)
If a negative value is passed as input, the preference of the node is unspecified. In this case, the algorithm calculates a preference so that for directed trees the canonical root nodes with degree 0 have the highest preference.
public int getRootPreference()
setRootPreference(int)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.