Class BackgroundPainterPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ch.swingfx.twinkle.style.background.BackgroundPainterPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class BackgroundPainterPanel extends JPanel
This panel just call paintComponent on the IBackground. Use this to create your custom backgrounds
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • fBackground

      private final IBackground fBackground
    • fCornerRadius

      private final int fCornerRadius
  • Constructor Details

    • BackgroundPainterPanel

      public BackgroundPainterPanel(IBackground background, int cornerRadius)
      Create a new BackgroundPainterPanel
      Parameters:
      background - background we want to paint
      cornerRadius - corner radius of the notification
  • Method Details