]> git.argeo.org Git - gpl/argeo-suite.git/blob - org.argeo.app.geo/src/org/argeo/app/ol/View.java
Trim single line text input in forms
[gpl/argeo-suite.git] / org.argeo.app.geo / src / org / argeo / app / ol / View.java
1 package org.argeo.app.ol;
2
3 public class View extends AbstractOlObject {
4 public View(Object... args) {
5 super(args);
6 }
7
8 public void setCenter(int[] coord) {
9 if (isNew())
10 getNewOptions().put("center", coord);
11 else
12 executeMethod(getMethodName(), new Object[] { coord });
13 }
14
15 public void setZoom(int zoom) {
16 if (isNew())
17 getNewOptions().put("zoom", zoom);
18 else
19 executeMethod(getMethodName(), zoom);
20 }
21
22 // public void fit(double[] extent) {
23 // executeMethod(getMethodName(), extent);
24 // }
25 // public void setProjection(String projection) {
26 // doSetValue(getMethodName(), "projection", projection);
27 // }
28 }