Class JaxoSplashWindow

java.lang.Object
java.awt.Component
net.sf.jaxodraw.gui.launch.JaxoSplashWindow
All Implemented Interfaces:
AWTEventListener, ImageObserver, MenuContainer, Serializable, EventListener

public class JaxoSplashWindow extends Component implements AWTEventListener
The splash window displayed on startup.
Since:
2.0
See Also:
  • Constructor Details

    • JaxoSplashWindow

      public JaxoSplashWindow(String title)
      Constructor.
      Parameters:
      title - The title of the SplashWindow frame.
  • Method Details

    • start

      public void start()
      Load/show the splash screen (unless image loading failed, then the window is not shown).
    • dispose

      public final void dispose(int remaining)
      Dispose the splash screen in 'remaining >= 0' milliseconds.
      Parameters:
      remaining - The time to wait.
    • moveToFront

      public void moveToFront()
      Move the splash Window to front.
    • paint

      public final void paint(Graphics g)
      Paint the splash image.
      Overrides:
      paint in class Component
      Parameters:
      g - The graphics contect to paint to.
    • waitUntilPainted

      public void waitUntilPainted(long wait) throws InterruptedException
      Wait for 'remaining > 0' milliseconds until the image has been painted or the splash window disposed. You cannot wait forever - there is no guarantee that the frame, even if visible, will ever be painted.
      Parameters:
      wait - The time to wait.
      Throws:
      InterruptedException - InterruptedException
    • eventDispatched

      public void eventDispatched(AWTEvent e)
      Used internally.
      Specified by:
      eventDispatched in interface AWTEventListener
      Parameters:
      e - An AWT event.