01: /*--------------------------------------------------------------------------*
02: | Copyright (C) 2006 Christopher Kohlhaas |
03: | |
04: | This program is free software; you can redistribute it and/or modify |
05: | it under the terms of the GNU General Public License as published by the |
06: | Free Software Foundation. A copy of the license has been included with |
07: | these distribution in the COPYING file, if not go to www.fsf.org |
08: | |
09: | As a special exception, you are granted the permissions to link this |
10: | program with every library, which license fulfills the Open Source |
11: | Definition as published by the Open Source Initiative (OSI). |
12: *--------------------------------------------------------------------------*/
13:
14: package org.rapla.components.calendar;
15:
16: import java.awt.Color;
17:
18: /** Implement this interface if you want to highlight special times or
19: show tooltip for some times.
20: */
21: public interface TimeRenderer {
22: /** Specifies a special background color for the passed time.
23: Return null if you want to use the default color.*/
24: public Color getBackgroundColor(int hourOfDay, int minute);
25:
26: /** Specifies a tooltip text for the passed time.
27: Return null if you don't want to use a tooltip for this time.*/
28: public String getToolTipText(int hourOfDay, int minute);
29: }
|