ilog.cpl.graphic.views
Interface IlpZoomPolicy

All Known Implementing Classes:
IltLogicalZoomPolicy, IltMixedZoomPolicy, IltPhysicalZoomPolicy, IltZoomPolicy

public interface IlpZoomPolicy

This interface controls the behavior of the zoom on ILOG JTGO views.

Implementations 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.

Note: This interface is subject to change in future versions.

Since:
JTGO 3.0

Method Summary
 void attach()
          This function is called when the policy is attached to a manager.
 void attachView(IlvManagerView view)
          This function is called when a view is added to the manager to which this instance is attached.
 void detach()
          This function is called when the policy is detached from its manager.
 void detachView(IlvManagerView view)
          This function is called when a view is removed from the manager to which this instance is attached.
 void zoomTransformerChanged(IlvManagerView view, IlvTransformer oldTransformer, IlvTransformer newTransformer)
          This function is called when a zoom change occurs.
 

Method Detail

attach

void attach()
This function is called when the policy is attached to a manager. The manager is already accessible as getManager(). You should not call this method directly.


detach

void detach()
This function is called when the policy is detached from its manager. The manager is still accessible as getManager(). You should not call this method directly.


attachView

void attachView(IlvManagerView view)
This function is called when a view is added to the manager to which this instance is attached.


detachView

void detachView(IlvManagerView view)
This function is called when a view is removed from the manager to which this instance is attached.


zoomTransformerChanged

void zoomTransformerChanged(IlvManagerView view,
                            IlvTransformer oldTransformer,
                            IlvTransformer newTransformer)
This function is called when a zoom change occurs. You should not call this method directly.

Parameters:
view - the target view
oldTransformer - the manager's old zoom transformer
newTransformer - the manager's new zoom transformer


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.