| | | | Browse by category |
Article ID: 2127
Last updated: 28 May, 2018
Question
Which subclasses of IlvManagerViewInteractor can be set to a network?
Answer
If you encapsulate an IlvManagerViewInteractor
in an IlpViewsViewInteractor
, you can theoretically add any instance of a subclass of IlvManagerViewInteractor
to a network.
The way to add this type of interactor to a network is the following:
IlvManagerViewInteractor interactor = new IlvManagerViewInteractor(); IlpViewsViewInteractor viewsInteractor = new IlpViewsViewInteractor(interactor); network.setViewInteractor(viewsInteractor);
In fact, it does not always make sense to add a JViews
view interactor to an ILOG JTGO network.
Here is the list of IlvManagerViewInteractor
subclasses and the result of their setting to a network:
IlvDragRectangleInteractor, IltEditLabelInteractor, IlvPanInteractor
These interactors work fine in a network.IltManagerMagViewInteractor, IltPanZoomedViewInteractor
These interactors are predefined interactors in the toolbar.IltManagerMagViewInteractor
has been deprecated and should be replaced withIlvManagerMagViewInteractor
.IltEditLinkPortInteractor
This interactor works only if the link layout has been set to be anIltShortLinkLayout
, otherwise the link ports that you edited will not be used when you create a link later on.IltMakeLinkInteractor
The type of link being created depends on the network handler that is used. The default link uses anIlpDefaultObject
which is rendered through anIltLink
with an SDM look.IltMoveInteractor
This interactor works fine, but you should use the classIltSelectInteractor
instead because it has more features.IlvMakePolyPointsInteractor
This interactor inserts the polypoints in a layer which is already used by ILOG JTGO. To avoid the conflict between ILOG JTGO and JViews objects, you have to reserve an extraIlvManagerLayer
and set it to be the default insertion layer. Another solution would be to subclass the interactor to create the objects in a layer which is not already used by ILOG JTGO.IlvRotateInteractor
This interactor does not work on ILOG JTGO objects because the selection object is not a subclass ofIlvHandlesSelection
.IlvConnectInteractor, IlvMakeSDMNodeInteractor, IlvMoveRectangleInteractor
These interactors are not adapted to a network.
This article was:
Helpful |
Not helpful
Report an issue
Article ID: 2127
Last updated: 28 May, 2018
Revision: 3
Views: 564
Posted: 08 Dec, 2004 by
Dean J.
Updated: 28 May, 2018 by
Gargani A.
Also listed in
Others in this category
Powered by KBPublisher (Knowledge base software)