Interface IBackground
-
- All Known Implementing Classes:
ColorBackground
,GradientBackground
public interface IBackground
Interface for creating backgrounds for the notification
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
paintBackground(java.awt.Graphics g, boolean isMouseOver, int cornerRadius)
Paint the backgroundvoid
setAlpha(float alpha)
Set the alpha of this component.
-
-
-
Method Detail
-
paintBackground
void paintBackground(java.awt.Graphics g, boolean isMouseOver, int cornerRadius)
Paint the background- Parameters:
g
- graphics to paint onisMouseOver
- true if the mouse if over the notificationcornerRadius
- corner radius of the window
-
setAlpha
void setAlpha(float alpha)
Set the alpha of this component. Usual you don't call this method. Instead useNotificationBuilder
.withAlpha(float)
Note this only works if theGraphicsConfiguration
supports per-pixel translucency.- Parameters:
alpha
- value between 0.0f (completely transparent) and 1.0f (opaque)
-
-