Class GenTextPanel

java.lang.Object
   |
   +----GenTextPanel

public class GenTextPanel
extends Object
GenTextPanel - Class with factory methods used to generate graphics objects for our message area.

Author:
Jayme Manning, Paul Kronenwetter

Constructor Index

 o GenTextPanel()

Method Index

 o genBroadcastMessage(String)
genBroadcastMessage - Factory method used to produce a list label for Broadcast messages.
 o genDirectMessage(String)
genDirectMessage - Factory method used to produce a list label for Direct messages.
 o genUserMessage(String)
genUserMessage - Factory method used to produce a list label for user messages.

Constructors

 o GenTextPanel
 public GenTextPanel()

Methods

 o genUserMessage
 public static JLabel genUserMessage(String x)
genUserMessage - Factory method used to produce a list label for user messages. The foreground for these messages is black.

Parameters:
x - Text for JLabel.
Returns:
JLabel - The label to be included in the list.
 o genDirectMessage
 public static JLabel genDirectMessage(String x)
genDirectMessage - Factory method used to produce a list label for Direct messages. The foreground for these messages is red.

Parameters:
x - Text for JLabel.
Returns:
JLabel - The label to be included in the list.
 o genBroadcastMessage
 public static JLabel genBroadcastMessage(String x)
genBroadcastMessage - Factory method used to produce a list label for Broadcast messages. The foreground for these messages is blue.

Parameters:
x - Text for JLabel.
Returns:
JLabel - The label to be included in the list.