public class IlpGraphLayoutParameters extends Object
IlvGraphLayout
Constructor and Description |
---|
IlpGraphLayoutParameters()
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.
|
boolean |
isFixed()
Allows you to specify whether a node or a link is fixed.
|
boolean |
isLayoutIgnored()
Indicates if the node or link should be ignored by this graph or
link layout.
|
void |
reset()
Resets the configuration in this bean.
|
void |
setFixed(boolean fix)
Allows you to specify whether a node or a link is fixed.
|
void |
setLayoutIgnored(boolean ignore)
Allows you to specify whether a node or a link shall be ignored
by the graph layout.
|
public void reset()
If you are subclassing this class or one of its subclasses, you must always call the superclass reset method, as illustrated below:
public void reset() { super.reset(); // Then add below the code to reset your new properties }
public boolean apply(IlvGraphLayout layout, IlpRepresentationObject ro, IlvGraphic layoutProxy)
If you are subclassing this class or one of its subclasses,
you must always call the superclass apply
method,
as illustrated below:
public void apply (...) { super.apply(...); // Then add below the code to set your new properties }
layout
- Graph Layoutro
- Object to which the configuration will be appliedlayoutProxy
- Layout graphic object for a node or linkpublic void setFixed(boolean fix)
IlvGraphLayout.isPreserveFixedNodes()
returns true
. By default, no node is fixed.
Fixed links are not reshaped during the layout only if the method
IlvGraphLayout.isPreserveFixedLinks()
returns
true. By default, no link is fixed.
fix
- Indicates if the node or link shall be fixedpublic boolean isFixed()
IlvGraphLayout.isPreserveFixedNodes()
returns true
. By default, no node is fixed.
Fixed links are not reshaped during the layout only if the method
IlvGraphLayout.isPreserveFixedLinks()
returns
true. By default, no link is fixed.
public void setLayoutIgnored(boolean ignore)
If this property is set to true
, the object will be
completely ignored by the graph model (using an
IlvLayoutGraphicFilter
).
ignore
- Indicates if the object will be ignored or nodepublic boolean isLayoutIgnored()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.