org.formaria.swing.date
Interface AppointmentPainter


public interface AppointmentPainter

Interface which can be added to the CalendarPanel in order to receive paint events whenever the calendar view changes.

Copyright (c) Formaria Ltd., 2008, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.

$Revision: 1.0 $


Method Summary
 void paintDayView(java.awt.Graphics2D g, Appointment appointment, double x, double y, double w, double h)
          The day view of the calendar has been painted.
 void paintMonthView(java.awt.Graphics2D g, Appointment appointment, double x, double y, double w, double h)
          The month view of the calendar has been painted.
 

Method Detail

paintDayView

void paintDayView(java.awt.Graphics2D g,
                  Appointment appointment,
                  double x,
                  double y,
                  double w,
                  double h)
The day view of the calendar has been painted.

Parameters:
g - the Graphics object
appointment - the appointment being painted
x - the x co-ordinate of the appointment object
y - the y co-ordinate of the appointment object
w - the width of the appointment object
h - the height of the appointment object

paintMonthView

void paintMonthView(java.awt.Graphics2D g,
                    Appointment appointment,
                    double x,
                    double y,
                    double w,
                    double h)
The month view of the calendar has been painted.

Parameters:
g - the Graphics object
appointment - the appointment being painted
x - the x co-ordinate of the appointment object
y - the y co-ordinate of the appointment object
w - the width of the appointment object
h - the height of the appointment object