|| | |||Browse by category|
How do I show only a selection of object hierarchies in the network?
This is possible by using
IlpAbstractHierarchyAdapter.setOrigins(List newOrigins, boolean showOrigin).
By passing a list of object identifiers as the newOrigins, only the objects under the hierarchy of these new origins will be displayed in the graphic component. If you wish the new origins themselves to be displayed, pass true to the showOrigin parameter.
This feature is available for the IlpNetwork, IlpTree and IlpEquipment graphic components.
IlpNetwork graphicalComponent = ...;
Object identifier = businessObject.getIdentifier();
List originList = new ArrayList();
IlpAbstractHierarchyAdapter adapter = graphicalComponent.getAdapter();
//In this case we are not showing the new origins themselves...