ilog.tgo.composite
Class IltcCompositeManager

java.lang.Object
  extended by ilog.tgo.composite.IltcCompositeManager
Direct Known Subclasses:
IltcCompositeGrapher

public class IltcCompositeManager
extends Object

This class is the counterpart of IlvManager for IltcCompositeGraphic objects.

Since:
JTGO 1.0

Field Summary
protected  IlpContext _context
          Application context
protected  IltcLayerPolicy _layerPolicy
          The layer policy
protected  Vector _macroLayers
          The list of macro-layers.
protected  IlvManager _manager
           
protected  Vector _managers
          The child nodes.
protected  IltcCompositeManager _parent
           
protected static IltcLayerPolicyFactory DefaultLayerPolicy
          This is the default layer policy factory for IltcCompositeManager instances.
 
Constructor Summary
IltcCompositeManager(IlpContext appContext, IlvManager manager, boolean uniqueInIlvManager)
          Creates a new manager for IltcCompositeGraphic objects.
IltcCompositeManager(IlvManager manager)
          Creates a new manager for IltcCompositeGraphic objects.
 
Method Summary
 void _composeZoomTransformer(IlvTransformer t)
          Modifies the zoom transform: _zoomTransformer := _zoomTransformer t.
 IlvTransformer _getInverseZoomTransformer()
          Returns the inverse of the zoom transform.
 IlvTransformer _getZoomTransformer()
          Returns the zoom transform.
 void _setZoomTransformer(IlvTransformer t)
          Sets the zoom transform.
 IlvManagerLayer addIlvManagerLayerBelow(IltcLayer mlayer)
          Adds a new JViews layer below a layer.
 void addIlvManagerLayerBelow(IlvManagerLayer layer, IltcLayer mlayer)
          Adds a given JViews layer below a layer.
 IlvManagerLayer addIlvManagerLayerOnTop(IltcLayer mlayer)
          Adds a new JViews layer on top of a layer.
 void addIlvManagerLayerOnTop(IlvManagerLayer layer, IltcLayer mlayer)
          Adds a given JViews layer on top of a layer.
protected  void addInteractiveProxyObject(IltcCompositeGraphic graphic)
          Adds a composite object's interactive proxy object to the IlvManager.
 IltcLayer addLayerAtBottom()
          Adds a new layer below all other layers.
 IltcLayer addLayerBelow(IltcLayer mlayer)
          Adds a new layer below another layer.
 IltcLayer addLayerBelow(IlvManagerLayer ilvlayer)
          Adds a new layer below a JViews layer.
 IltcLayer addLayerOnTop()
          Adds a new layer on top of all other layers.
 IltcLayer addLayerOnTop(IltcLayer mlayer)
          Adds a new layer on top of another layer.
 IltcLayer addLayerOnTop(IlvManagerLayer ilvlayer)
          Adds a new layer on top of a JViews layer.
protected  void addLayoutProxyObject(IltcCompositeGraphic graphic)
          Adds a composite object's proxy object to the IlvManager.
 void addManager(IltcCompositeManager cm)
          Adds a composite submanager to this manager.
 void addObject(IltcCompositeGraphic graphic)
          Adds a composite object to the manager.
 void addObject(IltcCompositeGraphic graphic, IltcLayer mlayer)
          Adds a composite object to the manager.
protected  void addObject(IltcCompositeGraphic graphic, IltcLayer mlayer, boolean temporary)
           
static void AddZoomListener(IlvManager manager, IltcZoomListener listener)
          Adds a zoom listener to an IlvManager.
static void AddZoomSupport(IlvManagerView view)
          Adds support for zooming a view.
protected  void applyToLayoutProxy(IltcCompositeGraphic graphic, IlvGraphic proxy, IlvApplyObject f, Object arg)
          Applies a function f, with a proxy object temporarily removed from the manager.
 void applyToObject(IltcCompositeGraphic graphic, IltcApplyToComposite f)
          Applies a function to a composite graphic object.
 void applyToObject(IltcCompositeGraphic graphic, ilog.tgo.composite.internal.IltcApplyToElement f)
          Applies a method to all leaves of a composite object.
 void applyToObject(IltcCompositeGraphic graphic, IlvApplyObject f, Object arg)
          Applies a method to all leaves of a composite object.
 void applyTransformObject(IltcCompositeGraphic graphic, IlvTransformer t)
          Applies a transform to a composite object.
 void ApplyTransformObject(IltcCompositeGraphic graphic, IlvTransformer t)
          Applies a transform to a composite object.
 void attachView(IlvManagerView view)
          This function is called when a view is added to the manager to which this instance is attached.
 IlvTransformer composeInverseZoomTransformerWith(IlvTransformer t)
          Returns the composition of the inverse zoom transformer and the argument.
 void detachView(IlvManagerView view)
          This function is called when a view is removed from the manager to which this instance is attached.
 void dispose()
          Cleans up the manager, and drops references to objects, to help garbage collection.
 void endDelayingOptimizeLayout()
          Tells the manager that a temporary inhibition of layout optimization is terminated, and performs the layout optimization if it was requested since the last call to startDelayingOptimizeLayout.
 void endDelayingUpdates()
          Terminates delaying redraws and updates.
 void fireSelectionEventSeriesBegin()
          Broadcasts the beginning of a series of selection change events in this manager.
 void fireSelectionEventSeriesEnd()
          Broadcasts the end of a series of selection change events in this manager.
 void fireTreeSelectionEventSeriesBegin()
          Broadcasts the beginning of a series of selection change events in this manager or a submanager.
 void fireTreeSelectionEventSeriesEnd()
          Broadcasts the end of a series of selection change events in this manager or a submanager.
static IltcCompositeGraphic GetCompositeGraphic(IlvGraphic gg)
          Returns the composite graphic object a given IlvGraphic belongs to, null if none.
static IltcCompositeGraphic GetCompositeGraphicFromProxy(IlvGraphic gg)
          Returns the composite graphic object a given proxy represents, null if none.
static Enumeration GetCompositeManagers(IlvManager manager)
          Returns an enumeration of all IltcCompositeManagers which use a given IlvManager for display.
 IlpContext getContext()
          Returns the application context.
 IltcLayer getInsertionLayer()
          Returns the default layer where objects are inserted.
 IlvManagerLayer getInteractiveProxyLayer()
          Returns the IlvManager layer containing the IltcCompositeInteractiveProxy for the composite objects.
 IltcLayer getInvisibleLayer()
          Returns the special invisible layer.
 IltcLayer getLayer(IltcCompositeGraphic graphic)
          Returns the layer a composite object belongs to.
static IltcLayer GetLayer(IltcCompositeGraphic graphic)
           
 IltcLayer getLayerCloseBelow(IltcLayer mlayer)
          Returns the layer sitting below a given layer, with an infinitely small distance.
 IltcLayer getLayerCloseOnTop(IltcLayer mlayer)
          Returns the layer sitting on top of a given layer, with an infinitely small distance.
 IltcLayerPolicy getLayerPolicy()
          Returns this manager's layer policy.
 Enumeration getLayers()
          Returns an enumeration of the layers.
 IlvManager getManager()
          Returns the IlvGraphic manager.
 Enumeration getManagers()
          Returns an enumeration of all the composite managers that have been added in this manager.
 int getManagersCount()
          Returns the number of managers in this composite manager.
static IlvGraphic GetObject(IlvPoint p, IlvManagerView view)
          Returns the IlvGraphic at a given point in a given view.
static IlvGraphic GetObjectOnlyJTGO(IlvPoint p, IlvManagerView view)
          Like GetObject(p,view), except that it is free to ignore non-JTGO layers.
protected  IltcCompositeManager getParentManager()
          Returns the parent of this composite manager.
 IlvManagerLayer getProxyLayer()
          Returns the IlvManager layer containing the IltcCompositeProxy for the composite objects.
 IlvTransformer getRelativeTransformer(IltcCompositeManager supermanager)
          Returns the transformer that allows converting from the coordinate system of this composite manager to the coordinate system of a containing composite manager.
 IltcCompositeManager getTopLevelManager()
          Returns the top-level manager of this composite manager.
 IlvTransformer getTopLevelTransformer()
          Returns the transformer that allows converting from the coordinate system of this composite manager to the coordinate system of the top-level composite manager.
 IltZoomPolicy getZoomPolicy()
           
 IlvTransformer getZoomTransformer()
          Returns the zoom transform of the associated manager.
 boolean isManaged(IltcCompositeGraphic graphic)
          Tests whether a composite graphic object is in this manager.
 boolean isVisible(IltcLayer mlayer)
          Returns the global visibility of a layer.
 boolean isVisible(IlvManagerView view, IltcLayer mlayer)
          Returns the visibility of a layer in a given view.
 String layerFullName(String name)
          Returns the full name for a layer, given its principal name.
 void objectChanged(IltcCompositeGraphic graphic, boolean mustLayout)
          This function is called when a composite object (present in the manager) is changed or moved.
 void reDrawObject(IltcCompositeGraphic graphic)
          Redraws a composite object.
protected  void removeInteractiveProxyObject(IltcCompositeGraphic graphic)
          Removes a composite object's interactive proxy object from the IlvManager.
 void removeLayer(IltcLayer mlayer)
          Removes a layer.
 void removeLayer(IltcLayer mlayer, boolean removeCloseOnes)
          Removes a layer.
protected  void removeLayoutProxyObject(IltcCompositeGraphic graphic)
          Removes a composite object's proxy object from the IlvManager.
 void removeManager(IltcCompositeManager cm)
          Removes a composite submanager from this manager.
 void removeObject(IltcCompositeGraphic graphic)
          Removes a composite object from the manager.
protected  void removeObject(IltcCompositeGraphic graphic, boolean temporary)
           
static void RemoveZoomListener(IlvManager manager, IltcZoomListener listener)
          Removes a zoom listener from an IlvManager.
 void removeZoomPolicy()
          Sets the zoom policy back to the default.
static void RemoveZoomSupport(IlvManagerView view)
          Removes support for zooming a view.
 void replaceHierarchyRoot(IltcCompositeGraphic graphic, IltcGraphicElementAggregate newRoot)
          Replaces the hierarchy root of a composite object with another one.
static void ReplaceHierarchyRoot(IltcCompositeGraphic graphic, IltcGraphicElementAggregate newRoot)
          Replaces the hierarchy root of a composite object with another one.
 void setForcedInvisible(IltcCompositeGraphic graphic, boolean invisible)
          Makes a graphic object forcibly invisible.
 void setInsertionLayer(IltcLayer mlayer)
          Sets the default layer where objects are inserted.
 void setLayerPolicy(IltcLayerPolicy policy)
          Changes layer policy for this manager.
protected  void setParent(IltcCompositeManager parent)
           
 void setVisible(IltcLayer mlayer, boolean visible)
          Changes the global visibility of a layer.
 void setVisible(IlvManagerView view, IltcLayer mlayer, boolean visible)
          Changes the visibility of a layer in a given view.
 void startDelayingOptimizeLayout()
          Tells the manager temporarily not to bother with layout optimization, if the manager is a grapher supporting layout optimization.
 void startDelayingUpdates()
          Starts delaying redraws and updates.
 void translateObject(IltcCompositeGraphic graphic, float dx, float dy)
          Moves a composite object.
static void TranslateObject(IltcCompositeGraphic graphic, float dx, float dy)
          Moves a composite object.
 void updatePositions(IltcCompositeGraphic graphic)
          Updates the sizes and positions of all leaves of a composite object.
static void UpdatePositions(ilog.tgo.composite.internal.IltcGraphicModifier graphic)
          Updates the sizes and positions of all leaves of a composite object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_context

protected IlpContext _context
Application context

Internal method or field: do not use!

_manager

protected IlvManager _manager
Internal method or field: do not use!

_macroLayers

protected Vector _macroLayers
The list of macro-layers.

Internal method or field: do not use!

_layerPolicy

protected IltcLayerPolicy _layerPolicy
The layer policy

Internal method or field: do not use!

DefaultLayerPolicy

protected static IltcLayerPolicyFactory DefaultLayerPolicy
This is the default layer policy factory for IltcCompositeManager instances. It creates instances of IltcCompositeManager.LayerPolicy.


_parent

protected IltcCompositeManager _parent
Internal method or field: do not use!

_managers

protected Vector _managers
The child nodes.

Internal method or field: do not use!
Constructor Detail

IltcCompositeManager

public IltcCompositeManager(IlvManager manager)
Creates a new manager for IltcCompositeGraphic objects. The leaves of the composite objects will be inserted into the given IlvManager.


IltcCompositeManager

public IltcCompositeManager(IlpContext appContext,
                            IlvManager manager,
                            boolean uniqueInIlvManager)
Creates a new manager for IltcCompositeGraphic objects. The leaves of the composite objects will be inserted into the given IlvManager.

Parameters:
uniqueInIlvManager - true if this IltcCompositeManager will be the only one in the IlvManager
Since:
JTGO 3.1
Internal method or field: do not use!
Method Detail

getManager

public IlvManager getManager()
Returns the IlvGraphic manager.


getContext

public IlpContext getContext()
Returns the application context.

Since:
JTGO 3.1

getLayerPolicy

public IltcLayerPolicy getLayerPolicy()
Returns this manager's layer policy.


setLayerPolicy

public void setLayerPolicy(IltcLayerPolicy policy)
Changes layer policy for this manager.

Parameters:
policy - The new layer policy.
See Also:
IltLayerPolicy.attach(ilog.tgo.composite.IltcCompositeManager), IltLayerPolicy.detach(ilog.tgo.composite.IltcCompositeManager)

getInsertionLayer

public IltcLayer getInsertionLayer()
Returns the default layer where objects are inserted. If it is null, objects are inserted according to the layer policy.


setInsertionLayer

public void setInsertionLayer(IltcLayer mlayer)
Sets the default layer where objects are inserted.

Note: The default layer, when non-null, overrides the ruling given by the layer policy.


getProxyLayer

public IlvManagerLayer getProxyLayer()
Returns the IlvManager layer containing the IltcCompositeProxy for the composite objects.


addLayoutProxyObject

protected void addLayoutProxyObject(IltcCompositeGraphic graphic)
Adds a composite object's proxy object to the IlvManager.

Internal method or field: do not use!

removeLayoutProxyObject

protected void removeLayoutProxyObject(IltcCompositeGraphic graphic)
Removes a composite object's proxy object from the IlvManager.

Internal method or field: do not use!

applyToLayoutProxy

protected void applyToLayoutProxy(IltcCompositeGraphic graphic,
                                  IlvGraphic proxy,
                                  IlvApplyObject f,
                                  Object arg)
Applies a function f, with a proxy object temporarily removed from the manager.

Internal method or field: do not use!

getInteractiveProxyLayer

public IlvManagerLayer getInteractiveProxyLayer()
Returns the IlvManager layer containing the IltcCompositeInteractiveProxy for the composite objects.

Internal method or field: do not use!

addInteractiveProxyObject

protected void addInteractiveProxyObject(IltcCompositeGraphic graphic)
Adds a composite object's interactive proxy object to the IlvManager.

Internal method or field: do not use!

removeInteractiveProxyObject

protected void removeInteractiveProxyObject(IltcCompositeGraphic graphic)
Removes a composite object's interactive proxy object from the IlvManager.

Internal method or field: do not use!

getInvisibleLayer

public IltcLayer getInvisibleLayer()
Returns the special invisible layer.

Internal method or field: do not use!

setForcedInvisible

public void setForcedInvisible(IltcCompositeGraphic graphic,
                               boolean invisible)
Makes a graphic object forcibly invisible. It takes an effect graphically only the next time the IltcCompositeGraphic is recomputed.

Internal method or field: do not use!

isManaged

public boolean isManaged(IltcCompositeGraphic graphic)
Tests whether a composite graphic object is in this manager.


addObject

public void addObject(IltcCompositeGraphic graphic)
Adds a composite object to the manager.

Internal method or field: do not use!

addObject

public void addObject(IltcCompositeGraphic graphic,
                      IltcLayer mlayer)
Adds a composite object to the manager.

Parameters:
mlayer - Layer to put the object into.
Internal method or field: do not use!

addObject

protected void addObject(IltcCompositeGraphic graphic,
                         IltcLayer mlayer,
                         boolean temporary)
Internal method or field: do not use!

removeObject

public void removeObject(IltcCompositeGraphic graphic)
Removes a composite object from the manager.

Internal method or field: do not use!

removeObject

protected void removeObject(IltcCompositeGraphic graphic,
                            boolean temporary)
Internal method or field: do not use!

reDrawObject

public void reDrawObject(IltcCompositeGraphic graphic)
Redraws a composite object.

Internal method or field: do not use!

objectChanged

public void objectChanged(IltcCompositeGraphic graphic,
                          boolean mustLayout)
This function is called when a composite object (present in the manager) is changed or moved.

Subclasses should override this method.

Parameters:
graphic - the graphic object which has changed
mustLayout - whether the layout proxy's size has changed

TranslateObject

public static void TranslateObject(IltcCompositeGraphic graphic,
                                   float dx,
                                   float dy)
Moves a composite object.

Note: This function is only for composite objects which are not stored in an IltcCompositeManager.

Internal method or field: do not use!

translateObject

public void translateObject(IltcCompositeGraphic graphic,
                            float dx,
                            float dy)
Moves a composite object.

Internal method or field: do not use!

ApplyTransformObject

public void ApplyTransformObject(IltcCompositeGraphic graphic,
                                 IlvTransformer t)
Applies a transform to a composite object.

Note: This function is only for composite objects which are not stored in an IltcCompositeManager.

Internal method or field: do not use!

applyTransformObject

public void applyTransformObject(IltcCompositeGraphic graphic,
                                 IlvTransformer t)
Applies a transform to a composite object.

Internal method or field: do not use!

UpdatePositions

public static void UpdatePositions(ilog.tgo.composite.internal.IltcGraphicModifier graphic)
Updates the sizes and positions of all leaves of a composite object. Tries to set the getRect() of each graphic element to its getAttachmentBounds().

Note: This function is only for composite objects which are not stored in an IltcCompositeManager.

Internal method or field: do not use!

updatePositions

public void updatePositions(IltcCompositeGraphic graphic)
Updates the sizes and positions of all leaves of a composite object. Tries to set the getRect() of each graphic element to its getAttachmentBounds().

Internal method or field: do not use!

ReplaceHierarchyRoot

public static void ReplaceHierarchyRoot(IltcCompositeGraphic graphic,
                                        IltcGraphicElementAggregate newRoot)
Replaces the hierarchy root of a composite object with another one.

Note: This function is only for composite objects which are not stored in an IltcCompositeManager.

Internal method or field: do not use!

replaceHierarchyRoot

public void replaceHierarchyRoot(IltcCompositeGraphic graphic,
                                 IltcGraphicElementAggregate newRoot)
Replaces the hierarchy root of a composite object with another one. Tries to reuse the existing hierarchy as much as possible, in order to avoid unnecessary redraw operations.

Both the old and new hierarchy are destructively modified.

Internal method or field: do not use!

applyToObject

public void applyToObject(IltcCompositeGraphic graphic,
                          IltcApplyToComposite f)
Applies a function to a composite graphic object. When you need to modify the hierarchy of graphic elements of a composite object, or do anything which modifies the look or the bounding box of some of the graphic elements, you must must wrap these actions in a call to applyToObject. This function temporarily removes the composite object from the manager, then applies your function, and then puts back the composite object.


applyToObject

public void applyToObject(IltcCompositeGraphic graphic,
                          ilog.tgo.composite.internal.IltcApplyToElement f)
Applies a method to all leaves of a composite object.

Internal method or field: do not use!

applyToObject

public void applyToObject(IltcCompositeGraphic graphic,
                          IlvApplyObject f,
                          Object arg)
Applies a method to all leaves of a composite object.

Internal method or field: do not use!

getLayers

public Enumeration getLayers()
Returns an enumeration of the layers.

Returns:
an enumeration of IltcLayer
Internal method or field: do not use!

addLayerOnTop

public IltcLayer addLayerOnTop(IltcLayer mlayer)
Adds a new layer on top of another layer.


addLayerBelow

public IltcLayer addLayerBelow(IltcLayer mlayer)
Adds a new layer below another layer.


addLayerOnTop

public IltcLayer addLayerOnTop(IlvManagerLayer ilvlayer)
Adds a new layer on top of a JViews layer.


addLayerBelow

public IltcLayer addLayerBelow(IlvManagerLayer ilvlayer)
Adds a new layer below a JViews layer.


addIlvManagerLayerOnTop

public IlvManagerLayer addIlvManagerLayerOnTop(IltcLayer mlayer)
Adds a new JViews layer on top of a layer.


addIlvManagerLayerOnTop

public void addIlvManagerLayerOnTop(IlvManagerLayer layer,
                                    IltcLayer mlayer)
Adds a given JViews layer on top of a layer.


addIlvManagerLayerBelow

public IlvManagerLayer addIlvManagerLayerBelow(IltcLayer mlayer)
Adds a new JViews layer below a layer.


addIlvManagerLayerBelow

public void addIlvManagerLayerBelow(IlvManagerLayer layer,
                                    IltcLayer mlayer)
Adds a given JViews layer below a layer.


addLayerOnTop

public IltcLayer addLayerOnTop()
Adds a new layer on top of all other layers.


addLayerAtBottom

public IltcLayer addLayerAtBottom()
Adds a new layer below all other layers.


getLayerCloseOnTop

public IltcLayer getLayerCloseOnTop(IltcLayer mlayer)
Returns the layer sitting on top of a given layer, with an infinitely small distance. If such a layer does not yet exist, it is created.

The given layer and the resulting layer work identically when passed as arguments to addLayerOnTop and addLayerBelow.

Internal method or field: do not use!

getLayerCloseBelow

public IltcLayer getLayerCloseBelow(IltcLayer mlayer)
Returns the layer sitting below a given layer, with an infinitely small distance. If such a layer does not yet exist, it is created.

The given layer and the resulting layer work identically when passed as arguments to addLayerOnTop and addLayerBelow.

Internal method or field: do not use!

removeLayer

public void removeLayer(IltcLayer mlayer,
                        boolean removeCloseOnes)
Removes a layer.

Parameters:
removeCloseOnes - if true, also removes all infinitely close layers
Internal method or field: do not use!

removeLayer

public void removeLayer(IltcLayer mlayer)
Removes a layer.


getLayer

public IltcLayer getLayer(IltcCompositeGraphic graphic)
Returns the layer a composite object belongs to.

Note: Parts of the composite object may belong to other layers than the one returned.


GetLayer

public static IltcLayer GetLayer(IltcCompositeGraphic graphic)
Internal method or field: do not use!

isVisible

public boolean isVisible(IltcLayer mlayer)
Returns the global visibility of a layer.


isVisible

public boolean isVisible(IlvManagerView view,
                         IltcLayer mlayer)
Returns the visibility of a layer in a given view.

Note: For a layer to be visible in a view, both the value returned by this function and the global visibility of the layer must be true.


setVisible

public void setVisible(IltcLayer mlayer,
                       boolean visible)
Changes the global visibility of a layer.


setVisible

public void setVisible(IlvManagerView view,
                       IltcLayer mlayer,
                       boolean visible)
Changes the visibility of a layer in a given view.

Note: For the layer to become actually visible in the view, its global visibility must be true.


layerFullName

public String layerFullName(String name)
Returns the full name for a layer, given its principal name.

Internal method or field: do not use!

GetObject

public static IlvGraphic GetObject(IlvPoint p,
                                   IlvManagerView view)
Returns the IlvGraphic at a given point in a given view. Where IlvManager.getObject would return a transparent proxy belonging to a composite object, this function returns the real IlvGraphic.


GetObjectOnlyJTGO

public static IlvGraphic GetObjectOnlyJTGO(IlvPoint p,
                                           IlvManagerView view)
Like GetObject(p,view), except that it is free to ignore non-JTGO layers. This is a speed improvement for background layers containing lots of Java2D objects (like IlvGeneralPath or IlvDecoratedPath).

Internal method or field: do not use!

GetCompositeGraphic

public static IltcCompositeGraphic GetCompositeGraphic(IlvGraphic gg)
Returns the composite graphic object a given IlvGraphic belongs to, null if none.

This function is useful in the following contexts:

See Also:
IltcCompositeGraphic.getProxy()

GetCompositeGraphicFromProxy

public static IltcCompositeGraphic GetCompositeGraphicFromProxy(IlvGraphic gg)
Returns the composite graphic object a given proxy represents, null if none.

This function is useful for filtering the enumeration returned by IlvManager.getSelectedObjects().

See Also:
GetCompositeGraphic(ilog.views.IlvGraphic)
Internal method or field: do not use!

GetCompositeManagers

public static Enumeration GetCompositeManagers(IlvManager manager)
Returns an enumeration of all IltcCompositeManagers which use a given IlvManager for display. Only to be called and used while manager is locked.

Returns:
an Enumeration of IltcCompositeManagers
Internal method or field: do not use!

startDelayingOptimizeLayout

public void startDelayingOptimizeLayout()
Tells the manager temporarily not to bother with layout optimization, if the manager is a grapher supporting layout optimization. After this call, calls to IltCompositeGrapher.optimizeLayout will be inhibited until the next call to endDelayingOptimizeLayout.


endDelayingOptimizeLayout

public void endDelayingOptimizeLayout()
Tells the manager that a temporary inhibition of layout optimization is terminated, and performs the layout optimization if it was requested since the last call to startDelayingOptimizeLayout.


startDelayingUpdates

public void startDelayingUpdates()
Starts delaying redraws and updates. After this call, updates and redraws will be delayed until the next call to endDelayingUpdates.

Internal method or field: do not use!

endDelayingUpdates

public void endDelayingUpdates()
Terminates delaying redraws and updates. Performs the necessary updates and redraws that became necessary since the last call to startDelayingUpdates.

Internal method or field: do not use!

getParentManager

protected IltcCompositeManager getParentManager()
Returns the parent of this composite manager.


addManager

public void addManager(IltcCompositeManager cm)
Adds a composite submanager to this manager.

Parameters:
cm - A composite manager

removeManager

public void removeManager(IltcCompositeManager cm)
Removes a composite submanager from this manager.

Parameters:
cm - A composite manager

setParent

protected void setParent(IltcCompositeManager parent)
Internal method or field: do not use!

getManagers

public Enumeration getManagers()
Returns an enumeration of all the composite managers that have been added in this manager.


getManagersCount

public int getManagersCount()
Returns the number of managers in this composite manager.


getTopLevelManager

public IltcCompositeManager getTopLevelManager()
Returns the top-level manager of this composite manager.


getTopLevelTransformer

public IlvTransformer getTopLevelTransformer()
Returns the transformer that allows converting from the coordinate system of this composite manager to the coordinate system of the top-level composite manager. Equivalent to getRelativeTransformer(getTopLevelManager()). Very similar to IlvManager.getTopLevelTransformer().

Internal method or field: do not use!

getRelativeTransformer

public IlvTransformer getRelativeTransformer(IltcCompositeManager supermanager)
Returns the transformer that allows converting from the coordinate system of this composite manager to the coordinate system of a containing composite manager. Typically used when this composite manager contains a node, and the supermanager contains a link that ends at the node.

Internal method or field: do not use!

attachView

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


detachView

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


_getZoomTransformer

public IlvTransformer _getZoomTransformer()
Returns the zoom transform. This transform converts stationary coordinates to manager coordinates. Only to be called while manager is locked.

Internal method or field: do not use!

_getInverseZoomTransformer

public IlvTransformer _getInverseZoomTransformer()
Returns the inverse of the zoom transform. This transform converts manager coordinates to stationary coordinates. Only to be called while manager is locked.

Internal method or field: do not use!

_setZoomTransformer

public void _setZoomTransformer(IlvTransformer t)
Sets the zoom transform.

Internal method or field: do not use!

_composeZoomTransformer

public void _composeZoomTransformer(IlvTransformer t)
Modifies the zoom transform: _zoomTransformer := _zoomTransformer t. Only to be called while _manager is locked; this ensures that it is not called during an IlvManager.applyToObject(some IltcCompositePart).

Internal method or field: do not use!

composeInverseZoomTransformerWith

public IlvTransformer composeInverseZoomTransformerWith(IlvTransformer t)
Returns the composition of the inverse zoom transformer and the argument.

Parameters:
t - a IlvTransformer
Returns:
_zoomTransformer^(-1) t
Internal method or field: do not use!

getZoomPolicy

public IltZoomPolicy getZoomPolicy()
Internal method or field: do not use!

removeZoomPolicy

public void removeZoomPolicy()
Sets the zoom policy back to the default.

Internal method or field: do not use!

AddZoomSupport

public static void AddZoomSupport(IlvManagerView view)
Adds support for zooming a view.

Note: When a zoom change occurs, ILOG JTGO will change the coordinates of JViews objects present in the manager by calling IlvGraphic.applyTransform on each of them.

Note: When multiple IlvManagerView instances are attached to the same IlvManager, AddZoomSupport should be called only for one of these views. It will have an effect on all of these views, however.

See Also:
RemoveZoomSupport(ilog.views.IlvManagerView)

RemoveZoomSupport

public static void RemoveZoomSupport(IlvManagerView view)
Removes support for zooming a view.

This function must be called before another view can get zooming support on the same IlvManager.

Note: This function does not move back the JViews objects to their original coordinates before AddZoomSupport was applied. If this is desired, you have to change the view's zoom transformer to a translation before calling RemoveZoomSupport.


AddZoomListener

public static void AddZoomListener(IlvManager manager,
                                   IltcZoomListener listener)
Adds a zoom listener to an IlvManager.


RemoveZoomListener

public static void RemoveZoomListener(IlvManager manager,
                                      IltcZoomListener listener)
Removes a zoom listener from an IlvManager.


getZoomTransformer

public IlvTransformer getZoomTransformer()
Returns the zoom transform of the associated manager. It transforms conceptual to actual manager coordinates. If no AddZoomSupport has been added to a view attached to the manager, null is returned, which stands for the identity transform.


fireSelectionEventSeriesBegin

public void fireSelectionEventSeriesBegin()
Broadcasts the beginning of a series of selection change events in this manager.

Internal method or field: do not use!

fireSelectionEventSeriesEnd

public void fireSelectionEventSeriesEnd()
Broadcasts the end of a series of selection change events in this manager.

Internal method or field: do not use!

fireTreeSelectionEventSeriesBegin

public void fireTreeSelectionEventSeriesBegin()
Broadcasts the beginning of a series of selection change events in this manager or a submanager.

Internal method or field: do not use!

fireTreeSelectionEventSeriesEnd

public void fireTreeSelectionEventSeriesEnd()
Broadcasts the end of a series of selection change events in this manager or a submanager.

Internal method or field: do not use!

dispose

public void dispose()
Cleans up the manager, and drops references to objects, to help garbage collection.

Note: After calling this function, this manager is not functional any more.



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