Retrieving IlpGraphic or the IlvGraphic corresponding to an IltObject

Article ID: 2129
Last updated: 28 May, 2018
Article ID: 2129
Last updated: 28 May, 2018
Revision: 3
Views: 572
Posted: 08 Dec, 2004
by Dean J.
Updated: 28 May, 2018
by Gargani A.

Question

How do I get the IlpGraphic or the IlvGraphic corresponding to an IltObject?

Answer

You first have to retrieve the representation object (class IlpRepresentationObject) corresponding to your IltObject by using the methodIlpAbstractAdapter.getRepresentationObject(IltObject). 

Once the representation object is retrieved, you can get the IlpGraphic by using the method IlpNetworkView.getGraphic(IlpRepresentationObject)
Then, you can call IlpNetworkView.getLayoutProxy(IlpGraphic)
The following code extract shows you how to use these methods:

IlpNetwork network;
IltObject node; 
IlpNetworkView view = network.getView();
IlpNetworkAdapter adapter = network.getAdapter();
IlpRepresentationObject ro = adapter.getRepresentationObject(node);
IlpGraphic gr = view.getGraphic(ro);
IlvGraphic g  = view.getLayoutProxy(gr);

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2129
Last updated: 28 May, 2018
Revision: 3
Views: 572
Posted: 08 Dec, 2004 by Dean J.
Updated: 28 May, 2018 by Gargani A.
Also listed in


Others in this category