public class IlvRecursiveLayoutProvider extends IlvDefaultLayoutProvider
The provider behaves like the IlvDefaultLayoutProvider
except
that getGraphLayout(IlvGraphModel)
returns null
for a graph model that has no preferred layout. It does not
clone the layout instance of the closest parent graph for which a
layout has been set. This allows you to specify null
as
the preferred layout for those subgraphs that should not be laid out
at all.
If you allocate an instance of IlvRecursiveLayoutProvider
explicitly, you must call the method IlvDefaultLayoutProvider.detachLayouts(IlvGraphModel, boolean)
when you no longer need the
layout provider instance; otherwise, some objects may not be garbage
collected. However IlvDefaultLayoutProvider.detachLayouts(IlvGraphModel, boolean)
is
automatically called for the internal layout provider of the Recursive
Layout when the Recursive Layout is detached.
IlvLayoutProvider
,
IlvRecursiveLayout.getLayoutMode()
Constructor and Description |
---|
IlvRecursiveLayoutProvider()
Creates a new
IlvRecursiveLayoutProvider . |
Modifier and Type | Method and Description |
---|---|
IlvGraphLayout |
getGraphLayout(IlvGraphModel graphModel)
Returns the layout instance to be used to lay out
graphModel . |
copy, createGraphLayout, detachLayouts, getInstanceId, getPreferredLayout, setPreferredLayout, setPreferredLayout, setPreferredLayout, storePreferredLayout
public IlvRecursiveLayoutProvider()
IlvRecursiveLayoutProvider
.
Use the method IlvDefaultLayoutProvider.setPreferredLayout(IlvGraphModel,
IlvGraphLayout)
to specify preferred layouts.
public IlvGraphLayout getGraphLayout(IlvGraphModel graphModel)
graphModel
.
It returns the preferred layout specified using IlvDefaultLayoutProvider.setPreferredLayout(IlvGraphModel, IlvGraphLayout)
. If no preferred
layout was specified, the method returns null
.
getGraphLayout
in interface IlvLayoutProvider
getGraphLayout
in class IlvDefaultLayoutProvider
graphModel
- The graph model (the graph model that encapsulates the
topmost grapher , or a subgraph).graphModel
, or
null
if no layout is required for
graphModel
.IlvDefaultLayoutProvider.setPreferredLayout(IlvGraphModel, IlvGraphLayout, boolean, boolean)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.