Class WindowLikeContainerLocations

java.lang.Object
org.fest.swing.driver.WindowLikeContainerLocations

final class WindowLikeContainerLocations extends Object
Understands locations of the control buttons in a window-like container.
  • Field Details

    • MAXIMIZE_BUTTON_OFFSET

      private static final int MAXIMIZE_BUTTON_OFFSET
  • Constructor Details

    • WindowLikeContainerLocations

      private WindowLikeContainerLocations()
  • Method Details

    • closeLocationOf

      @RunsInCurrentThread static Point closeLocationOf(Container c)
      Identifies the coordinates of the 'close' button.

      Note: This method is not executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.

      Parameters:
      c - the target window-like Container.
      Returns:
      the coordinates of the 'close' button.
    • maximizeLocationOf

      @RunsInCurrentThread static Point maximizeLocationOf(Container c)
      Identifies the coordinates of the 'maximize' button.

      Note: This method is not executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.

      Parameters:
      c - the target window-like Container.
      Returns:
      the coordinates of the 'maximize' button.
    • iconifyLocationOf

      @RunsInCurrentThread static Point iconifyLocationOf(Container c)
      Identifies the coordinates of the 'iconify' button, returning (0, 0) if not found.

      Note: This method is not executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.

      Parameters:
      c - the target window-like Container.
      Returns:
      the coordinates of the 'iconify' button, returning (0, 0) if not found.