Package ch.swingfx.twinkle.style.overlay
Class NullOverlay
java.lang.Object
ch.swingfx.twinkle.style.overlay.NullOverlay
- All Implemented Interfaces:
IOverlay
Empty implementation of
IOverlay
. Use this if you don't need any overlay.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
paintOverlayMouseOut
(Graphics g, int cornerRadius) Invoked when we should paint the overlay when the mouse is outvoid
paintOverlayMouseOver
(Graphics g, int cornerRadius) Invoked when we should paint the overlay when the mouse is overvoid
setOverlayPaintMode
(OverlayPaintMode paintMode) Set when the overlay is painted
-
Constructor Details
-
NullOverlay
public NullOverlay()
-
-
Method Details
-
paintOverlayMouseOver
Description copied from interface:IOverlay
Invoked when we should paint the overlay when the mouse is over- Specified by:
paintOverlayMouseOver
in interfaceIOverlay
- Parameters:
g
-Graphics
to paint oncornerRadius
- the corner radius of the window
-
paintOverlayMouseOut
Description copied from interface:IOverlay
Invoked when we should paint the overlay when the mouse is out- Specified by:
paintOverlayMouseOut
in interfaceIOverlay
- Parameters:
g
-Graphics
to paint oncornerRadius
- the corner radius of the window
-
setOverlayPaintMode
Description copied from interface:IOverlay
Set when the overlay is painted- Specified by:
setOverlayPaintMode
in interfaceIOverlay
- Parameters:
paintMode
- paint mode to apply
-