Revision 19419 branches/v10/extensions/extPublish/src/org/gvsig/publish/infoproject/ILayerInfo.java
ILayerInfo.java | ||
---|---|---|
48 | 48 |
|
49 | 49 |
|
50 | 50 |
/** |
51 |
* This class represents the information about a layer. |
|
51 |
* This class represents the information about a layer you are seeing. |
|
52 |
* This class might be reprojected. |
|
52 | 53 |
* |
53 | 54 |
* @author Jos? Vicente Hig?n (josevicente.higon@iver.es) |
54 | 55 |
* |
55 | 56 |
*/ |
56 | 57 |
public interface ILayerInfo extends IPersistance { |
58 |
/** |
|
59 |
* |
|
60 |
* @return layer's title. It must be unique. |
|
61 |
*/ |
|
57 | 62 |
abstract String getName(); |
63 |
/** |
|
64 |
* |
|
65 |
* @return layer's title. |
|
66 |
*/ |
|
58 | 67 |
abstract String getTitle(); |
59 |
abstract String getEPSG(); |
|
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 |
*/ |
|
60 | 83 |
abstract double getMinscale(); |
84 |
/** |
|
85 |
* |
|
86 |
* @return maximum scale (layer coordinates) you can see the layer |
|
87 |
*/ |
|
61 | 88 |
abstract double getMaxscale(); |
62 |
abstract Rectangle2D getBBox(); |
|
63 |
abstract Object getLegend(); |
|
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 |
*/ |
|
64 | 103 |
abstract IDataSourceInfo getDataSource(); |
104 |
/** |
|
105 |
* |
|
106 |
* @return information about child layers |
|
107 |
*/ |
|
65 | 108 |
abstract ILayerInfo[] getChilds(); |
109 |
/** |
|
110 |
* |
|
111 |
* @return parent layer information |
|
112 |
*/ |
|
66 | 113 |
abstract ILayerInfo getParent(); |
114 |
/** |
|
115 |
* |
|
116 |
* @return information about the layer's view |
|
117 |
*/ |
|
67 | 118 |
abstract IViewInfo getViewInfo(); |
68 | 119 |
/** |
69 |
* It can be null!!
|
|
70 |
* @return |
|
120 |
* |
|
121 |
* @return information about the layer labeling. It can be null.
|
|
71 | 122 |
*/ |
72 | 123 |
abstract ILabelingInfo getLabeling(); |
73 | 124 |
|
... | ... | |
79 | 130 |
|
80 | 131 |
/** |
81 | 132 |
* |
82 |
* @param layerName |
|
83 |
* @return this
|
|
133 |
* @param layerName layer's name
|
|
134 |
* @return information about the layer
|
|
84 | 135 |
*/ |
85 | 136 |
abstract ILayerInfo findLayer(String layerName); |
86 | 137 |
} |
Also available in: Unified diff