public class IlpLinkLayoutParameters extends IlpAbstractLinkLayoutParameters
To customize per-object properties, the graph layout renderer must be enabled and configured to customize per-object properties.
IlvLinkLayout
Constructor and Description |
---|
IlpLinkLayoutParameters()
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.
|
void |
reset()
Resets the configuration in this bean.
|
void |
setDestinationPointMode(int mode)
Sets the mode for the connection point on an individual link
on the destination node.
|
void |
setLinkStyle(int style)
Sets the shape style of an individual link.
|
void |
setOriginPointMode(int mode)
Sets the mode for the connection point on an individual link
on the origin node.
|
getDestinationPointMode, getLinkStyle, getOriginPointMode
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 setDestinationPointMode(int mode)
This mode is used only if the global "from" point mode is set to
IlvLinkLayout.MIXED_MODE
.
Otherwise, the connection points on the
destination nodes have, for all the links, the mode that is specified
as the global destination point mode.
Valid values are:
IlvLinkLayout.FREE_MODE
-
The layout is free to choose, for this link, the appropriate position
of the connection point on the destination node, except for "pinned"
connection points (see IlvGraphModel.hasPinnedConnectionPoint(java.lang.Object, boolean)
).
The choice can further be
influenced by specifying the side and the port index of the links.
IlvLinkLayout.FIXED_MODE
-
The layout must keep, for this link, the current position of the
connection point on the destination node.
Note that if the mode is fixed, specifications of the port index of links at the "to" side are ignored.
The default value is IlvLinkLayout.FREE_MODE
.
mode
- The mode to set.IlvLinkLayout.setDestinationPointMode(java.lang.Object, int)
,
IlpAbstractLinkLayoutParameters.getDestinationPointMode()
public void setLinkStyle(int style)
IlvLinkLayout.MIXED_STYLE
. Otherwise, all links have the style that
is specified as the global link style.
Valid values are:
IlvLinkLayout.ORTHOGONAL_STYLE
-
the link has an orthogonal shape, that is, a shape consisting of a
sequence of alternating horizontal and vertical line segments.
IlvLinkLayout.DIRECT_STYLE
-
the link gets a nearly straight-line shape. The shape of the link is
a polyline composed of a straight-line segment between the end nodes with
two short horizontal or vertical segments at its ends (their length is
controlled by the method setMinFinalSegmentLength
and
may be 0
).
IlvLinkLayout.NO_RESHAPE_STYLE
-
the link is not reshaped.
The default value is IlvLinkLayout.ORTHOGONAL_STYLE
.
style
- The shape style.IlvLinkLayout.setLinkStyle(java.lang.Object, int)
,
IlpAbstractLinkLayoutParameters.getLinkStyle()
public void setOriginPointMode(int mode)
IlvLinkLayout.MIXED_MODE
.
Otherwise, the connection points on the
origin nodes have, for all the links, the mode that is specified
as the global origin point mode.
Valid values are:
IlvLinkLayout.FREE_MODE
-
The layout is free to choose, for this link, the appropriate position
of the connection point on the origin node, except for "pinned"
connection points (see IlvGraphModel.hasPinnedConnectionPoint(java.lang.Object, boolean)
).
IlvLinkLayout.FIXED_MODE
-
The layout must keep, for this link, the current position of the
connection point on the origin node.
The default value is IlvLinkLayout.FREE_MODE
.
mode
- The mode to set.IlvLinkLayout.setOriginPointMode(java.lang.Object, int)
,
IlpAbstractLinkLayoutParameters.getOriginPointMode()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.