blob: e45599056267a7d92b80326738c0b1389523eba9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*******************************************************************************
* Copyright (c) 2010 BSI Business Systems Integration AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
package org.eclipse.scout.rt.client.ui.basic.activitymap;
import java.util.Date;
public final class TestTimeScaleBuilder {
private TestTimeScaleBuilder() {
}
public static void main(String[] args) {
IActivityMap map = new AbstractActivityMap() {
};
map.setDays(new Date[]{new Date(), new Date(System.currentTimeMillis() + 1000L * 3600L * 24L * 5), new Date(System.currentTimeMillis() + 1000L * 3600L * 24L * 7)});
TimeScale scale = new TimeScaleBuilder(map).build();
System.out.println("small: " + scale.toString(TimeScale.SMALL));
System.out.println("medium: " + scale.toString(TimeScale.MEDIUM));
System.out.println("large: " + scale.toString(TimeScale.LARGE));
}
}
|