com.benfante.splasher
Class SimpleSplashManager

java.lang.Object
  extended by com.benfante.splasher.SimpleSplashManager
All Implemented Interfaces:
TaskObserver

public class SimpleSplashManager
extends java.lang.Object
implements TaskObserver

A class that observe tasks and draw a description and a progress bar on a Java 6 splash screen.

Version:
$Id: SimpleSplashManager.java,v 1.3 2006-12-22 13:33:32 lucio Exp $
Author:
Lucio Benfante lucio@benfante.com

Constructor Summary
SimpleSplashManager()
          Creates a new instance of SimpleSplashManager
 
Method Summary
 void notifyAdd(Task task)
          This method will be called when an observer is added to a task.
 void setMessageColor(java.awt.Color messageColor)
          Set the message color.
 void setMessageFont(java.awt.Font messageFont)
          Set the message font.
 void setProgressBarColor(java.awt.Color progressBarColor)
          Set the progress bar color.
 void update(Task task)
          This method will be called when a task notify changes to the observer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSplashManager

public SimpleSplashManager()
Creates a new instance of SimpleSplashManager

Method Detail

update

public void update(Task task)
This method will be called when a task notify changes to the observer.

Specified by:
update in interface TaskObserver
Parameters:
task - The task notifying the changes.

notifyAdd

public void notifyAdd(Task task)
This method will be called when an observer is added to a task.

Specified by:
notifyAdd in interface TaskObserver
Parameters:
task - The task that is adding the observer.

setProgressBarColor

public void setProgressBarColor(java.awt.Color progressBarColor)
Set the progress bar color.

Parameters:
progressBarColor - The progress bar color

setMessageColor

public void setMessageColor(java.awt.Color messageColor)
Set the message color.

Parameters:
messageColor - The message color

setMessageFont

public void setMessageFont(java.awt.Font messageFont)
Set the message font.

Parameters:
messageFont - The message font