|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.tgo.composite.IltZoomPolicy
public abstract class IltZoomPolicy
This class controls the behavior of the zoom on ILOG JTGO views. Subclasses exist that provide physical and logical zooms. An instance of this class is associated with every IlvManager instance. It receives an event when the zoom transformer of any view changes.
| Field Summary | |
|---|---|
protected IlvManager |
_ilvmanager
Its underlying IlvManager. |
protected IltcCompositeManager |
_manager
The manager whose zoom we manage. |
| Constructor Summary | |
|---|---|
protected |
IltZoomPolicy()
Creates a new zoom policy instance. |
| Method Summary | |
|---|---|
void |
applyTransformerToManagerContents(IlvTransformer t)
This is a utility function which applies a given transformer to the ILOG 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IltcCompositeManager _manager
protected IlvManager _ilvmanager
| Constructor Detail |
|---|
protected IltZoomPolicy()
| Method Detail |
|---|
public IltcCompositeManager getManager()
public void setManager(IltcCompositeManager manager)
public void attach()
attach in interface IlpZoomPolicypublic void detach()
detach in interface IlpZoomPolicypublic void attachView(IlvManagerView view)
attachView in interface IlpZoomPolicypublic void detachView(IlvManagerView view)
detachView in interface IlpZoomPolicy
public abstract void zoomTransformerChanged(IlvManagerView view,
IlvTransformer oldTransformer,
IlvTransformer newTransformer)
zoomTransformerChanged in interface IlpZoomPolicyview - 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)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||