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 TypeMethodDescriptionbooleanisMouseOverCloseButton(Point mousePosition) Test if the mouse is over the close buttonvoidPaint 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:ICloseButtonPaint the close button- Specified by:
paintCloseButtonin interfaceICloseButton- Parameters:
g-Graphicsto paint on
-
isMouseOverCloseButton
Description copied from interface:ICloseButtonTest if the mouse is over the close button- Specified by:
isMouseOverCloseButtonin interfaceICloseButton- Parameters:
mousePosition- position of the mouse- Returns:
- true if mouse if over the button
-
withPosition
Description copied from interface:ICloseButtonSet the position of the close button- Specified by:
withPositionin interfaceICloseButton- Parameters:
x- x positiony- y position- Returns:
- this
ICloseButton
-