Class NullCloseButton

  • All Implemented Interfaces:
    ICloseButton

    public class NullCloseButton
    extends java.lang.Object
    implements ICloseButton
    A NullCloseButton is an invisible close button. So if you don't want to display a close button use this class.
    • Constructor Summary

      Constructors 
      Constructor Description
      NullCloseButton()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isMouseOverCloseButton​(java.awt.Point mousePosition)
      Test if the mouse is over the close button
      void paintCloseButton​(java.awt.Graphics g)
      Paint the close button
      ICloseButton withPosition​(int x, int y)
      Set the position of the close button
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NullCloseButton

        public NullCloseButton()
    • Method Detail

      • paintCloseButton

        public void paintCloseButton​(java.awt.Graphics g)
        Description copied from interface: ICloseButton
        Paint the close button
        Specified by:
        paintCloseButton in interface ICloseButton
        Parameters:
        g - Graphics to paint on
      • isMouseOverCloseButton

        public boolean isMouseOverCloseButton​(java.awt.Point mousePosition)
        Description copied from interface: ICloseButton
        Test if the mouse is over the close button
        Specified by:
        isMouseOverCloseButton in interface ICloseButton
        Parameters:
        mousePosition - position of the mouse
        Returns:
        true if mouse if over the button