Package ch.swingfx.twinkle.style.overlay
Interface IOverlay
-
- All Known Implementing Classes:
AbstractOverlay,BorderOverlay,GradientOverlay,NullOverlay
public interface IOverlayThis interface is used to paint overlay on theGlassPane.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpaintOverlayMouseOut(java.awt.Graphics g, int cornerRadius)Invoked when we should paint the overlay when the mouse is outvoidpaintOverlayMouseOver(java.awt.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 Detail
-
paintOverlayMouseOver
void paintOverlayMouseOver(java.awt.Graphics g, int cornerRadius)Invoked when we should paint the overlay when the mouse is over- Parameters:
g-Graphicsto paint oncornerRadius- the corner radius of the window
-
paintOverlayMouseOut
void paintOverlayMouseOut(java.awt.Graphics g, int cornerRadius)Invoked when we should paint the overlay when the mouse is out- Parameters:
g-Graphicsto paint oncornerRadius- the corner radius of the window
-
setOverlayPaintMode
void setOverlayPaintMode(OverlayPaintMode paintMode)
Set when the overlay is painted- Parameters:
paintMode- paint mode to apply
-
-