org.assertj.swing.query
Class ComponentSizeQuery

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

public final class ComponentSizeQuery
extends Object

Returns the size of an AWT or Swing Component. This query is executed in the event dispatch thread (EDT.)

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

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

Method Detail

sizeOf

@RunsInEDT
@Nonnull
public static Dimension sizeOf(@Nonnull
                                                 Component component)
Returns the size of the given AWT or Swing Component. This query is executed in the event dispatch thread (EDT.)

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


Copyright © 2014–2015 AssertJ. All rights reserved.