public class IlpBusLayoutParameters extends IlpGraphLayoutParameters
This class models the properties that can be configured for each object when using the Bus layout.
To customize per-object properties, the graph layout renderer must be enabled and configured to customize per-object properties.
IlvBusLayout
Constructor and Description |
---|
IlpBusLayoutParameters()
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 |
getIndex()
Returns the index of a node.
|
int |
getVerticalAlignment()
Returns the vertical alignment style of an individual node.
|
boolean |
isBus()
Returns if the object being configured by this bean is
the bus node.
|
void |
reset()
Resets the configuration in this bean.
|
void |
setBus(boolean flag)
Sets if the object being configured by this bean is the
bus node.
|
void |
setIndex(int i)
Allows you to specify the index of a node.
|
void |
setVerticalAlignment(int align)
Sets the vertical alignment style of an individual 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 setBus(boolean flag)
flag
- Indicate if this object is the bus nodeIlvBusLayout.setBus(ilog.views.IlvPolyPointsInterface)
public boolean isBus()
setBus(boolean)
public void setIndex(int i)
IlvBusLayout.NO_INDEX
as
an index value if you want to reset an index you previously
specified.
Note that index must not be negative. The values of the indexes for consecutive nodes are not necessarily consecutive. Only the order of the values is important.
i
- Node indexIlvBusLayout.setIndex(java.lang.Object, int)
public int getIndex()
setIndex(int)
public void setVerticalAlignment(int align)
Sets the vertical alignment style of an individual node.
This alignment style is used only if the global vertical
alignment is set to IlvBusLayout.MIXED
.
Otherwise, all nodes have the alignment style that is specified
as the global alignment style.
The parameter controls the vertical alignment of nodes inside their level.
Valid values are:
IlvBusLayout.CENTER
- the node is
centered on its level.IlvBusLayout.TOP
- the node is aligned
to the top border of the level.IlvBusLayout.BOTTOM
- the node is
aligned to the bottom border of the level.The default value is IlvBusLayout.TOP
.
align
- Vertical alignment style for this nodeIlvBusLayout.setVerticalAlignment(java.lang.Object, int)
public int getVerticalAlignment()
setVerticalAlignment(int)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.