org.fest.swing.query
Class ComponentSizeQuery

java.lang.Object
  extended by org.fest.swing.query.ComponentSizeQuery

public final class ComponentSizeQuery
extends Object

Understands an action, executed in the event dispatch thread, that returns the size of a Component.

Author:
Yvonne Wang, Alex Ruiz
See Also:
Component.getSize()

Method Summary
static Dimension sizeOf(Component component)
          Returns the size of the given Component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sizeOf

@RunsInEDT
public static Dimension sizeOf(Component component)
Returns the size of the given Component. This action is executed in the event dispatch thread.

Parameters:
component - the given Component.
Returns:
the size of the given Component.
See Also:
Component.getSize()


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.