org.kalmeo.kuix.util
Class Metrics

java.lang.Object
  extended by org.kalmeo.kuix.util.Metrics

public class Metrics
extends java.lang.Object

Author:
bbeaulant

Field Summary
 int height
           
 Metrics next
           
 Widget widget
           
 int width
           
 int x
           
 int y
           
 
Constructor Summary
Metrics()
          Construct a Metrics
Metrics(Widget widget)
          Construct a Metrics
Metrics(Widget widget, int x, int y, int width, int height)
          Construct a Metrics
 
Method Summary
 void add(int x, int y, int width, int height)
          Modifies this Metrics so that it represents the smallest region that contains both the existing region and the specified region.
 boolean isEmpty()
          Tests whether or not this Metrics represents an empty region.
 void setBounds(int x, int y, int width, int height)
          Set the size and position of the region represented by this Metrics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public int x

y

public int y

width

public int width

height

public int height

widget

public Widget widget

next

public Metrics next
Constructor Detail

Metrics

public Metrics()
Construct a Metrics


Metrics

public Metrics(Widget widget)
Construct a Metrics

Parameters:
widget -

Metrics

public Metrics(Widget widget,
               int x,
               int y,
               int width,
               int height)
Construct a Metrics

Parameters:
widget -
x -
y -
width -
height -
Method Detail

isEmpty

public boolean isEmpty()
Tests whether or not this Metrics represents an empty region.

Returns:
true if the region represented by this Metrics is empty

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)
Set the size and position of the region represented by this Metrics.

Parameters:
x -
y -
width -
height -

add

public void add(int x,
                int y,
                int width,
                int height)
Modifies this Metrics so that it represents the smallest region that contains both the existing region and the specified region.

Parameters:
x -
y -
width -
height -


Copyright © 2007-2008 Kalmeo. All Rights Reserved.