|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
com.tecnick.jadc.Jadc
public class Jadc
Title: JADC (Advanced Digital Clock)
Description: Applet to display digital clock or timer
Copyright (c) 2002-2006 Tecnick.com S.r.l (www.tecnick.com) Via Ugo
Foscolo n.19 - 09045 Quartu Sant'Elena (CA) - ITALY - www.tecnick.com -
info@tecnick.com
Project homepage: http://jxhtmledit.sourceforge.net
License: http://www.gnu.org/copyleft/gpl.html GPL 2
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.applet.Applet |
---|
java.applet.Applet.AccessibleApplet |
Nested classes/interfaces inherited from class java.awt.Panel |
---|
java.awt.Panel.AccessibleAWTPanel |
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.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
(package private) java.applet.Applet |
a
only final variables can be used in inner anonymous classes |
private DisplayPanel |
dpanel
display panel |
private java.text.SimpleDateFormat |
formatter
date formatter |
private boolean |
isStandalone
when false indicate that this is not a standalone application |
private static java.lang.String |
JADC_VERSION
Software version |
private java.util.Date |
now
current time |
private java.awt.Color |
p_background_color
background color (RRGGBB) |
private java.awt.Image |
p_background_image
background image |
private boolean |
p_counter_mode
if true display time counter |
private java.lang.String |
p_counter_time
target time for counter |
private java.lang.String |
p_display_pattern
if true display year |
private java.awt.Image[] |
p_img
number and symbols images |
private java.lang.String |
p_input_pattern
if true display year |
private boolean |
p_local_time
if true use local timezone |
private int |
p_timezone_hours
This is the hours offset to add to UTC to get local time. |
private int |
p_timezone_minutes
This is the minutes offset to add to UTC to get local time. |
private static int |
SECONDS_IN_DAY
CONSTANT: number of seconds in one day |
private static int |
SECONDS_IN_HOUR
CONSTANT: number of seconds in one hour |
private static int |
SECONDS_IN_MINUTE
CONSTANT: number of seconds in one minute |
private static int |
SECONDS_IN_MONTH
CONSTANT: number of seconds in one month |
private static int |
SECONDS_IN_YEAR
CONSTANT: number of seconds in one year |
private static long |
serialVersionUID
serialVersionUID |
private static int |
SLEEP_TIME
sleep time in milliseconds between two successive call to display function |
private java.text.SimpleDateFormat |
target_formatter
target date formatter (for counter) |
(package private) java.lang.Thread |
timer
The thread that displays clock |
private java.util.TimeZone |
tz
Time zone |
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 | |
---|---|
Jadc()
Applet void constructor |
Method Summary | |
---|---|
void |
destroy()
Destroy the applet |
java.lang.String |
getAppletInfo()
Get Applet information |
private java.lang.String |
getParameter(java.lang.String key,
java.lang.String def)
get applet parameter value, return default if void |
private void |
getParameters()
Get the applet parameters. |
void |
init()
Initialize the applet |
private static java.awt.Image |
loadImage(java.applet.Applet a,
java.net.URL file)
Load an image. |
private java.lang.String |
millisecToPattern(long millisecs)
Convert milliseconds to date pattern format. |
void |
run()
run |
private java.net.URL |
setURL(java.lang.String link)
Computes full, canonical URL from a relative specification. |
void |
start()
Start the applet |
void |
stop()
Stop the applet |
Methods inherited from class java.applet.Applet |
---|
getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus |
Methods inherited from class java.awt.Panel |
---|
addNotify |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, 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 |
---|
private static final long serialVersionUID
private boolean isStandalone
private static final java.lang.String JADC_VERSION
java.lang.Thread timer
private DisplayPanel dpanel
final java.applet.Applet a
private boolean p_counter_mode
private java.lang.String p_counter_time
private boolean p_local_time
private int p_timezone_hours
private int p_timezone_minutes
private java.lang.String p_input_pattern
private java.lang.String p_display_pattern
private java.awt.Color p_background_color
private java.awt.Image p_background_image
private java.awt.Image[] p_img
private java.util.Date now
private java.text.SimpleDateFormat formatter
private java.text.SimpleDateFormat target_formatter
private java.util.TimeZone tz
private static final int SECONDS_IN_MINUTE
private static final int SECONDS_IN_HOUR
private static final int SECONDS_IN_DAY
private static final int SECONDS_IN_MONTH
private static final int SECONDS_IN_YEAR
private static final int SLEEP_TIME
Constructor Detail |
---|
public Jadc()
Method Detail |
---|
private static java.awt.Image loadImage(java.applet.Applet a, java.net.URL file)
a
- appletfile
- image file URL
private java.lang.String getParameter(java.lang.String key, java.lang.String def)
key
- name of parameter to readdef
- default value
private java.net.URL setURL(java.lang.String link)
link
- string containing url
private void getParameters()
public void init()
init
in class java.applet.Applet
public void start()
start
in class java.applet.Applet
public void stop()
stop
in class java.applet.Applet
public void destroy()
destroy
in class java.applet.Applet
public void run()
run
in interface java.lang.Runnable
private java.lang.String millisecToPattern(long millisecs)
millisecs
- time to convert (milliseconds)
public java.lang.String getAppletInfo()
getAppletInfo
in class java.applet.Applet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |