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 theGlassPane
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
paintOverlayMouseOut(java.awt.Graphics g, int cornerRadius)
Invoked when we should paint the overlay when the mouse is outvoid
paintOverlayMouseOver(java.awt.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
-
-
-
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
-Graphics
to 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
-Graphics
to 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
-
-