fr.emn.spiraclock
Class EMNBusSchedule

java.lang.Object
  extended by fr.emn.spiraclock.Schedule
      extended by fr.emn.spiraclock.EMNBusSchedule
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ItemListener, java.util.EventListener

public class EMNBusSchedule
extends Schedule
implements java.awt.event.ItemListener, java.awt.event.ActionListener


Field Summary
(package private)  boolean appletVersion
           
(package private)  int arr_offset22_b
           
(package private)  int arr_offset22_l
           
(package private)  int arr_offset72_b
           
(package private)  int arr_offset72_e
           
(package private) static int[][] bus22_beaujoire
           
(package private) static int[][] bus22dim_beaujoire
           
(package private) static int[][] bus22dim_gachet
           
(package private) static int[][] bus72_beaujoire
           
(package private) static int[][] bus72_gachet
          Bus hours
(package private) static int[][] bus72termBeaujoire_beaujoire
           
(package private) static int[][] bus72termBeaujoire_gachet
           
(package private) static int[][] bus76_beaujoire
           
(package private) static int[][] bus76_gachet
           
(package private) static java.awt.Color c22_regular
           
(package private) static java.awt.Color c72_light
           
(package private) static java.awt.Color c72_regular
           
(package private) static java.awt.Color c76_light
           
(package private) static java.awt.Color c76_regular
           
(package private) static java.lang.String DATA_INSTRUCTION
           
(package private) static boolean data_loaded
           
(package private)  javax.swing.JDialog intervaldialog
           
(package private)  EMNBusIntervalPanel intervalpanel
           
(package private) static int JOUR_BLEU
           
(package private) static int JOUR_JAUNE
           
(package private) static int JOUR_ROSE
           
(package private) static int JOUR_VERT
           
(package private) static int JOUR_VIDE
           
(package private)  int mode
          Mode: 0 = 72 & 76 in blue 1 = 72 in blue, 76 in green 2 = 72 & 76 in blue, 22 in red (by default) 3 = 72 in blue, 76 in green, 22 in red
(package private)  javax.swing.JDialog modedialog
           
(package private)  EMNBusModePanel modepanel
           
(package private)  int offset22_b
           
(package private)  int offset22_l
           
(package private)  int offset72_b
           
(package private)  int offset72_l
           
(package private) static int[][] periods
          Period tables with key dates
static java.net.URL SCHEDULES
           
(package private)  boolean withArrivals
           
(package private)  javax.swing.JCheckBoxMenuItem withArrivalsItem
           
 
Fields inherited from class fr.emn.spiraclock.Schedule
app, appointments, baseday, cache, cacheEnabled, common0, common1, currentQueryId, errorMessage, hour_index, hour_max, hour_min, intervalSet, loaded, mn_max, mn_min, nb_index, rday_index, rday0, rday1, res, tmn0, tmn1, view
 
Constructor Summary
EMNBusSchedule(boolean appletVersion)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void beforeClosing()
          Subclass this method to set all schedule needed operations before application close
 Appointment[] getDayAppointments(ATime day)
          Subclass this method to return all appointments in the given day.
 java.lang.String getName()
          Subclass this method to return schedule name.
protected  Appointment getNew(java.lang.String summary, int year, int dayofyear, int mmstart, int mmend, java.awt.Color c, boolean overlap, boolean showStart, boolean showEnd, boolean fadeOnEnd)
           
protected static int getPeriod(ATime day)
           
 java.util.Hashtable getProperties()
          Subclass this method to return all schedule properties property name (String) is the hash key and the value is an object
 void installPopupCommands(javax.swing.JPopupMenu popup)
          Gives the Schedule an opportunity to install its own popup menu commands on the spiraclock popup menu.
 void itemStateChanged(java.awt.event.ItemEvent e)
          Checkboxes
protected static void load_data()
           
static void main(java.lang.String[] args)
           
 void reload()
          Subclass this method to reload all your data.
 void setIntervalProperty(java.lang.String field, int i, boolean add)
           
 void setMode(int v)
           
 void setModePanel(EMNBusModePanel modepanel)
           
 void setProperties(java.util.Hashtable props)
          Subclass this method to set all schedule dependant properties given in parameter
 void setWithArrivals(boolean v)
           
(package private) static void testPeriods()
           
 
Methods inherited from class fr.emn.spiraclock.Schedule
addChangeListener, clearCache, fireStateChanged, firstAppointment, getAppointments, getBaseDay, getView, isLoadingNeeded, nextAppointment, retreive, setBaseDay, setInterval, setView, updateView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEDULES

public static final java.net.URL SCHEDULES

DATA_INSTRUCTION

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

data_loaded

static boolean data_loaded

appletVersion

boolean appletVersion

c72_light

static java.awt.Color c72_light

c72_regular

static java.awt.Color c72_regular

c76_light

static java.awt.Color c76_light

c76_regular

static java.awt.Color c76_regular

c22_regular

static java.awt.Color c22_regular

JOUR_ROSE

static final int JOUR_ROSE
See Also:
Constant Field Values

JOUR_JAUNE

static final int JOUR_JAUNE
See Also:
Constant Field Values

JOUR_VERT

static final int JOUR_VERT
See Also:
Constant Field Values

JOUR_BLEU

static final int JOUR_BLEU
See Also:
Constant Field Values

JOUR_VIDE

static final int JOUR_VIDE
See Also:
Constant Field Values

mode

int mode
Mode: 0 = 72 & 76 in blue 1 = 72 in blue, 76 in green 2 = 72 & 76 in blue, 22 in red (by default) 3 = 72 in blue, 76 in green, 22 in red


withArrivals

boolean withArrivals

offset72_b

int offset72_b

offset72_l

int offset72_l

offset22_b

int offset22_b

offset22_l

int offset22_l

arr_offset72_b

int arr_offset72_b

arr_offset72_e

int arr_offset72_e

arr_offset22_b

int arr_offset22_b

arr_offset22_l

int arr_offset22_l

modedialog

javax.swing.JDialog modedialog

intervaldialog

javax.swing.JDialog intervaldialog

withArrivalsItem

javax.swing.JCheckBoxMenuItem withArrivalsItem

modepanel

EMNBusModePanel modepanel

intervalpanel

EMNBusIntervalPanel intervalpanel

periods

static int[][] periods
Period tables with key dates


bus72_gachet

static int[][] bus72_gachet
Bus hours


bus72_beaujoire

static int[][] bus72_beaujoire

bus72termBeaujoire_gachet

static int[][] bus72termBeaujoire_gachet

bus72termBeaujoire_beaujoire

static int[][] bus72termBeaujoire_beaujoire

bus76_gachet

static int[][] bus76_gachet

bus76_beaujoire

static int[][] bus76_beaujoire

bus22_beaujoire

static int[][] bus22_beaujoire

bus22dim_gachet

static int[][] bus22dim_gachet

bus22dim_beaujoire

static int[][] bus22dim_beaujoire
Constructor Detail

EMNBusSchedule

public EMNBusSchedule(boolean appletVersion)
Method Detail

setModePanel

public void setModePanel(EMNBusModePanel modepanel)

main

public static void main(java.lang.String[] args)

getName

public java.lang.String getName()
Description copied from class: Schedule
Subclass this method to return schedule name.

Specified by:
getName in class Schedule

reload

public void reload()
Description copied from class: Schedule
Subclass this method to reload all your data.

Specified by:
reload in class Schedule

getProperties

public java.util.Hashtable getProperties()
Description copied from class: Schedule
Subclass this method to return all schedule properties property name (String) is the hash key and the value is an object

Specified by:
getProperties in class Schedule

setProperties

public void setProperties(java.util.Hashtable props)
Description copied from class: Schedule
Subclass this method to set all schedule dependant properties given in parameter

Specified by:
setProperties in class Schedule

setIntervalProperty

public void setIntervalProperty(java.lang.String field,
                                int i,
                                boolean add)

beforeClosing

public void beforeClosing()
Description copied from class: Schedule
Subclass this method to set all schedule needed operations before application close

Specified by:
beforeClosing in class Schedule

installPopupCommands

public void installPopupCommands(javax.swing.JPopupMenu popup)
Description copied from class: Schedule
Gives the Schedule an opportunity to install its own popup menu commands on the spiraclock popup menu. Subclass this method if you want your schedule to handle user commands.

Overrides:
installPopupCommands in class Schedule

setWithArrivals

public void setWithArrivals(boolean v)

setMode

public void setMode(int v)

getDayAppointments

public Appointment[] getDayAppointments(ATime day)
Description copied from class: Schedule
Subclass this method to return all appointments in the given day. Appointments that does not start & end the same day are NOT returned. (This method does not need to be fast).

Specified by:
getDayAppointments in class Schedule

getNew

protected Appointment getNew(java.lang.String summary,
                             int year,
                             int dayofyear,
                             int mmstart,
                             int mmend,
                             java.awt.Color c,
                             boolean overlap,
                             boolean showStart,
                             boolean showEnd,
                             boolean fadeOnEnd)

getPeriod

protected static int getPeriod(ATime day)

testPeriods

static void testPeriods()

itemStateChanged

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

Specified by:
itemStateChanged in interface java.awt.event.ItemListener

actionPerformed

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

load_data

protected static void load_data()