public class IlpLongLinkLayoutParameters extends IlpAbstractLinkLayoutParameters
To customize per-object properties, the graph layout renderer must be enabled and configured to customize per-object properties.
IlvLongLinkLayout
Constructor and Description |
---|
IlpLongLinkLayoutParameters()
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 IlpLongLinkLayoutParameters()
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
IlvLongLinkLayout.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:
IlvLongLinkLayout.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.
IlvLongLinkLayout.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 IlvLongLinkLayout.FREE_MODE
.
mode
- The mode to set.IlvLongLinkLayout.setDestinationPointMode(java.lang.Object, int)
,
IlpAbstractLinkLayoutParameters.getDestinationPointMode()
public void setLinkStyle(int style)
IlvLongLinkLayout.MIXED_STYLE
. Otherwise, all links have the style that
is specified as the global link style.
Valid values are:
IlvLongLinkLayout.ORTHOGONAL_STYLE
-
the link has an orthogonal shape, that is, a shape consisting of a
sequence of alternating horizontal and vertical line segments.
IlvLongLinkLayout.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
).
IlvLongLinkLayout.NO_RESHAPE_STYLE
-
the link is not reshaped.
The default value is IlvLongLinkLayout.ORTHOGONAL_STYLE
.
style
- The shape style.IlvLongLinkLayout.setLinkStyle(java.lang.Object, int)
,
IlpAbstractLinkLayoutParameters.getLinkStyle()
public void setOriginPointMode(int mode)
IlvLongLinkLayout.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:
IlvLongLinkLayout.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)
).
IlvLongLinkLayout.FIXED_MODE
-
The layout must keep, for this link, the current position of the
connection point on the origin node.
The default value is IlvLongLinkLayout.FREE_MODE
.
mode
- The mode to set.IlvLongLinkLayout.setOriginPointMode(java.lang.Object, int)
,
IlpAbstractLinkLayoutParameters.getOriginPointMode()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.