gumbo.visualize.data.client
Class ClientLabel

java.lang.Object
  |
  +--gumbo.visualize.data.client.ClientLabel
All Implemented Interfaces:
java.io.Serializable

public class ClientLabel
extends java.lang.Object
implements java.io.Serializable

An immutable object intended for use as client data to provide custom label content, including text and an icon. Depending on the target native graphic, the text may include HTML tags, such as for multiple lines, fonts, and colors (see JLabel).

Version:
$Revision: 1.1 $
Author:
Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.
See Also:
Serialized Form

Constructor Summary
ClientLabel(java.lang.String text, javax.swing.Icon icon)
          Creates an instance, with the specified contents.
 
Method Summary
 javax.swing.Icon getIcon()
          Gets the label icon.
 java.lang.String getText()
          Gets the label text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientLabel

public ClientLabel(java.lang.String text,
                   javax.swing.Icon icon)
Creates an instance, with the specified contents.

Parameters:
text - The text. Null if none.
icon - The icon. Null if none.
Method Detail

getText

public java.lang.String getText()
Gets the label text.

Returns:
The text. None if null.

getIcon

public javax.swing.Icon getIcon()
Gets the label icon.

Returns:
The icon. None if null.