clock
Class LabelLine

java.lang.Object
  extended by clock.LabelLine

public class LabelLine
extends java.lang.Object

Display of the label line beneath a clock


Constructor Summary
LabelLine(int leftX, int upperY, int lineWidth, java.lang.String label, java.awt.Color color)
          Constructor
 
Method Summary
 void draw(java.awt.Graphics graphics)
          Draw this line
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelLine

public LabelLine(int leftX,
                 int upperY,
                 int lineWidth,
                 java.lang.String label,
                 java.awt.Color color)
Constructor

Parameters:
leftX - the X coordinate of the upper left corner of the bounding rectangle for the line relative to upper left corner of clock
upperY - the Y coordinate of the upper left corner of the bounding rectangle for the line relative to upper left corner of clock
lineWidth - the width available for the line - displayed line will be centered within this width
label - the descriptive text to be displayed in this line
color - the color of the line
Method Detail

draw

public void draw(java.awt.Graphics graphics)
Draw this line

Parameters:
graphics - the graphics object on which to draw