All Methods
zio package

context

zio
Class ZLabel


java.lang.Object

  extended byzio.ZObject

      extended byzio.ZLabel


public class ZLabel
extends ZObject

An unchanging line of text. There are suffixes for altering the default font or changing its point size. Reasonable values for the point size range between 7 (very small) and 75 (very big).

Version:
Jul 22, 2005
Author:
copyright 2005 by J Adrian Zimmer
Licensed under the Open Software License version 2.1

Constructor Summary
ZLabel(java.lang.String label)
          Creates a ZLabel.
 
Method Summary
 ZLabel background(java.awt.Color c)
          Suffix that determines the background color.
 ZLabel debug(java.lang.String debugId)
          Suffix that creates debug output.
 ZLabel foreground(java.awt.Color c)
          Suffix that sets the foreground color.
 ZLabel pointSize(int pointSize)
          Suffix which alters the point size of the font.
 ZLabel setFont(java.awt.Font f)
          Suffix which sets the font the label will appear in.
 
Methods inherited from class zio.ZObject
getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZLabel


public ZLabel(java.lang.String label)
Creates a ZLabel.

Parameters:
label - the String to be displayed
Method Detail

background


public final ZLabel background(java.awt.Color c)
Suffix that determines the background color.

Parameters:
c - the desired color

foreground


public final ZLabel foreground(java.awt.Color c)
Suffix that sets the foreground color. This is the color of the text.


debug


public final ZLabel debug(java.lang.String debugId)
Suffix that creates debug output.

Parameters:
debugId - a string to identify this component in the debug output

setFont


public final ZLabel setFont(java.awt.Font f)
Suffix which sets the font the label will appear in.

Parameters:
f - the desired font

pointSize


public final ZLabel pointSize(int pointSize)
Suffix which alters the point size of the font.

Parameters:
pointSize - the desired point size

author
context