tit.gui.widget.progressbar.ProgressBar Class Reference

List of all members.

Public Member Functions

 ProgressBar ()
 ProgressBar (float initialvalue)
void paintComponent (Graphics graphics)
float getValue ()
void setValue (float newvalue)
Font getFont ()
void setFont (Font newfont)
Color getFillColour ()
void setFillColour (Color newfillcolour)
Color getTextColour1 ()
void setTextColour1 (Color newtextcolour)
Color getTextColour2 ()
void setTextColour2 (Color newtextcolour)
ValueFormatter getValueFormatter ()
void setValueFormatter (ValueFormatter newformatter)

Private Attributes

float value
Font font
Color fillcolour
Color textcolour1
Color textcolour2
ValueFormatter formatter

Static Private Attributes

static final Dimension PREFERRED_SIZE = new Dimension(128, 24)

Detailed Description

A progress bar component.
Author:
Bart Sas


Constructor & Destructor Documentation

tit.gui.widget.progressbar.ProgressBar.ProgressBar (  ) 

Constructs a new ProgressBar

tit.gui.widget.progressbar.ProgressBar.ProgressBar ( float  initialvalue  ) 

Constructs a new ProgressBar.

Parameters:
initialvalue The progress bar's initial value.


Member Function Documentation

void tit.gui.widget.progressbar.ProgressBar.paintComponent ( Graphics  graphics  ) 

Paints this component.

Parameters:
graphics The Graphics on which this component is painted.

float tit.gui.widget.progressbar.ProgressBar.getValue (  ) 

Returns this progress bar's value.

Returns:
This progress bar's value.

void tit.gui.widget.progressbar.ProgressBar.setValue ( float  newvalue  ) 

Sets this progress bar's value.

Parameters:
newvalue The new value.

Font tit.gui.widget.progressbar.ProgressBar.getFont (  ) 

Returns this progress bar's font.

Returns:
This progress bar's font.

void tit.gui.widget.progressbar.ProgressBar.setFont ( Font  newfont  ) 

Sets this progress bar's font.

Parameters:
newfont The new font.

Color tit.gui.widget.progressbar.ProgressBar.getFillColour (  ) 

Returns this progress bar's fill colour.

Returns:
This progress bar's fill colour.

void tit.gui.widget.progressbar.ProgressBar.setFillColour ( Color  newfillcolour  ) 

Sets this progress bar's fill colour.

Parameters:
newfillcolour The new fill colour.

Color tit.gui.widget.progressbar.ProgressBar.getTextColour1 (  ) 

Returns this progress bar's text colour for the unfilled part.

Returns:
This progress bar's text colour for the unfilled part.

void tit.gui.widget.progressbar.ProgressBar.setTextColour1 ( Color  newtextcolour  ) 

Sets this progress bar's text colour for the unfilled part.

Parameters:
newtextcolour The new text colour for the unfilled part.

Color tit.gui.widget.progressbar.ProgressBar.getTextColour2 (  ) 

Returns this progress bar's text colour for the filled part.

Returns:
This progress bar's text colour for the filled part.

void tit.gui.widget.progressbar.ProgressBar.setTextColour2 ( Color  newtextcolour  ) 

Sets this progress bar's text colour for the filled part.

Parameters:
newtextcolour The new text colour for the filled part.

ValueFormatter tit.gui.widget.progressbar.ProgressBar.getValueFormatter (  ) 

Returns this progress bar's value formatter.

Returns:
This progress bar's value formatter.

void tit.gui.widget.progressbar.ProgressBar.setValueFormatter ( ValueFormatter  newformatter  ) 

Sets this progress bar's value formatter.

Parameters:
newformatter The new value formatter.


Member Data Documentation

final Dimension tit.gui.widget.progressbar.ProgressBar.PREFERRED_SIZE = new Dimension(128, 24) [static, private]

This progress bar's preferred size.

float tit.gui.widget.progressbar.ProgressBar.value [private]

This progress bar's value, muslt lie between 0 and 1.

Font tit.gui.widget.progressbar.ProgressBar.font [private]

This progress bar's font.

Color tit.gui.widget.progressbar.ProgressBar.fillcolour [private]

This progress bar's fill colour.

Color tit.gui.widget.progressbar.ProgressBar.textcolour1 [private]

This progress bar's text colour for the unfilled part.

Color tit.gui.widget.progressbar.ProgressBar.textcolour2 [private]

This progress bar's text colour for the filled part.

ValueFormatter tit.gui.widget.progressbar.ProgressBar.formatter [private]

This progress bar's value formatter.


The documentation for this class was generated from the following file:
Generated on Sun Jun 3 16:44:00 2007 by  doxygen 1.5.1