| Package | com.yworks.canvas.input |
| Class | public class CompositeHandle |
IHandle
implementations appear to be synchronized.
This class wraps given IHandle implementations
and synchronizes method calls to them automatically so that
if clients drag one of the wrapped handles, all handles will be dragged
synchronously.
| Property | Defined by | ||
|---|---|---|---|
| handles : ICollectionModel
[read-only]
Returns a live collection of
IHandles that wrap the handles
added to this instance by addHandles. | CompositeHandle | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructs a new instance of this class.
| CompositeHandle | ||
|
addHandles(tag:Object, handleArray:Array):void
Adds the array of handles so that they appear to be synchronized
with all other handles previously being added to this instance.
| CompositeHandle | ||
|
removeHandles(tag:Object):void
Removes the handles from the
handles collection that
have been added to this instance previously using addHandles tagged
with the same tag. | CompositeHandle | ||
|
Wraps a given
| CompositeHandle | ||
| handles | property |
handles:ICollectionModel [read-only]
Returns a live collection of IHandles that wrap the handles
added to this instance by addHandles.
public function get handles():ICollectionModel
| CompositeHandle | () | constructor |
public function CompositeHandle()Constructs a new instance of this class.
Using addHandles and removeHandles methods,
clients can modify the collection of handles wrapped by this instance.
The collection can be obtained usingn the handles property.
| addHandles | () | method |
public function addHandles(tag:Object, handleArray:Array):voidAdds the array of handles so that they appear to be synchronized with all other handles previously being added to this instance.
Parameterstag:Object — The tag to use for removing the handles later on.
|
|
handleArray:Array — The handles to add to this instance.
|
See also
| removeHandles | () | method |
public function removeHandles(tag:Object):void
Removes the handles from the handles collection that
have been added to this instance previously using addHandles tagged
with the same tag.
tag:Object — The tag used during the call to addHandles.
|
See also
| wrap | () | method |
public function wrap(position:uint, handle:IHandle):IHandle
Wraps a given
The returned wrapped instances should be
position:uint — One of the RectangleHandlePositions the given handle should be synchronized with.
|
|
handle:IHandle — the handle to wrap.
|
IHandle |
See also