org.assertj.swing.query
Class ComponentLocationOnScreenQuery

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

public final class ComponentLocationOnScreenQuery
extends Object

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

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

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

Method Detail

locationOnScreen

@RunsInEDT
@Nonnull
public static Point locationOnScreen(@Nonnull
                                                       Component component)
Returns the location of the given AWT or Swing Component on screen. This query is executed in the event dispatch thread (EDT.)

Parameters:
component - the given Component.
Returns:
the location of the given Component on screen.
See Also:
Component.getLocationOnScreen()


Copyright © 2014–2015 AssertJ. All rights reserved.