ch.sahits.game.graphic.display
Interface ISahitsLayoutManager

All Known Implementing Classes:
SahitsMaximalGridLayout

public interface ISahitsLayoutManager

This interfaces defines the layout manager that is to be used for placing the ISahitsComponents in a ISahitsComponent. The workings are similar than with LayoutManager2. The components are added from the ISahitsContainers add method and layouted from its ISahitsComponent.paint(java.awt.Graphics) method.

Author:
Andi Hotz, (c) Sahits GmbH, 2011 Created on Jun 5, 2011

Method Summary
 void addLayoutComponent(ISahitsComponent comp, ISahitsLayoutConstraint constraint)
          Add a component with a constraint.
 void layoutContainer(ISahitsContainer parent)
          Compute the layout of the all the children in the parent container.
 

Method Detail

addLayoutComponent

void addLayoutComponent(ISahitsComponent comp,
                        ISahitsLayoutConstraint constraint)
Add a component with a constraint.

Parameters:
comp -
constraint -

layoutContainer

void layoutContainer(ISahitsContainer parent)
Compute the layout of the all the children in the parent container.

Parameters:
parent -


Copyright © 2011 Sahits GmbH. All Rights Reserved.