/* Copyright (c) 2009 Yahoo! Inc. All rights reserved. The copyrights embodied in the content of this file are licensed under the BSD (revised) open source license */ package com.yahoo.astra.layout.modes { /** * Constraint values available in BorderLayout. * * @see BorderLayout * @author Josh Tynjala */ public class BorderConstraints { //-------------------------------------- // Static Properties //-------------------------------------- /** * The target will be constrained to the top edge. Its width will be * altered to fit to the width of the container. Its height will * remain unchanged. * *
Consider the TOP
constraint to work like a page's
* header. It appears above all other constrained children, with no other
* children appearing to the left or right. Multiple TOP
constraints
* will be arranged vertically from the top down in the order that they
* were registered as clients of the BorderLayout algorithm.
Consider the BOTTOM
constraint to work like a page's
* footer. It appears below all other constrained children, with no other
* children appearing to the left or right. Multiple BOTTOM
constraints
* will be arranged vertically from the bottom up in the order that they
* were registered as clients of the BorderLayout algorithm.
Consinder the LEFT
constraint to work like a page's
* sidebar that is aligned to the left. It appears to the left of all other
* children, with only the top and bottom constraints taking precendence.
* Multiple LEFT
constraints will be arranged horizontally
* from left to right in the order that they were registered as clients
* of the BorderLayout algorithm.
Consinder the RIGHT
constraint to work like a page's
* sidebar that is aligned to the right. It appears to the right of all other
* children, with only the top and bottom constraints taking precendence.
* Multiple RIGHT
constraints will be arranged horizontally
* from right to left in the order that they were registered as clients
* of the BorderLayout algorithm.
Consider the CENTER
constraint to work like a page's
* primary content. It appears in between all other constraints and changes
* size to fill the remaining area (after all other constraints are
* measured). Multiple CENTER
constraints will be arranged
* vertically from top down starting from the bottom edge of the
* TOP
constraints to the top edge of any BOTTOM
* constraints.