public class IlpDefaultGraphLayoutParametersFactory extends Object implements IlpGraphLayoutParametersFactory
Constructor and Description |
---|
IlpDefaultGraphLayoutParametersFactory(IlpContext context)
Creates a new factory which does not share graph layout
parameters instances.
|
IlpDefaultGraphLayoutParametersFactory(IlpContext context,
boolean sharing)
Creates a new factory which may share graph layout parameters
instances.
|
Modifier and Type | Method and Description |
---|---|
IlpGraphLayoutParameters |
create(Class layout)
Creates an instance of a Java bean used to customize per-object
layout properties.
|
boolean |
isSharingParameters()
Returns if instances are shared by the
create(Class) method. |
public IlpDefaultGraphLayoutParametersFactory(IlpContext context)
context
- Application contextpublic IlpDefaultGraphLayoutParametersFactory(IlpContext context, boolean sharing)
context
- Application contextsharing
- Indicates if this factory will share instances for
the same graph layout classisSharingParameters()
public IlpGraphLayoutParameters create(Class layout)
When the factory is working in share mode, this method returns always the same instance for a given layout class. This can only be used if you are sure that the returned instance will not be used in multiple threads.
create
in interface IlpGraphLayoutParametersFactory
layout
- Graph layout classIlpGraphLayoutParameters
or one
of its subclasses that is able to be used with the given layout class.public boolean isSharingParameters()
create(Class)
method.true
if instances are shared© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.