All Packages Class Hierarchy This Package Previous Next Index
Class CH.ifa.draw.framework.ParentChangeEvent
CH.ifa.draw.framework.FigureChangeEvent
|
+----CH.ifa.draw.framework.ParentChangeEvent
- public class ParentChangeEvent
- extends FigureChangeEvent
Indicate changing the parent of a figure. Provides a static method
for actually doing the change.
-
ParentChangeEvent(Figure)
-
-
changeParent(Figure, Figure)
- Changes the parent of a Figure.
ParentChangeEvent
public ParentChangeEvent(Figure source)
changeParent
public static void changeParent(Figure figure,
Figure newParent)
- Changes the parent of a Figure. The method does an orphan-add transaction
(removeChild()-add()) rather than remove-add because removing the Figure also releases
it (destroys). The method also takes into account the special case
when a new Figure is inserted for the first time in the drawing and
has a null parent. The method checks that the change won't break the
hierarchy in which case the figure is hung directly under the drawing.
All Packages Class Hierarchy This Package Previous Next Index