Interface ICloseButton
- All Known Implementing Classes:
NullCloseButton
,RectangleCloseButton
,RoundCloseButton
public interface ICloseButton
Interface for creating close buttons on the notification
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isMouseOverCloseButton
(Point mousePosition) Test if the mouse is over the close buttonvoid
Paint the close buttonwithPosition
(int x, int y) Set the position of the close button
-
Method Details
-
paintCloseButton
Paint the close button- Parameters:
g
-Graphics
to paint on
-
isMouseOverCloseButton
Test if the mouse is over the close button- Parameters:
mousePosition
- position of the mouse- Returns:
- true if mouse if over the button
-
withPosition
Set the position of the close button- Parameters:
x
- x positiony
- y position- Returns:
- this
ICloseButton
-