com.abstractics.xmlpanel.xmllayout
Class XmlLayoutSize

java.lang.Object
  extended bycom.abstractics.xmlpanel.xmllayout.XmlLayoutSize
Direct Known Subclasses:
XmlLayoutCell, XmlLayoutRow

public abstract class XmlLayoutSize
extends java.lang.Object

A container object to hold sizing information that is used for both XmlLayoutRow and XmlLayoutCell objects.

Version:
$Id: XmlLayoutSize.java,v 1.2 2006/03/15 05:37:44 andyman99 Exp $
Author:
Andrew Lawrence, Copyright 2006 Abstractics, L.L.C., Licensed under the Apache License, Version 2.0

Constructor Summary
(package private) XmlLayoutSize(java.lang.String size)
          Only package level constructable.
 
Method Summary
(package private) static int[] determineSizes(XmlLayoutSize[] sizeObjects, int maxSize)
          Returns an int array of the sizes to use for the given sizeObjects
 int getFixed()
           
abstract  int getNeededSize()
          Should return the size element of the preferred size needed for this type of component (width for cells, height for rows)
 int getPercent()
           
abstract  java.awt.Dimension getPreferredSize()
           
abstract  boolean includeInLayout()
          Returns true/false if this cell/row should be included in the layout.
 boolean isFixed()
           
 boolean isPercent()
           
 boolean isRemainder()
           
 boolean isUnspecified()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlLayoutSize

XmlLayoutSize(java.lang.String size)
Only package level constructable. Constrcuted from XmlLayoutCell and XmlLayoutRow objects.

Parameters:
size -
Method Detail

determineSizes

static int[] determineSizes(XmlLayoutSize[] sizeObjects,
                            int maxSize)
Returns an int array of the sizes to use for the given sizeObjects

Parameters:
sizeObjects -
maxSize -
Returns:

getFixed

public int getFixed()

getPercent

public int getPercent()

getPreferredSize

public abstract java.awt.Dimension getPreferredSize()

includeInLayout

public abstract boolean includeInLayout()
Returns true/false if this cell/row should be included in the layout.

Returns:

isFixed

public boolean isFixed()

isPercent

public boolean isPercent()

isRemainder

public boolean isRemainder()

isUnspecified

public boolean isUnspecified()

getNeededSize

public abstract int getNeededSize()
Should return the size element of the preferred size needed for this type of component (width for cells, height for rows)

Returns: