Class SplashScreen

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, SplashScreenInterface, ProgressViewer

public class SplashScreen
extends JFrame
implements SplashScreenInterface
A frame that is displayed while Graffiti is loading. The progress of loading is displayed with a progress bar and a description of the current loading action.
Version:
$Revision: 1.7 $ $Date: 2010/12/22 13:05:53 $
Author:
Michael Forster
See Also:
Serialized Form
  • Constructor Details

    • SplashScreen

      public SplashScreen​(String applicationName, String copyright)
    • SplashScreen

      public SplashScreen()
      Creates a new SplashScreen object.
  • Method Details

    • setMaximum

      public void setMaximum​(int maximum)
      Description copied from interface: ProgressViewer
      Sets the progress viewer's maximum value to n. By default, the maximum value is 100.
      Specified by:
      setMaximum in interface ProgressViewer
      Specified by:
      setMaximum in interface SplashScreenInterface
      Parameters:
      maximum - the new maximum
    • setText

      public void setText​(String text)
      Description copied from interface: ProgressViewer
      Sets the value of the progress text. By default, this string is null. If you have provided a custom progress string and want to revert to the built-in behavior, set the string back to null.
      Specified by:
      setText in interface ProgressViewer
      Specified by:
      setText in interface SplashScreenInterface
      Parameters:
      text - the value of the progress string
    • setValue

      public void setValue​(int value)
      Description copied from interface: ProgressViewer
      Sets the progress viewer's current value to n.
      Specified by:
      setValue in interface ProgressViewer
      Specified by:
      setValue in interface SplashScreenInterface
      Parameters:
      value - the new value
    • getValue

      public int getValue()
      Description copied from interface: ProgressViewer
      Returns the progress viewer's current value. The value is always between the zero and the maximum values, inclusive. By default, the value is initialized to zero.
      Specified by:
      getValue in interface ProgressViewer
      Specified by:
      getValue in interface SplashScreenInterface
      Returns:
      DOCUMENT ME!
    • setInitialisationFinished

      public void setInitialisationFinished()
      Specified by:
      setInitialisationFinished in interface SplashScreenInterface
    • getMaximum

      public int getMaximum()
      Specified by:
      getMaximum in interface ProgressViewer