Display certain types of IltObject on top of another type of IltObject

Article ID: 2139
Last updated: 28 May, 2018
Article ID: 2139
Last updated: 28 May, 2018
Revision: 3
Views: 597
Posted: 01 Jul, 2010
by Dean J.
Updated: 28 May, 2018
by Gargani A.

Question

How do I make sure that certain types of IltObject are always drawn on top of another type of IltObject?

Answer

This type of issue is commonly addressed with the use of the JViews TGO layering mechanism.
To make sure that the instances of a type MyIltObjectOne are drawn on top of the instances of a type MyIltObjectTwo, start by creating a layer for your MyIltObjectOne objects and another layer for your MyIltObjectTwo objects. Then, make sure that the MyIltObjectOne layer is in a higher position or index than the MyIltObjectTwo layer.

As a result, the MyIltObjectOne objects should be drawn on top of the MyIltObjectTwo objects and not below them.

Refer to the following ILOG JTGO resources for more information on layers:

  • Documentation: JViews TGO / Programmers documentation / Graphic components / Network component / Network component services / Layers
  • Sample: JTGO_HOME/samples/network/decoration
  • FAQ: How do I implement my own layer policy?

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2139
Last updated: 28 May, 2018
Revision: 3
Views: 597
Posted: 01 Jul, 2010 by Dean J.
Updated: 28 May, 2018 by Gargani A.
Also listed in


Others in this category