Mercurial > hg > STI-GWT
comparison src/econnect/wp3_3/client/widgets/timeplot/StiTimeplot.java @ 3:cf06b77a8bbd
Committed branch of the e4D repos sti-gwt branch 16384.
git-svn-id: http://dev.dariah.eu/svn/repos/eu.dariah.de/ap1/sti-gwt-dariah-geobrowser@36 f2b5be40-def6-11e0-8a09-b3c1cc336c6b
author | StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b> |
---|---|
date | Tue, 17 Jul 2012 13:34:40 +0000 |
parents | |
children | 6ec1ab4f897a |
comparison
equal
deleted
inserted
replaced
2:2897af43ccc6 | 3:cf06b77a8bbd |
---|---|
1 package econnect.wp3_3.client.widgets.timeplot; | |
2 | |
3 import com.google.gwt.core.client.JavaScriptObject; | |
4 | |
5 import econnect.wp3_3.client.core.StiCore; | |
6 | |
7 /** | |
8 * Implementation of the wrapper for the STITimeplot class of the STI JavaScript source | |
9 */ | |
10 public class StiTimeplot extends JavaScriptObject { | |
11 | |
12 protected StiTimeplot(){ | |
13 } | |
14 | |
15 /** | |
16 * Initializes a STITimeplot element | |
17 * | |
18 * @param core the core of the STI | |
19 * @param window the window div id for the container for the timeplot element | |
20 * @param container the container div id for the timeplot element | |
21 * @return a STITimeplot object | |
22 */ | |
23 public static native StiTimeplot createStiTimeplot(StiCore core, String window, String container) /*-{ | |
24 return new $wnd.STITimeplot(core, window, container); | |
25 }-*/; | |
26 | |
27 /** | |
28 * activates the play function of the timeplot element | |
29 */ | |
30 public final native void play() /*-{ | |
31 this.play(); | |
32 }-*/; | |
33 | |
34 /** | |
35 * stops the play function of the timeplot element | |
36 */ | |
37 public final native void pause() /*-{ | |
38 this.stop(); | |
39 }-*/; | |
40 | |
41 /** | |
42 * Getter for the play status | |
43 * | |
44 * @return the play status; true if it plays, false if not | |
45 */ | |
46 public final native boolean paused() /*-{ | |
47 return this.paused; | |
48 }-*/; | |
49 | |
50 /** | |
51 * Getter for the number of zoom levels; depends on the number of timeslices | |
52 * | |
53 * @return the number of zoom levels | |
54 */ | |
55 public final native int getNumZoomLevels() /*-{ | |
56 return this.getZoomLevels(); | |
57 }-*/; | |
58 | |
59 /** | |
60 * Changes zoom of the timeplot | |
61 * | |
62 * @param delta is 1 if zoom-in and -1 if zoom-out | |
63 */ | |
64 public final native void zoom(int delta) /*-{ | |
65 this.zoom(delta,null); | |
66 }-*/; | |
67 | |
68 /** | |
69 * get actual min time | |
70 */ | |
71 public final native String minTime() /*-{ | |
72 return this.eds.minDate.getTime(); | |
73 }-*/; | |
74 | |
75 /** | |
76 * get actual max time | |
77 */ | |
78 public final native String maxTime() /*-{ | |
79 return this.eds.maxDate.getTime(); | |
80 }-*/; | |
81 | |
82 public final native String minSelTime() /*-{ | |
83 if( this.leftFlagTime != null ){ | |
84 return this.leftFlagTime.getTime(); | |
85 } | |
86 return null; | |
87 }-*/; | |
88 | |
89 public final native String maxSelTime() /*-{ | |
90 if( this.rightFlagTime != null ){ | |
91 return this.rightFlagTime.getTime(); | |
92 } | |
93 return null; | |
94 }-*/; | |
95 | |
96 public final native void selectTimerange(String minSelTime, String maxSelTime) /*-{ | |
97 this.selectTimerange(minSelTime,maxSelTime); | |
98 }-*/; | |
99 | |
100 } |