1 /*
2 * File: SwtOverlapExample.java
3 * Copyright (c) 2004-2007 Peter Kliem (Peter.Kliem@jaret.de)
4 * A commercial license is available, see http://www.jaret.de.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20 package de.jaret.examples.timebars.simple;
21
22 import de.jaret.util.date.IntervalImpl;
23 import de.jaret.util.date.JaretDate;
24
25 /***
26 * Just an extension of intervalimpl for differentiation.
27 *
28 * @author kliem
29 * @version $Id: OtherIntervalImpl.java 810 2009-01-08 22:28:57Z kliem $
30 */
31 public class OtherIntervalImpl extends IntervalImpl {
32 String _label;
33 public OtherIntervalImpl() {
34 super();
35 }
36 public OtherIntervalImpl(JaretDate begin, JaretDate end) {
37 super(begin, end);
38 }
39
40 public void setLabel(String label) {
41 _label = label;
42 }
43
44 @Override
45 public String toString() {
46 return _label!=null?_label:super.toString();
47 }
48 }