Interface ICloseButton
-
- All Known Implementing Classes:
NullCloseButton,RectangleCloseButton,RoundCloseButton
public interface ICloseButtonInterface for creating close buttons on the notification
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisMouseOverCloseButton(java.awt.Point mousePosition)Test if the mouse is over the close buttonvoidpaintCloseButton(java.awt.Graphics g)Paint the close buttonICloseButtonwithPosition(int x, int y)Set the position of the close button
-
-
-
Method Detail
-
paintCloseButton
void paintCloseButton(java.awt.Graphics g)
Paint the close button- Parameters:
g-Graphicsto paint on
-
isMouseOverCloseButton
boolean isMouseOverCloseButton(java.awt.Point mousePosition)
Test if the mouse is over the close button- Parameters:
mousePosition- position of the mouse- Returns:
- true if mouse if over the button
-
withPosition
ICloseButton withPosition(int x, int y)
Set the position of the close button- Parameters:
x- x positiony- y position- Returns:
- this
ICloseButton
-
-