- All Implemented Interfaces:
- AShapeLayout, java.io.Serializable
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
|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.