Class ComPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----ComPanel

public class ComPanel
extends Panel
Commentary panel, which only consists of a few rows of texts in the form of java.awt.Label. The number of text labels are set during the class construction.

In this particular implemetation, the commentary panel is displayed as the footer of the window frame.

See Also:
AlgAnimFrame

Constructor Index

 o ComPanel(String, int)
Creates a commentary panel based on the initial comment and number of text fields specified by the parameters.

Method Index

 o setText(int, String)
This method set the text string on the text label specified by the parameters.

Constructors

 o ComPanel
 public ComPanel(String s,
                 int n_lines)
Creates a commentary panel based on the initial comment and number of text fields specified by the parameters.

Parameters:
s - Normally the algorithm's name. This parameter will be displayed on the first line of the text fields as "Running " + s.
n_lines - The number of text fields to be created on this commentary panel.

Methods

 o setText
 public void setText(int line,
                     String s)
This method set the text string on the text label specified by the parameters.

Parameters:
line - The text label to display the text string. The first one starts from 0.
s - The text string to be displayed.