Class NullOverlay

java.lang.Object
ch.swingfx.twinkle.style.overlay.NullOverlay
All Implemented Interfaces:
IOverlay

public class NullOverlay extends Object implements IOverlay
Empty implementation of IOverlay. Use this if you don't need any overlay.
  • Constructor Details

    • NullOverlay

      public NullOverlay()
  • Method Details

    • paintOverlayMouseOver

      public void paintOverlayMouseOver(Graphics g, int cornerRadius)
      Description copied from interface: IOverlay
      Invoked when we should paint the overlay when the mouse is over
      Specified by:
      paintOverlayMouseOver in interface IOverlay
      Parameters:
      g - Graphics to paint on
      cornerRadius - the corner radius of the window
    • paintOverlayMouseOut

      public void paintOverlayMouseOut(Graphics g, int cornerRadius)
      Description copied from interface: IOverlay
      Invoked when we should paint the overlay when the mouse is out
      Specified by:
      paintOverlayMouseOut in interface IOverlay
      Parameters:
      g - Graphics to paint on
      cornerRadius - the corner radius of the window
    • setOverlayPaintMode

      public void setOverlayPaintMode(OverlayPaintMode paintMode)
      Description copied from interface: IOverlay
      Set when the overlay is painted
      Specified by:
      setOverlayPaintMode in interface IOverlay
      Parameters:
      paintMode - paint mode to apply