public abstract class IltZoomPolicy extends Object implements IlpZoomPolicy
Modifier and Type | Field and Description |
---|---|
protected IlvManager |
_ilvmanager
Its underlying IlvManager.
|
protected IltcCompositeManager |
_manager
The manager whose zoom we manage.
|
Modifier | Constructor and Description |
---|---|
protected |
IltZoomPolicy()
Creates a new zoom policy instance.
|
Modifier and Type | Method and Description |
---|---|
void |
applyTransformerToManagerContents(IlvTransformer t)
This is a utility function which applies a given transformer to the
JTGO objects in a manager.
|
void |
attach()
This method is called when the policy is attached to a manager.
|
void |
attachView(IlvManagerView view)
This method is called when a view is added to the manager to which this
instance is attached.
|
void |
detach()
This method is called when the policy is detached from its manager.
|
void |
detachView(IlvManagerView view)
This method is called when a view is removed from the manager to which
this instance is attached.
|
abstract IlvTransformer |
getGraphLayoutTransformer(IlvManager subgrapher)
Returns the reference transformer for a graph layout in a subgrapher.
|
IltcCompositeManager |
getManager()
Returns the IltcCompositeManager to which this instance is attached.
|
double[] |
getVisibilityThreshold(String name)
This method is overridden in the zoom policy subclasses that
support visibility threshold on decorations.
|
void |
setManager(IltcCompositeManager manager)
Attaches this instance to an IltcCompositeManager.
|
abstract void |
zoomTransformerChanged(IlvManagerView view,
IlvTransformer oldTransformer,
IlvTransformer newTransformer)
This function is called when a zoom change occurs.
|
protected IltcCompositeManager _manager
protected IlvManager _ilvmanager
protected IltZoomPolicy()
public IltcCompositeManager getManager()
public void setManager(IltcCompositeManager manager)
public void attach()
attach
in interface IlpZoomPolicy
public void detach()
detach
in interface IlpZoomPolicy
public void attachView(IlvManagerView view)
attachView
in interface IlpZoomPolicy
public void detachView(IlvManagerView view)
detachView
in interface IlpZoomPolicy
public abstract void zoomTransformerChanged(IlvManagerView view, IlvTransformer oldTransformer, IlvTransformer newTransformer)
zoomTransformerChanged
in interface IlpZoomPolicy
view
- the target viewoldTransformer
- the manager's old zoom transformernewTransformer
- the manager's new zoom transformerIltcCompositeManager.getZoomTransformer()
public void applyTransformerToManagerContents(IlvTransformer t)
t
- transformer to apply to the manager contentspublic abstract IlvTransformer getGraphLayoutTransformer(IlvManager subgrapher)
This function is used by IltGrapherAdapter
.
subgrapher
- The top level grapher or one of its subgraphers.public double[] getVisibilityThreshold(String name)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.