gumbo.graphic.content
Interface LabelGraphic

All Superinterfaces:
Graphic
All Known Implementing Classes:
AbstractLabelGraphic, ClientLabelGraphic

public interface LabelGraphic
extends Graphic

An interface for common label data independent of the implementing graphic. Typically used for client data updates (see DataModelListener) using ClientLabel.

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

Method Summary
 javax.swing.Icon getIcon()
          Gets the label text.
 java.lang.String getText()
          Gets the label text.
 void setIcon(javax.swing.Icon icon)
          Sets the label icon.
 void setText(java.lang.String text)
          Sets the label text.
 
Methods inherited from interface gumbo.graphic.Graphic
getGraphic
 

Method Detail

setText

public void setText(java.lang.String text)
Sets the label text. Depending on the implementation, may support HTML and multiple lines (see JLabel), or leading white space (see JTextField).

Parameters:
text - The new text. None if null.

getText

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

Returns:
The text. None if null.

setIcon

public void setIcon(javax.swing.Icon icon)
Sets the label icon. Depending on the implementation, may do nothing or throw an exception if an icon is not supported.

Parameters:
icon - The new icon. None if null.

getIcon

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

Returns:
The icon. None if null