com.ibm.clock
Class IClock

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.ibm.clock.IClock
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class IClock
extends javax.swing.JPanel
implements java.io.Serializable, java.beans.PropertyChangeListener

An IClock component is a Java bean that can be used to display a clock in an application. The clock has two modes of display - analog and digital. In both these modes, the developer can completely customize the look and feel of the clock. The bean supports different time-zones. Future releases, will let the developer set an alarm and use the bean as a stopwatch.

Usage:

The IClock bean can be customized from within an application builder tool or by manually writing the requisite code. At any point, the developer can get the time shown by the clock by calling the getTime( ) method. The developer can also set the time for the clock by calling the setTime( ) method. Time is represented by a separate class. The clock can be started by calling the method start() on the clock. The clock starts with the system time adjusted to the currently set time zone. The time can be synchronized by setting the time through the appropriate api at runtime. The clock can be stopped by calling the method stop().

The clock has two modes of display -- Analog and Digital. The display can be set to either analog or display. Both the display modes support a variety of customizations. For the customizations possible on each display see the class documentations of each class. The IClock acts as a facade for each of the properties of Analog and Digital display.

Apart from the view related customizations on each of the displays the following properties can be set on the clock itself.

All the above properties let the developer have complete control over the appearance and behaviour of the IClock bean. For more information on how to set a particular property, please see the corresponding setter method.

The following code snippet demonstrates how to use the IClock bean from within an application to have a customised clock display:

 ...
 import com.ibm.clock.IClock;
 import com.ibm.clock.AnalogDisplay;
 import com.ibm.clock.DigitalDisplay;

 import java.awt.Color;

 ...

     // Create a new clock for the default time-zone and locale.
 IClock myClock = new IClock( );


     // set the borderwidth of analog display to 5
 myClock.setAnalogBorderWidth( 5 );

     // We wish to display ticks only at the 12, 1, 2 etc. marks.
 myClock.setAnalogTicksStyle( AnalogDisplay.TICK_STYLE_MAJOR);

     // The numerals should be roman numerals.
 myClock.setAnalogNumeralStyle( AnalogDisplay.NUMERAL_ROMAN );

 ...
 

Important Notes and Caveats:

Due to a bug with the current release of JDK (1.1.4), for certain time-zones the system reports incorrect time-zone values on Windows NT and Windows 95. This causes the clock to show the time for a time- zone other than the actual system time-zone. The only workaround currently available seems to be to set the time-zone explicitly by calling the setTimeZone( ) method.

Note: In the following descriptions, fully qualified class names have been omitted for brevity. Therefore,

in this document.

See Also:
Time, AnalogDisplay, DigitalDisplay, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static int ANALOG
          Analog mode of display.
static int DIGITAL
          Digital mode of display.
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
IClock()
          Default Constructor.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Add a property change listener.
 java.awt.Color getAnalogBorderColor()
          Get the analog clock border color.
 int getAnalogBorderWidth()
          Get the border width of analog display.
 java.awt.Color getAnalogDialColor()
          Get the dial color of analog display.
 java.awt.Color getAnalogHourHandColor()
          Get the hour hand color in analog display.
 boolean getAnalogHourHandVisible()
          Is the analog hour hand visible ?
 java.awt.Color getAnalogMinuteHandColor()
          Get the minute hand color of analog display.
 boolean getAnalogMinuteHandVisible()
          Is the analog minute hand visible ?
 java.awt.Color getAnalogNumeralColor()
          Get the numeral Color of the Analog display.
 java.awt.Font getAnalogNumeralFont()
          Get the font for the numerals used in Analog clock.
 int getAnalogNumeralStyle()
          Get the numeral style of the analog display.
 java.awt.Color getAnalogSecondHandColor()
          Get the second hand color of analog display.
 boolean getAnalogSecondHandVisible()
          Is the analog second hand visible ?
 java.awt.Color getAnalogTickColor()
          Get the tick color of the analog display.
 int getAnalogTickStyle()
          Get the tick style of the analog display.
 java.awt.Color getDigitalBackGroundColor()
          Get the background color of digital display.
 boolean getDigitalDisplayAMPM()
          Get the display AMPM mode.
 int getDigitalDisplayStyle()
          Get the display style in digital mode.
 java.awt.Color getDigitalForeGroundColor()
          Get foreground color of digital display.
 java.awt.Font getDigitalNumeralFont()
          Get the numeral font of digital display.
 boolean getDigitalTwelveHourMode()
          Get the Twelve Hour Mode
 int getDisplayMode()
          Get the current display mode.
 java.awt.Insets getInsets()
          Override Container getInsets() to make room for some text above the image.
 Time getTime()
          Get the current time as shown by the clock.
 java.util.TimeZone getTimeZone()
          Get the current time zone.
 void propertyChange(java.beans.PropertyChangeEvent e)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
          Remove a property change listener.
 void setAnalogBorderColor(java.awt.Color c)
          Set the border color of analog display.
 void setAnalogBorderWidth(int w)
          Set the border width of analog display.
 void setAnalogDialColor(java.awt.Color c)
          Set the dial color of the analog display.
 void setAnalogHourHandColor(java.awt.Color c)
          Set the analog hour hand color.
 void setAnalogHourHandVisible(boolean v)
          Set the visibility of hour hand of analog display.
 void setAnalogMinuteHandColor(java.awt.Color c)
          Set the minute hand color of analog display.
 void setAnalogMinuteHandVisible(boolean v)
          Set the visibility of minute hand of analog display.
 void setAnalogNumeralColor(java.awt.Color c)
          Set the numeral color of the analog display.
 void setAnalogNumeralFont(java.awt.Font f)
          Set the numeral font to be used in the Analog display.
 void setAnalogNumeralStyle(int w)
          Set the numeral style of the analog display.
 void setAnalogSecondHandColor(java.awt.Color c)
          Set the second hand color of analog display.
 void setAnalogSecondHandVisible(boolean v)
          Set the visibility of second hand of analog display.
 void setAnalogTickColor(java.awt.Color c)
          Set the tick color of the analog display.
 void setAnalogTickStyle(int w)
          Set the tick style of the analog display.
 void setDigitalBackGroundColor(java.awt.Color c)
          Set the background color of digital display.
 void setDigitalDisplayAMPM(boolean v)
          Set the displayAMPM mode
 void setDigitalDisplayStyle(int w)
          Set the display style in digital mode.
 void setDigitalForeGroundColor(java.awt.Color c)
          Set the foreground color of digital display.
 void setDigitalNumeralFont(java.awt.Font f)
          Set the numeral font of digital display.
 void setDigitalTwelveHourMode(boolean v)
          Set twelve hour mode.
 void setDisplayMode(int newDisplayMode)
          Set the display mode.
static void setInset(int vetrical, int horizontal)
           
 void setLayout(java.awt.LayoutManager layout)
          Overrides from super class.
 void setTime(Time time)
          Set the time.
 void setTimeZone(java.util.TimeZone tz)
          Set the timezone.
 void start()
          Start the clock.
 void stop()
          Stop the clock from runnning.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ANALOG

public static final int ANALOG
Analog mode of display.

See Also:
getDisplayMode(), setDisplayMode(int), Constant Field Values

DIGITAL

public static final int DIGITAL
Digital mode of display.

See Also:
getDisplayMode(), setDisplayMode(int), Constant Field Values
Constructor Detail

IClock

public IClock()
Default Constructor. The default setting is analog clock.

Method Detail

setLayout

public void setLayout(java.awt.LayoutManager layout)
Overrides from super class. Setting a layout does nothing effectively in IClock.

Overrides:
setLayout in class java.awt.Container

getInsets

public java.awt.Insets getInsets()
Override Container getInsets() to make room for some text above the image.

Overrides:
getInsets in class javax.swing.JComponent

setInset

public static void setInset(int vetrical,
                            int horizontal)

start

public void start()
Start the clock. Calling this method will start the clock.


stop

public void stop()
          throws java.lang.SecurityException
Stop the clock from runnning. Calling this method will stop the clock from running.

Throws:
java.lang.SecurityException - If the current thread does not have access rights for stopping the clock. Note : The thread which started the clock has access rights to stop the clock.

getTimeZone

public java.util.TimeZone getTimeZone()
Get the current time zone.

Returns:
The current time zone.

setTimeZone

public void setTimeZone(java.util.TimeZone tz)
                 throws java.lang.IllegalArgumentException
Set the timezone.

Parameters:
tz - The new time zone. Cannot be null.
Throws:
java.lang.IllegalArgumentException - If a null argument is passed.

setTime

public void setTime(Time time)
             throws java.lang.IllegalArgumentException
Set the time. This api should be called to synchronize the clock at runtime. The application builder can provide a dialog to edit this at run time.

Parameters:
time - The time to be set.
Throws:
java.lang.IllegalArgumentException - if any of the parameters is incorrect.

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

getTime

public Time getTime()
Get the current time as shown by the clock.

Returns:
The time of the day.

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Add a property change listener.

Overrides:
addPropertyChangeListener in class java.awt.Container

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Remove a property change listener.

Overrides:
removePropertyChangeListener in class java.awt.Component

getDisplayMode

public int getDisplayMode()
Get the current display mode.

Returns:
The current display mode.

setDisplayMode

public void setDisplayMode(int newDisplayMode)
                    throws java.lang.IllegalArgumentException
Set the display mode. This can either be IClock.ANALOG or IClock.DIGITAL.

Parameters:
newDisplayMode - The new display mode.
Throws:
java.lang.IllegalArgumentException - If the specified argument is illegal.

getAnalogBorderColor

public java.awt.Color getAnalogBorderColor()
Get the analog clock border color.

Returns:
the border color.
See Also:
AnalogDisplay.getBorderColor()

setAnalogBorderColor

public void setAnalogBorderColor(java.awt.Color c)
Set the border color of analog display.

Parameters:
c - The new color. Cannot be null.
See Also:
AnalogDisplay.setBorderColor(java.awt.Color)

getAnalogBorderWidth

public int getAnalogBorderWidth()
Get the border width of analog display.

Returns:
The border width.
See Also:
AnalogDisplay.getBorderWidth()

setAnalogBorderWidth

public void setAnalogBorderWidth(int w)
Set the border width of analog display.

Parameters:
w - The new width.
See Also:
AnalogDisplay.setBorderWidth(int)

getAnalogDialColor

public java.awt.Color getAnalogDialColor()
Get the dial color of analog display.

Returns:
The dial color.
See Also:
AnalogDisplay.getDialColor()

setAnalogDialColor

public void setAnalogDialColor(java.awt.Color c)
Set the dial color of the analog display.

Parameters:
c - The new dial color. Cannot be null.
See Also:
AnalogDisplay.setDialColor(java.awt.Color)

getAnalogTickColor

public java.awt.Color getAnalogTickColor()
Get the tick color of the analog display.

Returns:
Color The tick color.
See Also:
AnalogDisplay.getTickColor()

setAnalogTickColor

public void setAnalogTickColor(java.awt.Color c)
Set the tick color of the analog display.

Parameters:
c - The new tick color. Cannot be null.
See Also:
AnalogDisplay.setTickColor(java.awt.Color)

getAnalogTickStyle

public int getAnalogTickStyle()
Get the tick style of the analog display.

Returns:
The tick style.
See Also:
AnalogDisplay.getTickStyle()

setAnalogTickStyle

public void setAnalogTickStyle(int w)
Set the tick style of the analog display.

Parameters:
w - The new tick style.
See Also:
AnalogDisplay.setTickStyle(int)

getAnalogNumeralStyle

public int getAnalogNumeralStyle()
Get the numeral style of the analog display.

Returns:
The numeral style.
See Also:
AnalogDisplay.getNumeralStyle()

setAnalogNumeralStyle

public void setAnalogNumeralStyle(int w)
Set the numeral style of the analog display.

Parameters:
w - The new numeral style.
See Also:
AnalogDisplay.setNumeralStyle(int)

getAnalogNumeralColor

public java.awt.Color getAnalogNumeralColor()
Get the numeral Color of the Analog display.

Returns:
The numeral color.
See Also:
AnalogDisplay.getNumeralColor()

setAnalogNumeralColor

public void setAnalogNumeralColor(java.awt.Color c)
Set the numeral color of the analog display.

Parameters:
c - The new color.
See Also:
AnalogDisplay.setNumeralColor(java.awt.Color)

getAnalogNumeralFont

public java.awt.Font getAnalogNumeralFont()
Get the font for the numerals used in Analog clock.

Returns:
the current font.
See Also:
AnalogDisplay.getNumeralFont()

setAnalogNumeralFont

public void setAnalogNumeralFont(java.awt.Font f)
Set the numeral font to be used in the Analog display.

Parameters:
font - The font to be used.
See Also:
AnalogDisplay.setNumeralFont(java.awt.Font)

getAnalogHourHandColor

public java.awt.Color getAnalogHourHandColor()
Get the hour hand color in analog display.

Returns:
The hour hand color.
See Also:
AnalogDisplay.getHourHandColor()

setAnalogHourHandColor

public void setAnalogHourHandColor(java.awt.Color c)
Set the analog hour hand color.

Parameters:
c - The new hour hand color.
See Also:
AnalogDisplay.setHourHandColor(java.awt.Color)

getAnalogHourHandVisible

public boolean getAnalogHourHandVisible()
Is the analog hour hand visible ?

Returns:
boolean The hour hand visibility.
See Also:
AnalogDisplay.isHourHandVisible()

setAnalogHourHandVisible

public void setAnalogHourHandVisible(boolean v)
Set the visibility of hour hand of analog display.

Parameters:
v - true => visible, false otherwise.
See Also:
AnalogDisplay.setHourHandVisible(boolean)

getAnalogMinuteHandColor

public java.awt.Color getAnalogMinuteHandColor()
Get the minute hand color of analog display.

Returns:
the minute hand color.
See Also:
AnalogDisplay.getMinuteHandColor()

setAnalogMinuteHandColor

public void setAnalogMinuteHandColor(java.awt.Color c)
Set the minute hand color of analog display.

Parameters:
c - The new color.
See Also:
AnalogDisplay.setMinuteHandColor(java.awt.Color)

getAnalogMinuteHandVisible

public boolean getAnalogMinuteHandVisible()
Is the analog minute hand visible ?

Returns:
boolean The minute hand visibility.
See Also:
AnalogDisplay.isMinuteHandVisible()

setAnalogMinuteHandVisible

public void setAnalogMinuteHandVisible(boolean v)
Set the visibility of minute hand of analog display.

Parameters:
v - true => visible, false otherwise.
See Also:
AnalogDisplay.setMinuteHandVisible(boolean)

getAnalogSecondHandColor

public java.awt.Color getAnalogSecondHandColor()
Get the second hand color of analog display.

Returns:
the second hand color.
See Also:
AnalogDisplay.getSecondHandColor()

setAnalogSecondHandColor

public void setAnalogSecondHandColor(java.awt.Color c)
Set the second hand color of analog display.

Parameters:
c - The new color.
See Also:
AnalogDisplay.setSecondHandColor(java.awt.Color)

getAnalogSecondHandVisible

public boolean getAnalogSecondHandVisible()
Is the analog second hand visible ?

Returns:
boolean The second hand visibility.
See Also:
AnalogDisplay.isSecondHandVisible()

setAnalogSecondHandVisible

public void setAnalogSecondHandVisible(boolean v)
Set the visibility of second hand of analog display.

Parameters:
v - true => visible, false otherwise.
See Also:
AnalogDisplay.setSecondHandVisible(boolean)

getDigitalNumeralFont

public java.awt.Font getDigitalNumeralFont()
Get the numeral font of digital display.

Returns:
The numeral font.
See Also:
DigitalDisplay.getNumeralFont()

setDigitalNumeralFont

public void setDigitalNumeralFont(java.awt.Font f)
Set the numeral font of digital display.

Parameters:
f - The new font.
See Also:
DigitalDisplay.setNumeralFont(java.awt.Font)

getDigitalForeGroundColor

public java.awt.Color getDigitalForeGroundColor()
Get foreground color of digital display.

Returns:
The foreground color.
See Also:
DigitalDisplay.getForeGroundColor()

setDigitalForeGroundColor

public void setDigitalForeGroundColor(java.awt.Color c)
Set the foreground color of digital display.

Parameters:
c - The new color.
See Also:
DigitalDisplay.setForeGroundColor(java.awt.Color)

getDigitalBackGroundColor

public java.awt.Color getDigitalBackGroundColor()
Get the background color of digital display.

Returns:
The background color.
See Also:
DigitalDisplay.getBackGroundColor()

setDigitalBackGroundColor

public void setDigitalBackGroundColor(java.awt.Color c)
Set the background color of digital display.

Parameters:
c - The new color.
See Also:
DigitalDisplay.setBackGroundColor(java.awt.Color)

getDigitalDisplayStyle

public int getDigitalDisplayStyle()
Get the display style in digital mode.

Returns:
The digital display style.
See Also:
DigitalDisplay.getDisplayStyle()

setDigitalDisplayStyle

public void setDigitalDisplayStyle(int w)
Set the display style in digital mode.

Parameters:
w - The new digital display style.
See Also:
DigitalDisplay.setDisplayStyle(int)

getDigitalDisplayAMPM

public boolean getDigitalDisplayAMPM()
Get the display AMPM mode.

Returns:
The AMPM mode.
See Also:
DigitalDisplay.getDisplayAMPM()

setDigitalDisplayAMPM

public void setDigitalDisplayAMPM(boolean v)
Set the displayAMPM mode

Parameters:
v - the new mode
See Also:
DigitalDisplay.setDisplayAMPM(boolean)

getDigitalTwelveHourMode

public boolean getDigitalTwelveHourMode()
Get the Twelve Hour Mode

Returns:
TwelveHour Clock Mode
See Also:
DigitalDisplay.getTwelveHourMode()

setDigitalTwelveHourMode

public void setDigitalTwelveHourMode(boolean v)
Set twelve hour mode.

Parameters:
v - the new mode.
See Also:
DigitalDisplay.setTwelveHourMode(boolean)