Statistics
| Revision:

root / branches / v10 / extensions / extPublish / src / org / gvsig / publish / infoproject / ILayerInfo.java @ 19419

History | View | Annotate | Download (3.16 KB)

1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004-2006 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *   Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Iba?ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *   +34 963862235
28
 *   gvsig@gva.es
29
 *   www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41

    
42
package org.gvsig.publish.infoproject;
43

    
44
import java.awt.geom.Rectangle2D;
45

    
46
import com.iver.utiles.IPersistance;
47

    
48

    
49

    
50
/**
51
 * This class represents the information about a layer you are seeing.
52
 * This class might be reprojected.
53
 * 
54
 * @author Jos? Vicente Hig?n (josevicente.higon@iver.es)
55
 *
56
 */
57
public interface ILayerInfo extends IPersistance {        
58
        /**
59
         * 
60
         * @return layer's title. It must be unique.
61
         */
62
        abstract String getName();
63
        /**
64
         * 
65
         * @return layer's title.
66
         */
67
        abstract String getTitle();
68
        /**
69
         * Gets the system reference identifier of the layer.
70
         * @return integer which identifies the layer's CRS. 
71
         * If the layer is a group of layers, it will return -1 
72
         */
73
        abstract int getSRID();
74
        /**
75
         * @deprecated use getSRID instead
76
         * @return string with the epsg code "EPSG:xxxx"
77
         */
78
        abstract String getEPSGString();
79
        /**
80
         * 
81
         * @return minimum scale (layer coordinates) you can see the layer  
82
         */
83
        abstract double getMinscale();
84
        /**
85
         * 
86
         * @return maximum scale (layer coordinates) you can see the layer
87
         */
88
        abstract double getMaxscale();
89
        /**
90
         * 
91
         * @return geographic bounding box in layer's coordinates
92
         */
93
        abstract Rectangle2D getBBox();        
94
        /**
95
         * 
96
         * @return legend information
97
         */
98
        abstract ILegendInfo getLegend();
99
        /**
100
         * 
101
         * @return datasource information 
102
         */
103
        abstract IDataSourceInfo getDataSource();
104
        /**
105
         * 
106
         * @return information about child layers
107
         */
108
        abstract ILayerInfo[] getChilds();
109
        /**
110
         * 
111
         * @return parent layer information
112
         */
113
        abstract ILayerInfo getParent();
114
        /**
115
         * 
116
         * @return information about the layer's view
117
         */
118
        abstract IViewInfo getViewInfo();
119
        /**
120
         * 
121
         * @return information about the layer labeling. It can be null.
122
         */
123
        abstract ILabelingInfo getLabeling();
124
        
125
        /**
126
         * 
127
         * @return the opacity percentage, 0 is transparent, 100 is opaque
128
         */
129
        abstract int getOpacityPercent();
130

    
131
        /**
132
         * 
133
         * @param layerName layer's name
134
         * @return information about the layer
135
         */
136
        abstract ILayerInfo findLayer(String layerName);
137
}