Class NullCloseButton
java.lang.Object
ch.swingfx.twinkle.style.closebutton.NullCloseButton
- All Implemented Interfaces:
ICloseButton
A
NullCloseButton
is an invisible close button. So if you don't want to display a close button use this class.-
Constructor Summary
Constructors -
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
-
Constructor Details
-
NullCloseButton
public NullCloseButton()
-
-
Method Details
-
paintCloseButton
Description copied from interface:ICloseButton
Paint the close button- Specified by:
paintCloseButton
in interfaceICloseButton
- Parameters:
g
-Graphics
to paint on
-
isMouseOverCloseButton
Description copied from interface:ICloseButton
Test if the mouse is over the close button- Specified by:
isMouseOverCloseButton
in interfaceICloseButton
- Parameters:
mousePosition
- position of the mouse- Returns:
- true if mouse if over the button
-
withPosition
Description copied from interface:ICloseButton
Set the position of the close button- Specified by:
withPosition
in interfaceICloseButton
- Parameters:
x
- x positiony
- y position- Returns:
- this
ICloseButton
-