svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.remoteclient / src / main / java / org / gvsig / remoteclient / wmts / WMTSStatus.java @ 40769
History | View | Annotate | Download (3.61 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 3
|
9 |
* of the License, or (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., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
package org.gvsig.remoteclient.wmts; |
25 |
|
26 |
import java.util.ArrayList; |
27 |
|
28 |
import org.gvsig.remoteclient.wmts.struct.WMTSTileMatrix.Tile; |
29 |
|
30 |
/**
|
31 |
* Describes the status of a WMTSclient, so it adds to the Remote client status
|
32 |
* a list of layers, a list of layer styles, the extent of the map.
|
33 |
*
|
34 |
* @author Nacho Brodin (nachobrodin@gmail.com)
|
35 |
*/
|
36 |
public class WMTSStatus extends org.gvsig.remoteclient.RemoteClientStatus { |
37 |
private String layer = null; |
38 |
private String style = null; |
39 |
private String tileMatrixSet = null; |
40 |
private String tileMatrix = null; |
41 |
private int tileCol = -1; |
42 |
private int tileRow = -1; |
43 |
private ArrayList tileList = null; |
44 |
private String infoFormat = null; |
45 |
private int level = -1; |
46 |
|
47 |
public String getLayer() { |
48 |
return layer;
|
49 |
} |
50 |
|
51 |
public String getStyle() { |
52 |
return style;
|
53 |
} |
54 |
|
55 |
public String getTileMatrixSet() { |
56 |
return tileMatrixSet;
|
57 |
} |
58 |
|
59 |
public String getTileMatrix() { |
60 |
return tileMatrix;
|
61 |
} |
62 |
|
63 |
public int getTileRow() { |
64 |
return tileRow;
|
65 |
} |
66 |
|
67 |
public int getTileCol() { |
68 |
return tileCol;
|
69 |
} |
70 |
|
71 |
public void setLayer(String layer) { |
72 |
this.layer = layer;
|
73 |
} |
74 |
|
75 |
public void setStyle(String style) { |
76 |
this.style = style;
|
77 |
} |
78 |
|
79 |
public void setTileMatrixSet(String tileMatrixSet) { |
80 |
this.tileMatrixSet = tileMatrixSet;
|
81 |
} |
82 |
|
83 |
public void setTileMatrix(String tileMatrix) { |
84 |
this.tileMatrix = tileMatrix;
|
85 |
} |
86 |
|
87 |
public void setTileCol(int tileCol) { |
88 |
this.tileCol = tileCol;
|
89 |
} |
90 |
|
91 |
public void setTileRow(int tileRow) { |
92 |
this.tileRow = tileRow;
|
93 |
} |
94 |
|
95 |
public ArrayList getTileList() { |
96 |
return tileList;
|
97 |
} |
98 |
|
99 |
public void setTileList(ArrayList tileList) { |
100 |
this.tileList = tileList;
|
101 |
} |
102 |
|
103 |
public String getInfoFormat() { |
104 |
return this.infoFormat; |
105 |
} |
106 |
|
107 |
public void setInfoFormat(String format) { |
108 |
this.infoFormat = format;
|
109 |
} |
110 |
|
111 |
public int getLevel() { |
112 |
return level;
|
113 |
} |
114 |
|
115 |
public void setLevel(int level) { |
116 |
this.level = level;
|
117 |
} |
118 |
|
119 |
public WMTSStatus cloneStatus() {
|
120 |
WMTSStatus status = new WMTSStatus();
|
121 |
status.layer = layer; |
122 |
status.style = style; |
123 |
status.tileMatrixSet = tileMatrixSet; |
124 |
status.tileMatrix = tileMatrix; |
125 |
status.tileCol = tileCol; |
126 |
status.tileRow = tileRow; |
127 |
status.tileList = new ArrayList(); |
128 |
for (int i = 0; i < tileList.size(); i++) { |
129 |
Tile t = ((Tile)tileList.get(i)).cloneTile(); |
130 |
status.tileList.add(t); |
131 |
} |
132 |
status.infoFormat = infoFormat; |
133 |
status.setFormat(getFormat()); |
134 |
status.setWidth(getWidth()); |
135 |
status.setHeight(getHeight()); |
136 |
status.setSrs(getSrs()); |
137 |
status.setInfoFormat(getInfoFormat()); |
138 |
return status;
|
139 |
} |
140 |
} |