Class SplashScreen

    • Field Detail

      • DEFAULT_STEPPING_LEFT_INSET

        public static final int DEFAULT_STEPPING_LEFT_INSET
        See Also:
        Constant Field Values
      • DEFAULT_STEPPING_RIGHT_INSET

        public static final int DEFAULT_STEPPING_RIGHT_INSET
        See Also:
        Constant Field Values
      • DEFAULT_STEPPING_BOTTOM_INSET

        public static final int DEFAULT_STEPPING_BOTTOM_INSET
        See Also:
        Constant Field Values
      • defaultComposite

        public static final Composite defaultComposite
      • remanence

        protected long remanence
      • splashImage

        protected Image splashImage
      • stepImages

        protected Image[] stepImages
      • currentStep

        protected int currentStep
      • steppingLeftInset

        protected int steppingLeftInset
      • steppingRightInset

        protected int steppingRightInset
      • steppingBottomInset

        protected int steppingBottomInset
      • currentImage

        protected Image currentImage
      • currentComposite

        protected Composite currentComposite
      • currentAlpha

        protected float currentAlpha
      • alphaUp

        protected boolean alphaUp
      • jContentPane

        protected JPanel jContentPane
      • splashPane

        protected JPanel splashPane
    • Method Detail

      • getSteppingLeftInset

        public int getSteppingLeftInset()
        Returns:
        Returns the steppingInset.
      • setSteppingLeftInset

        public void setSteppingLeftInset​(int steppingLeftInset)
        Parameters:
        steppingLeftInset - The steppingInset to set.
      • getSteppingRightInset

        public int getSteppingRightInset()
        Returns:
        Returns the steppingRightInset.
      • setSteppingRightInset

        public void setSteppingRightInset​(int steppingRightInset)
        Parameters:
        steppingRightInset - The steppingRightInset to set.
      • getApplicationTitle

        public SplashScreen.Title getApplicationTitle()
        Returns:
        Returns the applicationTitle.
      • getCurrentStep

        public int getCurrentStep()
        Returns:
        Returns the currentStep.
      • setCurrentStep

        public void setCurrentStep​(int currentStep)
        Parameters:
        currentStep - The currentStep to set.
      • getSplashImage

        public Image getSplashImage()
        Returns:
        Returns the splashImage.
      • getStepImages

        public Image[] getStepImages()
        Returns:
        Returns the stepImages.
      • getSteppingBottomInset

        public int getSteppingBottomInset()
        Returns:
        Returns the steppingBottomInset.
      • setSteppingBottomInset

        public void setSteppingBottomInset​(int steppingBottomInset)
        Parameters:
        steppingBottomInset - The steppingBottomInset to set.
      • getCurrentComposite

        public Composite getCurrentComposite()
        Returns:
        Returns the currentComposite.
      • setCurrentComposite

        public void setCurrentComposite​(Composite currentComposite)
        Parameters:
        currentComposite - The currentComposite to set.
      • getRemanence

        public long getRemanence()
      • setRemanence

        public void setRemanence​(long remanence)
      • nextStep

        public void nextStep()
      • complete

        public void complete()
      • animateImage

        protected void animateImage()
      • getStepImage

        protected Image getStepImage​(int i)
      • getCompositeFor

        public Composite getCompositeFor​(int step)
        Parameters:
        step - the required step
        Returns:
        Returns the currentComposite.
      • paintSplash

        protected void paintSplash​(Graphics g)
      • initialize

        protected void initialize​(String splashImagePath,
                                  String[] stepIconsPaths)
      • getImage

        protected Image getImage​(String imagePath)
      • positionAtCenter

        protected void positionAtCenter​(int width,
                                        int height)
        Positions the window at the centre of the screen, taking into account the specified width and height
      • initializeUI

        protected void initializeUI()
      • getJContentPane

        protected JPanel getJContentPane()
      • getSplashPane

        protected JPanel getSplashPane()
      • main

        public static void main​(String[] args)