uic.layout
Class Sizes

java.lang.Object
  extended byuic.layout.Sizes

public class Sizes
extends Object

Helper class for NaturalLayout

Since:
1.1

Constructor Summary
Sizes(int x, int y)
           
Sizes(int x, int y, int defaultValue)
           
 
Method Summary
 int getX(int index)
           
 int[] getXArray()
           
 int getY(int index)
           
 int[] getYArray()
           
 void max(Sizes s)
          set this instance' sizes to the Math.max() of both this and the arguments values.
 void min(Sizes s)
          set this instance' sizes to the Math.min() of both this and the arguments values.
 void setX(int index, int value)
           
 void setY(int index, int value)
           
 String toString()
           
 int totalX()
           
 int totalY()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sizes

public Sizes(int x,
             int y)

Sizes

public Sizes(int x,
             int y,
             int defaultValue)
Method Detail

setX

public void setX(int index,
                 int value)

setY

public void setY(int index,
                 int value)

getX

public int getX(int index)

getY

public int getY(int index)

getXArray

public int[] getXArray()

getYArray

public int[] getYArray()

totalX

public int totalX()

totalY

public int totalY()

toString

public String toString()

min

public void min(Sizes s)
set this instance' sizes to the Math.min() of both this and the arguments values. We use this instances count of items; and do no boundary checking.


max

public void max(Sizes s)
set this instance' sizes to the Math.max() of both this and the arguments values. We use this instances count of items; and do no boundary checking.



Copyright © 2002,2003 Thomas Zander Available under the Free Apache licence