Class Calendriervirtuel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--Calendriervirtuel

public class Calendriervirtuel    APPLET
extends java.applet.Applet
implements java.awt.event.MouseListener, java.awt.event.ActionListener, java.awt.event.TextListener

Une interface graphique fournissant les cycles du biorythme. Les cycles physique, émotionnel et intellectuel.

Version:
1.0 , 04/06/01
Author:
Michel MUNARETTO
See Also:
Serialized Form

Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock

 

Field Summary
(package private)  int a
           Année courante
(package private)  int a1
           Année Calendrier en cours
(package private)  int be
           Jours cycle de comportement émotionnel
(package private)  int bi
           Jours cycle de comportemen intellectuel en cours
(package private)  int bp
           Jours cycle de comportemen physique en cours
(package private)  int casegrille
           Numéro de la case dans la grille du calendrier
(package private)  int casex
           Numéro de la colonne dans la grille
(package private)  int casey
           Numéro de la ligne dans la grille
(package private)  java.lang.String day
           Variable de conversion du champs date de naissance en String
(package private)  java.awt.TextField daybirth
           Variable texfield pour saisir la date de naissance
(package private)  java.util.GregorianCalendar daydate
           Jour de la date du jour
(package private)  int dayweek
           Numéro du jour de la semaine de la date courante
(package private)  int db
           Variable de stockage jours de la naissance
(package private)  int dernier
           Variable pour la définition du dernier jour du calendrier affiché
(package private)  int etat1
           Stockage de l'état des boutons
(package private)  int j
           Jours courant
(package private)  int j1
           Jours du calendrier en cours
(package private)  int jourferie
           Jours fériés
(package private)  int jv
           Nombre total de jours vécus
(package private)  int m
           Mois courant
(package private)  int m1
           Mois du calendrier en cours
(package private)  int[] mat
           Matrice pour le stockage des jours du calendrier en cours
(package private)  int mb
           Mois de naissance
(package private)  int mlb
           Variable retour après calcul du nombre de jour dans un mois
(package private)  java.awt.TextField monthbirth
           Mois de naissance
(package private)  int monthlengt
           longueur du mois
(package private)  int njvac
           Nombre de jours vécus pendant l'année courante
(package private)  int njvan
           Nombre de jours vécus pendant l'année de naissance
(package private)  int njventre
           Nombre de jours vécus entre l'année de naissance et l'année courante
(package private)  java.awt.Button précédant
           Bouton pour le passage au mois précédant
(package private)  int premier
           Premier jour du mois affiché
(package private)  java.awt.Button suivant
           Bouton pour le passage au mois suivant
(package private)  java.awt.Font tg
           Font pour l'affichage de texte sur le graphique
(package private)  java.awt.Font tl
           Font pour l'affichage du texte
(package private)  int weekmonth
           jours de la semaine
(package private)  int x
           Gestion du dessin de la grille
(package private)  int xposition
           Numéro de collone de la grille  cliqué par la souris
(package private)  int yb
           Année de naissance
(package private)  java.lang.String year
           Année courante
(package private)  java.awt.TextField yearbirth
           Année de naissance
(package private)  int yposition
           Numéro de la ligne de la grille cliqué par la souris

 

Fields inherited from class java.applet.Applet
serialVersionUID, stub

 

Fields inherited from class java.awt.Panel
base, nameCounter, serialVersionUID

 

Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, maxSize, ncomponents, serialVersionUID

 

Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y

 

Constructor Summary
Calendriervirtuel()
           

 

Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 int Calculjourferie(int a3, int m3, int j3)
           Méthode retournant un jours férié ou un jours non férié
 int Calculjourmois(int a2, int na)
           Méthode de calcul du nombre de jours dans un mois
 void init()
           
 void mouseClicked(java.awt.event.MouseEvent evt)
           
 void mouseEntered(java.awt.event.MouseEvent evt)
           
 void mouseExited(java.awt.event.MouseEvent evt)
           
 void mousePressed(java.awt.event.MouseEvent evt)
           
 void mouseReleased(java.awt.event.MouseEvent evt)
           
 void paint(java.awt.Graphics t)
           
 void textValueChanged(java.awt.event.TextEvent e)
           

 

Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop

 

Methods inherited from class java.awt.Panel
, addNotify, constructComponentName

 

Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyOrientation, countComponents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, nextFocus, paintComponents, paramString, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printComponents, printOneComponent, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, readObject, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusOwner, setFont, setLayout, transferFocus, update, validate, validateTree, writeObject

 

Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, 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, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait

 

Field Detail

suivant

java.awt.Button suivant

précédant

java.awt.Button précédant

etat1

int etat1

time

java.lang.String time

mois

java.lang.String mois

x

int x

tg

java.awt.Font tg

tl

java.awt.Font tl

daydate

java.util.GregorianCalendar daydate

j

int j

m

int m

a

int a

j1

int j1

m1

int m1

a1

int a1

dayweek

int dayweek

weekmonth

int weekmonth

monthlengt

int monthlengt

premier

int premier

dernier

int dernier

jourferie

int jourferie

mat

int[] mat

xposition

int xposition

yposition

int yposition

casex

int casex

casey

int casey

casegrille

int casegrille

jv

int jv

njvan

int njvan

njvac

int njvac

njventre

int njventre

mlb

int mlb

db

int db

mb

int mb

yb

int yb

p

int p

bp

int bp

be

int be

bi

int bi

daybirth

java.awt.TextField daybirth

monthbirth

java.awt.TextField monthbirth

yearbirth

java.awt.TextField yearbirth

dd

java.awt.Dimension dd

dm

java.awt.Dimension dm

dy

java.awt.Dimension dy

day

java.lang.String day

month

java.lang.String month

year

java.lang.String year
Constructor Detail

Calendriervirtuel

public Calendriervirtuel()
Method Detail

init

public void init()
Overrides:
init in class java.applet.Applet

paint

public void paint(java.awt.Graphics t)
Overrides:
paint in class java.awt.Container

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

textValueChanged

public void textValueChanged(java.awt.event.TextEvent e)
Specified by:
textValueChanged in interface java.awt.event.TextListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent evt)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent evt)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent evt)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent evt)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent evt)
Specified by:
mouseExited in interface java.awt.event.MouseListener

Calculjourmois

public int Calculjourmois(int a2,
                          int na)

Calculjourferie

public int Calculjourferie(int a3,
                           int m3,
                           int j3)