com.miginfocom.ashape.layout
Class CutEdgeAShapeLayout

java.lang.Object
  extended by com.miginfocom.ashape.layout.AbstractAShapeLayout
      extended by com.miginfocom.ashape.layout.CutEdgeAShapeLayout
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), AbsRect.AbsRect(int, Number)., Serialized Form

Constructor Summary
CutEdgeAShapeLayout()
           
 
Method Summary
 void layoutShapes(AShape parent)
          Layout the first level sub shapes of the parent and call AShape.layout() on them
 
Methods inherited from class com.miginfocom.ashape.layout.AbstractAShapeLayout
getLayoutSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CutEdgeAShapeLayout

public CutEdgeAShapeLayout()
Method Detail

layoutShapes

public void layoutShapes(AShape parent)
Description copied from interface: AShapeLayout
Layout the first level sub shapes of the parent and call AShape.layout() on them

Parameters:
parent - The parent which sub shapes should be laid out.


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.