org.assertj.swing.query
Class ComponentSizeQuery
java.lang.Object
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()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.