public class GraphicBagHierarchyEvent extends EventObject
GraphicBagHierarchyEvent
event is fired
when the hierarchy of graphic bags changes.
This event is generated by a graphic bag (manager or graphic set) when the
graphic bag is added to or removed from another graphic bag, and passed
down the hierarchy. The event is dispatched to every IlvManager
IlvGraphicBag
and
IlvGraphicHandleBag
that is
contained in the graphic bag whose own bag has changed.
Note: not all graphic bags support GraphicBagHierarchyEvent
.
Graphic bags that cannot be contained in other graphic bags don't need to
support this event. Only IlvManager
, IlvGraphicBag
and
IlvGraphicHandleBag
support
this event, that is, they are able to fire the event and also able to receive
the event.
GraphicBagHierarchyListener
,
IlvGraphicBag.addObject(ilog.views.IlvGraphic, boolean)
,
Serialized Formsource
Constructor and Description |
---|
GraphicBagHierarchyEvent(IlvGraphicBag bag,
IlvGraphicBag oldRootBag,
IlvGraphicBag newRootBag)
Creates the event.
|
Modifier and Type | Method and Description |
---|---|
IlvGraphicBag |
getGraphicBag()
Returns the source of the event.
|
IlvGraphicBag |
getNewRootBag()
Returns the new root of the hierarchy after the change happened.
|
IlvGraphicBag |
getOldRootBag()
Returns the old root of the hierarchy before the change happened.
|
getSource, toString
public GraphicBagHierarchyEvent(IlvGraphicBag bag, IlvGraphicBag oldRootBag, IlvGraphicBag newRootBag)
bag
- The source of the event. This is the graphic bag whose
graphic bag has changed.oldRootBag
- The old root bag before the change happened.newRootBag
- The new root bag after the change happened.public IlvGraphicBag getGraphicBag()
public IlvGraphicBag getOldRootBag()
public IlvGraphicBag getNewRootBag()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.