Class HitShapeAShapeLayout

  extended by com.miginfocom.ashape.layout.AbstractAShapeLayout
      extended by com.miginfocom.ashape.layout.HitShapeAShapeLayout
All Implemented Interfaces:

public class HitShapeAShapeLayout
extends AbstractAShapeLayout

The default layout just sets the parent's HIT bounds (AShape.getHitBounds(boolean) as reference bounds for all the sub shapes. This means that the siblings laid out have no layout-relationship to each other.

For instance, the hit bounds for a TextAShape is the actual bounds of the painted text. Its shape bounds is probably different and is the bounds that the text shape are positioned within.

This layout is good to set on a shape to align something to its actual contents, such as an icon next to some text string.

See Also:
Serialized Form

Constructor Summary
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public HitShapeAShapeLayout()
Method Detail


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

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

Copyright © 2009 MiG InfoCom AB. All Rights Reserved.