ilog.views.event
Interface GraphicBagHierarchyEventReceiver

All Known Implementing Classes:
IltNetwork, IlvAssociation, IlvCompositeGraphic, IlvDefaultLaneGraphic, IlvFixedSizeGraphic, IlvFullZoomingGraphic, IlvGeneralNode, IlvGrapher, IlvGraphicGroup, IlvGraphicHandleBag, IlvGraphicSet, IlvHalfZoomingGraphic, IlvHalfZoomingGraphic, IlvHalfZoomingRenderer.HalfZoomingGraphic, IlvHyperGrapher, IlvManager, IlvMapFixedGraphic, IlvMapGraphicSet, IlvSDMCompositeNode, IlvSVGGraphicSet, IlvSwimLanesRenderer.DefaultSwimLaneGraphic, IlvURLGraphic

public interface GraphicBagHierarchyEventReceiver

Objects that can receive graphic bag hierarchy events should implement this interface. Currently, IlvManager, IlvGraphicSet and IlvGraphicHandleBag can send and receive hierarchy events, hence they implement this interface.

Since:
JViews 8.1
See Also:
GraphicBagHierarchyEvent, GraphicBagHierarchyListener

Method Summary
 void addGraphicBagHierarchyListener(GraphicBagHierarchyListener listener)
          Adds the specified listener to receive events from ancestors and from this object when the hierarchy of graphic bags has changed.
 void enableGraphicBagHierarchyEventForwarding()
          Enables forwarding of GraphicBagHierarchyEvent events, since the subobjects contained in this object need to receive the events.
 void fireGraphicBagHierarchyEvent(GraphicBagHierarchyEvent event)
          Fires a graphic bag hierarchy event to this object and all contained objects.
 boolean needsGraphicBagHierarchyEvent()
          Returns whether the object needs to receive GraphicBagHierarchyEvent events, either from itself or from its ancestors.
 void removeGraphicBagHierarchyListener(GraphicBagHierarchyListener listener)
          Removes the specified listener so that it no longer receives events from ancestors and from this object when the hierarchy of graphic bags has changed.
 

Method Detail

addGraphicBagHierarchyListener

void addGraphicBagHierarchyListener(GraphicBagHierarchyListener listener)
Adds the specified listener to receive events from ancestors and from this object when the hierarchy of graphic bags has changed. The hierarchy event is generated by an object (a manager or graphic set) when it is added to or removed from another graphic bag, and passed down the hierarchy. The event is dispatched to every receiver that is contained in object whose graphic bag has changed.

Parameters:
listener - The listener.
See Also:
removeGraphicBagHierarchyListener(ilog.views.event.GraphicBagHierarchyListener)

removeGraphicBagHierarchyListener

void removeGraphicBagHierarchyListener(GraphicBagHierarchyListener listener)
Removes the specified listener so that it no longer receives events from ancestors and from this object when the hierarchy of graphic bags has changed.

Parameters:
listener - The listener.
See Also:
addGraphicBagHierarchyListener(ilog.views.event.GraphicBagHierarchyListener)

enableGraphicBagHierarchyEventForwarding

void enableGraphicBagHierarchyEventForwarding()
Enables forwarding of GraphicBagHierarchyEvent events, since the subobjects contained in this object need to receive the events.


needsGraphicBagHierarchyEvent

boolean needsGraphicBagHierarchyEvent()
Returns whether the object needs to receive GraphicBagHierarchyEvent events, either from itself or from its ancestors.


fireGraphicBagHierarchyEvent

void fireGraphicBagHierarchyEvent(GraphicBagHierarchyEvent event)
Fires a graphic bag hierarchy event to this object and all contained objects.



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.