01: package com.xoetrope.swing.date;
02:
03: import java.awt.Graphics2D;
04:
05: /**
06: * Interface which can be added to the CalendarPanel in order to receive paint
07: * events whenever the calendar view changes.
08: *
09: * <p> Copyright (c) Xoetrope Ltd., 2001-2007, This software is licensed under
10: * the GNU Public License (GPL), please see license.txt for more details. If
11: * you make commercial use of this software you must purchase a commercial
12: * license from Xoetrope.</p>
13: * <p> $Revision: 1.0 $</p>
14: */
15:
16: public interface AppointmentPainter {
17:
18: /**
19: * The day view of the calendar has been painted.
20: * @param g the Graphics object
21: * @param appointment the appointment being painted
22: * @param x the x co-ordinate of the appointment object
23: * @param y the y co-ordinate of the appointment object
24: * @param w the width of the appointment object
25: * @param h the height of the appointment object
26: */
27: public void paintDayView(Graphics2D g, XAppointment appointment,
28: double x, double y, double w, double h);
29:
30: /**
31: * The month view of the calendar has been painted.
32: * @param g the Graphics object
33: * @param appointment the appointment being painted
34: * @param x the x co-ordinate of the appointment object
35: * @param y the y co-ordinate of the appointment object
36: * @param w the width of the appointment object
37: * @param h the height of the appointment object
38: */
39: public void paintMonthView(Graphics2D g, XAppointment appointment,
40: double x, double y, double w, double h);
41:
42: }
|