- All Implemented Interfaces:
- AShapeLayout, java.io.Serializable
public class CutEdgeAShapeLayout
- extends AbstractAShapeLayout
Lays out according to the following algorithm:
Sub shapes that get no bounds, because it is already taken by earlier sub shapes, will have thier reference bounds set to an empty rectangle.
Algorithm in short: the sub shapes cut of piece after piece of the parent's bounds.
The subcomponents' place rect (
PlaceRect is thus the spec for how to "dock/cut". Use preferrably
the "dock"-optimized constructor to create the place rects for the sub components, to avoid bugs.
- See Also:
AbsRect.AbsRect(int, Number, com.miginfocom.util.gfx.geometry.filters.SizeConstraint),
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void layoutShapes(AShape parent)
- Description copied from interface:
- Layout the first level sub shapes of the
parent and call
AShape.layout() on them
parent - The parent which sub shapes should be laid out.
Copyright © 2009 MiG InfoCom AB. All Rights Reserved.