fr.emn.spiraclock
Class JSpiraclock

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by fr.emn.spiraclock.JSpiral
                  extended by fr.emn.spiraclock.JSpiraclock
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ComponentListener, java.awt.event.FocusListener, java.awt.event.ItemListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.swing.event.ChangeListener

public class JSpiraclock
extends JSpiral
implements java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.event.ItemListener, javax.swing.event.ChangeListener

Spiraclock

See Also:
Serialized Form

Nested Class Summary
 
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.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  ATime baseday
           
(package private)  float coef
           
(package private)  javax.swing.JCheckBoxMenuItem dateCheck
           
(package private)  java.lang.String dateText
           
(package private)  int daybeginat
           
(package private)  int dayendat
           
(package private)  CustomToolTip descrToolTip
           
(package private)  javax.swing.JCheckBoxMenuItem digitalCheck
           
(package private) static java.awt.Color disconnectedHandsColor
           
(package private)  java.lang.String eventText
           
(package private)  boolean followHour
           
(package private) static double HANDS_POS
           
(package private) static double HANDS_VIRTUALLENGTH
           
(package private) static double HANDS_WIDTH
           
(package private) static double HOUR_HAND_LENGTH
           
(package private)  java.awt.Polygon hourHand
           
(package private)  double hourModeInterval
           
(package private)  java.awt.geom.GeneralPath hourPath
           
(package private)  boolean hourSpiralMode
           
(package private)  java.lang.String hourText
           
(package private)  long jumpEnd
           
(package private)  boolean jumping
           
(package private)  int lastDayOfYear
           
(package private)  ATime lastReload
           
(package private) static int MAX_SECTORS
           
(package private) static double MINUTE_HAND_LENGTH
           
(package private)  java.awt.Polygon minuteHand
           
(package private)  double minuteModeInterval
           
(package private)  java.awt.geom.GeneralPath minutePath
           
(package private) static java.awt.Cursor MOVEHAND_CURSOR
           
(package private)  boolean moveHour
           
(package private)  boolean moveMinute
           
(package private) static java.awt.Color movingDiscHandColor
           
(package private) static java.awt.Color movingHandColor
           
(package private) static java.lang.String NO_TIP
           
(package private) static ATime now
           
(package private)  int pastVisibility
           
(package private)  double polyx
           
(package private)  double polyy
           
(package private)  javax.swing.JPopupMenu popup
           
(package private)  int reloadPeriod
           
(package private)  Appointment selectedAppointment
           
(package private)  java.awt.Polygon selectedSector
           
(package private)  boolean showDate
           
(package private)  boolean showDigitalHour
           
(package private)  boolean showEventSubject
           
(package private)  boolean showNight
           
(package private)  boolean showSelected
           
(package private)  long spiralAngle
           
(package private)  int tang
           
(package private)  long tcur
           
(package private) static java.awt.Font textFont
           
(package private)  javax.swing.Timer timer
           
(package private)  int timeSpiralScale
           
(package private)  int timeSpiralTrans
           
(package private)  double tjump
           
(package private)  boolean toBlack
           
(package private) static java.awt.Cursor TOOLTIP_CURSOR
           
(package private)  Appointment tooltipAppointment
           
(package private)  java.awt.Point tooltipLoc
           
(package private) static java.awt.Color userBackgroundColor
           
 
Fields inherited from class fr.emn.spiraclock.JSpiral
BORDER, changed, changingInterval, changingSize, cmax, cmid, cmin, csize, darking, DEFAULT_CURSOR, detail, enableSizeAdjustment, g2, interacting, INTERVAL_CURSOR, interval0, p, p0, prev_p, r, r0, RESIZE_CURSOR, s0x, s0y, size0, spiral, UPBORDER
 
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
JSpiraclock()
           
JSpiraclock(Schedule schedule)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addNotify()
          Adds a feature to the Notify attribute of the JSpiraclock object
protected  void changeInterval(double size0, double interval0, double r0, double r)
           
protected  void changeSize(double size0, double interval0, double r0, double r)
           
 void componentResized(java.awt.event.ComponentEvent e)
          Description of the Method
protected  double correctScale(double scale)
           
 javax.swing.JToolTip createToolTip()
          Description of the Method
 void focusGained(java.awt.event.FocusEvent e)
          Description of the Method
 void focusLost(java.awt.event.FocusEvent e)
          Description of the Method
 void followCurrentTime(boolean follow)
           
protected  Appointment getAppointmentUnder(java.awt.Point p)
           
 java.awt.Point getBestSideLocation(java.awt.Component c, java.awt.Point def)
          Returns the best location for a top-level component that wants to display itself inside or just next the spiraclock window. def = a default location inside component.
 java.util.Hashtable getProperties()
          Gets the properties attribute of the JSpiraclock object
protected static int getRelativeDay(long relativeTime)
           
 Schedule getSchedule()
           
protected  java.awt.Polygon getSector(Appointment a)
          Retreive the shape of an appointment
 ATime getTime()
           
 java.awt.Point getToolTipLocation(java.awt.event.MouseEvent e)
          Gets the toolTipLocation attribute of the JSpiraclock object
 java.lang.String getToolTipText()
          Gets the toolTipText attribute of the JSpiraclock object
protected static int getTotalMinutes(long relativeTime)
           
protected  void initHandShapes()
          Hand shapes are initialized as double arrays, because Polygons have integer coordinates.
 void installPopupCommands(javax.swing.JPopupMenu popup)
          Adds spiraclock commands to the popup menu
 void itemStateChanged(java.awt.event.ItemEvent e)
          Checkboxes
 void jumpTo(long time, boolean toBlack)
           
 void mouseClicked(java.awt.event.MouseEvent e)
          Description of the Method
 void mouseDragged(java.awt.event.MouseEvent e)
          Description of the Method
 void mouseEntered(java.awt.event.MouseEvent e)
          Description of the Method
 void mouseExited(java.awt.event.MouseEvent e)
          Description of the Method
 void mouseMoved(java.awt.event.MouseEvent e)
          Update tooltip text
 void mousePressed(java.awt.event.MouseEvent e)
          Description of the Method
 void mouseReleased(java.awt.event.MouseEvent e)
          Description of the Method
 int paint(java.awt.Graphics2D g, int detail, java.awt.Color darking, float coef)
           
protected  void paintHour(java.awt.Graphics2D g, boolean accurate)
           
protected  void paintMinute(java.awt.Graphics2D g, boolean accurate)
           
protected  void paintSecond(java.awt.Graphics2D g)
           
protected  void paintSelected(java.awt.Graphics2D g)
           
protected  void paintString(java.awt.Graphics2D g)
           
(package private)  int parseHour(java.lang.String s)
           
 void rebuildPopupMenu()
           
protected  void select(Appointment app)
           
(package private)  void set(int dayOfYear, int h, int m, int s)
           
 void setHourSpiralMode(boolean hourmode)
          Sets the hourSpiralMode attribute of the JSpiraclock object
 void setProperties(java.util.Hashtable props)
          Sets the properties attribute of the JSpiraclock object
protected  void setRelativeTime(long ss)
           
protected  void setSector(int index, int start, int end, double pos, double size, java.awt.Color color, boolean fadeOnEnd)
           
 void setShowDate(boolean b)
          Sets the showDate attribute of the JSpiraclock object
 void setShowDigital(boolean b)
          Sets the showDigital attribute of the JSpiraclock object
protected  void setTimeToNow()
           
(package private)  void setToolTipAppointment(Appointment app, java.awt.event.MouseEvent e)
           
 void stateChanged(javax.swing.event.ChangeEvent e)
          Description of the Method
protected  void timerAction()
          Called by timer
protected  long toAngle(long relativeTime)
          Converts baseday-relative seconds to absolute angle
 void toggleSpiralMode()
           
protected  long toRelativeTime(ATime time)
           
protected  long toRelativeTime(long angle)
          Converts absolute angle to baseday-relative seconds
 void update()
          Description of the Method
protected  void updateAngles()
          Update hand & spiral angles
protected  void updateAppointments()
          A refaire mieux que ca
protected  float updateDarkCoef(int h, int m)
           
protected  void updateHands()
          Update hand shapes
protected  void updateSelectedSector()
           
 
Methods inherited from class fr.emn.spiraclock.JSpiral
adjustSizeToComponent, adjustWindowToSize, componentHidden, componentMoved, componentShown, dist, getSpiral, paint, postUpdateDetailLevel, preUpdateDetailLevel
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, 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, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, 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, setLayout, 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, 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

showDigitalHour

boolean showDigitalHour

showEventSubject

boolean showEventSubject

showDate

boolean showDate

userBackgroundColor

static java.awt.Color userBackgroundColor

reloadPeriod

int reloadPeriod

showNight

boolean showNight

daybeginat

int daybeginat

dayendat

int dayendat

HOUR_HAND_LENGTH

static final double HOUR_HAND_LENGTH
See Also:
Constant Field Values

MINUTE_HAND_LENGTH

static final double MINUTE_HAND_LENGTH
See Also:
Constant Field Values

HANDS_WIDTH

static final double HANDS_WIDTH
See Also:
Constant Field Values

HANDS_VIRTUALLENGTH

static final double HANDS_VIRTUALLENGTH
See Also:
Constant Field Values

HANDS_POS

static final double HANDS_POS
See Also:
Constant Field Values

MAX_SECTORS

static final int MAX_SECTORS
See Also:
Constant Field Values

MOVEHAND_CURSOR

static final java.awt.Cursor MOVEHAND_CURSOR

TOOLTIP_CURSOR

static final java.awt.Cursor TOOLTIP_CURSOR

disconnectedHandsColor

static final java.awt.Color disconnectedHandsColor

movingDiscHandColor

static final java.awt.Color movingDiscHandColor

movingHandColor

static final java.awt.Color movingHandColor

textFont

static final java.awt.Font textFont

NO_TIP

static final java.lang.String NO_TIP
See Also:
Constant Field Values

baseday

ATime baseday

timer

final javax.swing.Timer timer

now

static ATime now

followHour

boolean followHour

spiralAngle

long spiralAngle

lastReload

ATime lastReload

coef

float coef

hourSpiralMode

boolean hourSpiralMode

minuteModeInterval

double minuteModeInterval

hourModeInterval

double hourModeInterval

hourHand

final java.awt.Polygon hourHand

minuteHand

final java.awt.Polygon minuteHand

hourPath

final java.awt.geom.GeneralPath hourPath

minutePath

final java.awt.geom.GeneralPath minutePath

lastDayOfYear

int lastDayOfYear

polyx

double polyx

polyy

double polyy

moveMinute

boolean moveMinute

moveHour

boolean moveHour

tang

int tang

tcur

long tcur

jumping

boolean jumping

jumpEnd

long jumpEnd

tjump

double tjump

toBlack

boolean toBlack

hourText

java.lang.String hourText

dateText

java.lang.String dateText

eventText

java.lang.String eventText

tooltipAppointment

Appointment tooltipAppointment

selectedAppointment

Appointment selectedAppointment

selectedSector

java.awt.Polygon selectedSector

showSelected

boolean showSelected

tooltipLoc

java.awt.Point tooltipLoc

popup

javax.swing.JPopupMenu popup

descrToolTip

CustomToolTip descrToolTip

timeSpiralScale

int timeSpiralScale

timeSpiralTrans

int timeSpiralTrans

pastVisibility

int pastVisibility

digitalCheck

javax.swing.JCheckBoxMenuItem digitalCheck

dateCheck

javax.swing.JCheckBoxMenuItem dateCheck
Constructor Detail

JSpiraclock

public JSpiraclock()

JSpiraclock

public JSpiraclock(Schedule schedule)
Parameters:
schedule - Description of the Parameter
Method Detail

installPopupCommands

public void installPopupCommands(javax.swing.JPopupMenu popup)
Adds spiraclock commands to the popup menu

Parameters:
popup - Description of the Parameter

getSchedule

public Schedule getSchedule()
Returns:
The schedule value

setShowDate

public void setShowDate(boolean b)
Sets the showDate attribute of the JSpiraclock object

Parameters:
b - The new showDate value

setShowDigital

public void setShowDigital(boolean b)
Sets the showDigital attribute of the JSpiraclock object

Parameters:
b - The new showDigital value

addNotify

public void addNotify()
Adds a feature to the Notify attribute of the JSpiraclock object

Overrides:
addNotify in class javax.swing.JComponent

rebuildPopupMenu

public void rebuildPopupMenu()

getTime

public ATime getTime()
Returns:
The time value

followCurrentTime

public void followCurrentTime(boolean follow)
Parameters:
follow - Description of the Parameter

jumpTo

public void jumpTo(long time,
                   boolean toBlack)
Parameters:
time - Description of the Parameter

toggleSpiralMode

public void toggleSpiralMode()

setHourSpiralMode

public void setHourSpiralMode(boolean hourmode)
Sets the hourSpiralMode attribute of the JSpiraclock object

Parameters:
hourmode - The new hourSpiralMode value

correctScale

protected double correctScale(double scale)

setTimeToNow

protected void setTimeToNow()

setRelativeTime

protected void setRelativeTime(long ss)
Parameters:
ss - The new relativeTime value

updateDarkCoef

protected float updateDarkCoef(int h,
                               int m)

toRelativeTime

protected long toRelativeTime(ATime time)
Parameters:
time - Description of the Parameter
Returns:
Description of the Return Value

toRelativeTime

protected long toRelativeTime(long angle)
Converts absolute angle to baseday-relative seconds

Parameters:
angle - Description of the Parameter
Returns:
Description of the Return Value

toAngle

protected long toAngle(long relativeTime)
Converts baseday-relative seconds to absolute angle

Parameters:
relativeTime - Description of the Parameter
Returns:
Description of the Return Value

getRelativeDay

protected static int getRelativeDay(long relativeTime)

getTotalMinutes

protected static int getTotalMinutes(long relativeTime)

set

void set(int dayOfYear,
         int h,
         int m,
         int s)

paint

public int paint(java.awt.Graphics2D g,
                 int detail,
                 java.awt.Color darking,
                 float coef)
Overrides:
paint in class JSpiral
Parameters:
g - Description of the Parameter
detail - Description of the Parameter
darking - Description of the Parameter
coef - Description of the Parameter
Returns:
Description of the Return Value

paintString

protected void paintString(java.awt.Graphics2D g)

paintHour

protected void paintHour(java.awt.Graphics2D g,
                         boolean accurate)

paintMinute

protected void paintMinute(java.awt.Graphics2D g,
                           boolean accurate)

paintSecond

protected void paintSecond(java.awt.Graphics2D g)

paintSelected

protected void paintSelected(java.awt.Graphics2D g)

updateSelectedSector

protected void updateSelectedSector()

initHandShapes

protected void initHandShapes()
Hand shapes are initialized as double arrays, because Polygons have integer coordinates.


updateHands

protected void updateHands()
Update hand shapes


update

public void update()
Description of the Method


updateAngles

protected void updateAngles()
Update hand & spiral angles


updateAppointments

protected void updateAppointments()
A refaire mieux que ca


setSector

protected void setSector(int index,
                         int start,
                         int end,
                         double pos,
                         double size,
                         java.awt.Color color,
                         boolean fadeOnEnd)

getSector

protected java.awt.Polygon getSector(Appointment a)
Retreive the shape of an appointment

Parameters:
a - Description of the Parameter
Returns:
The sector value

changeInterval

protected void changeInterval(double size0,
                              double interval0,
                              double r0,
                              double r)
Overrides:
changeInterval in class JSpiral

changeSize

protected void changeSize(double size0,
                          double interval0,
                          double r0,
                          double r)
Overrides:
changeSize in class JSpiral

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Description of the Method

Specified by:
focusGained in interface java.awt.event.FocusListener
Parameters:
e - Description of the Parameter

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Description of the Method

Specified by:
focusLost in interface java.awt.event.FocusListener
Parameters:
e - Description of the Parameter

timerAction

protected void timerAction()
Called by timer


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - Description of the Parameter

parseHour

int parseHour(java.lang.String s)

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Description of the Method

Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class JSpiral
Parameters:
e - Description of the Parameter

select

protected void select(Appointment app)

getAppointmentUnder

protected Appointment getAppointmentUnder(java.awt.Point p)

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Description of the Method

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased in class JSpiral
Parameters:
e - Description of the Parameter

getBestSideLocation

public java.awt.Point getBestSideLocation(java.awt.Component c,
                                          java.awt.Point def)
Returns the best location for a top-level component that wants to display itself inside or just next the spiraclock window. def = a default location inside component.


mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Description of the Method

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Overrides:
mouseDragged in class JSpiral
Parameters:
e - Description of the Parameter

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Update tooltip text

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Overrides:
mouseMoved in class JSpiral
Parameters:
e - Description of the Parameter

setToolTipAppointment

void setToolTipAppointment(Appointment app,
                           java.awt.event.MouseEvent e)

getToolTipText

public java.lang.String getToolTipText()
Gets the toolTipText attribute of the JSpiraclock object

Overrides:
getToolTipText in class javax.swing.JComponent
Returns:
The toolTipText value

getToolTipLocation

public java.awt.Point getToolTipLocation(java.awt.event.MouseEvent e)
Gets the toolTipLocation attribute of the JSpiraclock object

Overrides:
getToolTipLocation in class javax.swing.JComponent
Parameters:
e - Description of the Parameter
Returns:
The toolTipLocation value

createToolTip

public javax.swing.JToolTip createToolTip()
Description of the Method

Overrides:
createToolTip in class javax.swing.JComponent
Returns:
Description of the Return Value

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Description of the Method

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class JSpiral
Parameters:
e - Description of the Parameter

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Description of the Method

Specified by:
mouseExited in interface java.awt.event.MouseListener
Overrides:
mouseExited in class JSpiral
Parameters:
e - Description of the Parameter

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Description of the Method

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Overrides:
mouseEntered in class JSpiral
Parameters:
e - Description of the Parameter

componentResized

public void componentResized(java.awt.event.ComponentEvent e)
Description of the Method

Specified by:
componentResized in interface java.awt.event.ComponentListener
Overrides:
componentResized in class JSpiral
Parameters:
e - Description of the Parameter

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Checkboxes

Specified by:
itemStateChanged in interface java.awt.event.ItemListener
Parameters:
e - Description of the Parameter

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Description of the Method

Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Parameters:
e - Description of the Parameter

getProperties

public java.util.Hashtable getProperties()
Gets the properties attribute of the JSpiraclock object

Returns:
The properties value

setProperties

public void setProperties(java.util.Hashtable props)
Sets the properties attribute of the JSpiraclock object

Parameters:
props - The new properties value