com.threerings.opengl.gui.layout
Class HGroupLayout

java.lang.Object
  extended by com.threerings.opengl.gui.layout.LayoutManager
      extended by com.threerings.opengl.gui.layout.GroupLayout
          extended by com.threerings.opengl.gui.layout.HGroupLayout

public class HGroupLayout
extends GroupLayout

Handles horizontally laid out groups.

See Also:
GroupLayout

Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.gui.layout.GroupLayout
GroupLayout.Constraints, GroupLayout.Justification, GroupLayout.Policy
 
Field Summary
 
Fields inherited from class com.threerings.opengl.gui.layout.GroupLayout
BOTTOM, CENTER, CONSTRAIN, DEFAULT_GAP, EQUALIZE, FIXED, LEFT, NONE, RIGHT, STRETCH, TOP
 
Constructor Summary
HGroupLayout()
           
 
Method Summary
 Dimension computePreferredSize(Container target, int whint, int hhint)
          Computes the preferred size for the supplied container, based on the preferred sizes of its children and the layout policy implemented by this manager.
 void layoutContainer(Container target)
          Effects the layout policy of this manager on the supplied target, adjusting the size and position of its children based on the size and position of the target at the time of this call.
 
Methods inherited from class com.threerings.opengl.gui.layout.GroupLayout
addLayoutComponent, getConstraints, getGap, getJustification, getOffAxisJustification, getOffAxisPolicy, getPolicy, makeHBox, makeHBox, makeHoriz, makeHoriz, makeHStretch, makeVBox, makeVBox, makeVert, makeVert, makeVStretch, removeLayoutComponent, setGap, setJustification, setOffAxisJustification, setOffAxisPolicy, setPolicy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HGroupLayout

public HGroupLayout()
Method Detail

computePreferredSize

public Dimension computePreferredSize(Container target,
                                      int whint,
                                      int hhint)
Description copied from class: LayoutManager
Computes the preferred size for the supplied container, based on the preferred sizes of its children and the layout policy implemented by this manager. Note: it is not necessary to add the container's insets to the returned preferred size.

Specified by:
computePreferredSize in class LayoutManager

layoutContainer

public void layoutContainer(Container target)
Description copied from class: LayoutManager
Effects the layout policy of this manager on the supplied target, adjusting the size and position of its children based on the size and position of the target at the time of this call. Note: the target's insets must be accounted for when laying out the children.

Specified by:
layoutContainer in class LayoutManager


Copyright © 2011. All Rights Reserved.