org.jtheque.utils.ui
Class SizeTracker

java.lang.Object
  extended by org.jtheque.utils.ui.SizeTracker

public final class SizeTracker
extends Object

A tracker for the size of a JComponent

Author:
Baptiste Wicht

Constructor Summary
SizeTracker(JComponent c)
          Construct a new SizeTracker.
 
Method Summary
 boolean hasSizeChanged()
          Indicate if the size has changed from the last update.
 void updateSize()
          Update the cached size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SizeTracker

public SizeTracker(JComponent c)
Construct a new SizeTracker.

Parameters:
c - The component to track the sizes.
Method Detail

updateSize

public void updateSize()
Update the cached size.


hasSizeChanged

public boolean hasSizeChanged()
Indicate if the size has changed from the last update.

Returns:
true if the size has changed else false.


Copyright © 2010 JTheque. All Rights Reserved.