Package org.fest.swing.driver
Class WindowLikeContainerLocations
java.lang.Object
org.fest.swing.driver.WindowLikeContainerLocations
Understands locations of the control buttons in a window-like container.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Point
Identifies the coordinates of the 'close' button.(package private) static Point
Identifies the coordinates of the 'iconify' button, returning (0, 0) if not found.(package private) static Point
Identifies the coordinates of the 'maximize' button.
-
Field Details
-
MAXIMIZE_BUTTON_OFFSET
private static final int MAXIMIZE_BUTTON_OFFSET
-
-
Constructor Details
-
WindowLikeContainerLocations
private WindowLikeContainerLocations()
-
-
Method Details
-
closeLocationOf
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-likeContainer
.- Returns:
- the coordinates of the 'close' button.
-
maximizeLocationOf
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-likeContainer
.- Returns:
- the coordinates of the 'maximize' button.
-
iconifyLocationOf
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-likeContainer
.- Returns:
- the coordinates of the 'iconify' button, returning (0, 0) if not found.
-