com.jgoodies.metamorphosis
Class StartPageView

java.lang.Object
  extended by com.jgoodies.metamorphosis.StartPageView

final class StartPageView
extends Object

Builds the Metamorphosis start panel and provides the fan animation.

Author:
Karsten Lentzsch

Field Summary
private  com.jgoodies.animation.Animator animator
           
private  List<JButton> buttons
           
private  com.jgoodies.animation.components.FanComponent fan
           
private  com.jgoodies.animation.components.GlyphLabel glyphLabel
           
private  com.jgoodies.animation.components.BasicTextLabel label1
           
private  com.jgoodies.animation.components.BasicTextLabel label2
           
private  Metamorphosis metamorphosis
           
 
Constructor Summary
StartPageView(Metamorphosis metamorphosis)
          Constructs the start panel.
 
Method Summary
(package private)  Component build()
          Builds and returns the start panel component.
private  Component buildAnimationPanel()
          Builds and answers the animation panel that consists of the fan component.
private  com.jgoodies.animation.Animation createAnimation()
          Creates and answers a composed animation with a fan animation in the background and a sequential text animation in the foreground.
private  JButton createButton(String label, Style style)
          Creates and answers a button that launches the specified style.
private  Component createLabel(String text)
          Creates and answers a label that is large, anti-aliased, and uses a custom font.
private  void initComponents()
          Creates and configures the UI components.
(package private)  void start()
          Starts the fan animation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metamorphosis

private final Metamorphosis metamorphosis

buttons

private final List<JButton> buttons

fan

private com.jgoodies.animation.components.FanComponent fan

label1

private com.jgoodies.animation.components.BasicTextLabel label1

label2

private com.jgoodies.animation.components.BasicTextLabel label2

glyphLabel

private com.jgoodies.animation.components.GlyphLabel glyphLabel

animator

private com.jgoodies.animation.Animator animator
Constructor Detail

StartPageView

StartPageView(Metamorphosis metamorphosis)
Constructs the start panel.

Method Detail

start

void start()
Starts the fan animation.


initComponents

private void initComponents()
Creates and configures the UI components.


build

Component build()
Builds and returns the start panel component.


buildAnimationPanel

private Component buildAnimationPanel()
Builds and answers the animation panel that consists of the fan component.


createLabel

private Component createLabel(String text)
Creates and answers a label that is large, anti-aliased, and uses a custom font.


createButton

private JButton createButton(String label,
                             Style style)
Creates and answers a button that launches the specified style.


createAnimation

private com.jgoodies.animation.Animation createAnimation()
Creates and answers a composed animation with a fan animation in the background and a sequential text animation in the foreground.



Copyright © 2002-2008 JGoodies Karsten Lentzsch. All Rights Reserved.