Package ch.swingfx.twinkle.style.overlay
Interface IOverlay
- All Known Implementing Classes:
AbstractOverlay,BorderOverlay,GradientOverlay,NullOverlay
public interface IOverlay
This interface is used to paint overlay on the
GlassPane.-
Method Summary
Modifier and TypeMethodDescriptionvoidpaintOverlayMouseOut(Graphics g, int cornerRadius) Invoked when we should paint the overlay when the mouse is outvoidpaintOverlayMouseOver(Graphics g, int cornerRadius) Invoked when we should paint the overlay when the mouse is overvoidsetOverlayPaintMode(OverlayPaintMode paintMode) Set when the overlay is painted
-
Method Details
-
paintOverlayMouseOver
Invoked when we should paint the overlay when the mouse is over- Parameters:
g-Graphicsto paint oncornerRadius- the corner radius of the window
-
paintOverlayMouseOut
Invoked when we should paint the overlay when the mouse is out- Parameters:
g-Graphicsto paint oncornerRadius- the corner radius of the window
-
setOverlayPaintMode
Set when the overlay is painted- Parameters:
paintMode- paint mode to apply
-