ibm_ilog.diagram.util.Batch
Method Summary
- add(obj) Adds the specified object to the current batch.
- endBatch() Calls the _endBatch() method of all objects in the current batch.
- endBatchOn(type, method) Ensures that endBatch() is called when the specified method of the specified class is called.
Methods
This method checks whether the specified object is already contained in the current batch, and if not adds it. When the first object is added, a timer is started so as to have the endBatch() function called automatically as soon as the current event loop is finished. This method is fast and can be called many times on an object without performance issues.
Parameter | Type | Description |
---|---|---|
obj | The | object to add to the current batch. |
This function is normally called automatically by the batch timer. You can call it explicitly if you want to refresh all the objects immediately. It is also possible to have endBatch() called when a specified method of a specified class is called, using endBatchOn(type, method).
You can call endBatchOn(type, method) to make sure all objects are refreshed immediately when the specified method is called. For example, by default, ibm_ilog.diagram.util.Batch.endBatchOn(dojox.gfx.Moveable, "onMove") is called to force refresh when an object is moved using a GFX Moveable object. Otherwise, links may seem to visually "lag behind" nodes.
Parameter | Type | Description |
---|---|---|
type | ||
method |