svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.spi / src / main / java / org / gvsig / fmap / dal / raster / spi / RasterStoreProviderServices.java @ 44831
History | View | Annotate | Download (4.42 KB)
1 | 44831 | jjdelcerro | /* gvSIG. Desktop Geographic Information System.
|
---|---|---|---|
2 | *
|
||
3 | * Copyright ? 2007-2016 gvSIG Association
|
||
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., 51 Franklin Street, Fifth Floor, Boston,
|
||
18 | * MA 02110-1301, USA.
|
||
19 | *
|
||
20 | * For any additional information, do not hesitate to contact us
|
||
21 | * at info AT gvsig.com, or visit our website www.gvsig.com.
|
||
22 | */
|
||
23 | package org.gvsig.fmap.dal.raster.spi; |
||
24 | |||
25 | import java.util.List; |
||
26 | |||
27 | import org.gvsig.fmap.dal.DataManager; |
||
28 | import org.gvsig.fmap.dal.raster.BandAttributeDescriptor; |
||
29 | import org.gvsig.fmap.dal.raster.BandDescriptor; |
||
30 | import org.gvsig.fmap.dal.raster.RasterStore; |
||
31 | import org.gvsig.fmap.dal.resource.Resource; |
||
32 | import org.gvsig.fmap.dal.resource.spi.ResourceProvider; |
||
33 | import org.gvsig.fmap.dal.spi.DataStoreProviderServices; |
||
34 | |||
35 | /**
|
||
36 | * @author dmartinezizquierdo
|
||
37 | *
|
||
38 | */
|
||
39 | public interface RasterStoreProviderServices extends DataStoreProviderServices { |
||
40 | |||
41 | /**
|
||
42 | * Call this to send a notification to observers of this store
|
||
43 | *
|
||
44 | * @param notification
|
||
45 | * @param data
|
||
46 | */
|
||
47 | public void notifyChange(String notification, ResourceProvider data); |
||
48 | |||
49 | /**
|
||
50 | * Call this to send a notification to observers of this store relative to
|
||
51 | * Resources
|
||
52 | *
|
||
53 | * @param notification
|
||
54 | * @param resource
|
||
55 | */
|
||
56 | public void notifyChange(String notification, Resource resource); |
||
57 | |||
58 | /**
|
||
59 | * @return Returns {@link DataManager} instance.
|
||
60 | */
|
||
61 | public DataManager getManager();
|
||
62 | |||
63 | /**
|
||
64 | * @return Returns the instance of {@link RasterStoreProvider} for this store.
|
||
65 | */
|
||
66 | public RasterStoreProvider getProvider();
|
||
67 | |||
68 | /**
|
||
69 | * @return Returns current RasterStore
|
||
70 | */
|
||
71 | public RasterStore getRasterStore();
|
||
72 | |||
73 | /**
|
||
74 | * @return Returns current FeatureStore name.
|
||
75 | */
|
||
76 | public String getName(); |
||
77 | |||
78 | /**
|
||
79 | * Creates a {@link BandDescriptor} object.
|
||
80 | *
|
||
81 | * @param band
|
||
82 | * BandDescriptor band
|
||
83 | * @param attributes
|
||
84 | * A list with available {@link BandAttributeDescriptor}.
|
||
85 | * @return New instance of band descriptor
|
||
86 | */
|
||
87 | public BandDescriptor createBandDescriptor(int band, List<BandAttributeDescriptor> attributes); |
||
88 | |||
89 | /**
|
||
90 | * Creates a {@link BandAttributeDescriptor}.
|
||
91 | *
|
||
92 | * @param band
|
||
93 | * Band of attribute descriptor.
|
||
94 | * @param name
|
||
95 | * Name of attribute
|
||
96 | * @param description
|
||
97 | * Descriptor of attribute
|
||
98 | * @param values
|
||
99 | * Values of band attribute descriptor
|
||
100 | * @return A new {@link BandAttributeDescriptor}
|
||
101 | */
|
||
102 | public BandAttributeDescriptor createBandAttributeDescriptor(int band, String name, |
||
103 | String description, List<Object> values); |
||
104 | |||
105 | /**
|
||
106 | * Creates a {@link BandAttributeDescriptor}.
|
||
107 | *
|
||
108 | * @param band
|
||
109 | * Band of attribute descriptor.
|
||
110 | * @param name
|
||
111 | * Name of attribute
|
||
112 | * @param description
|
||
113 | * Descriptor of attribute
|
||
114 | * @param values
|
||
115 | * Values of band attribute descriptor
|
||
116 | * @param units
|
||
117 | * String units
|
||
118 | * @return A new {@link BandAttributeDescriptor}
|
||
119 | */
|
||
120 | public BandAttributeDescriptor createBandAttributeDescriptor(int band, String name, |
||
121 | String description, List<Object> values, String units); |
||
122 | |||
123 | /**
|
||
124 | * Creates a {@link BandAttributeDescriptor}.
|
||
125 | *
|
||
126 | * @param band
|
||
127 | * Band of attribute descriptor.
|
||
128 | * @param name
|
||
129 | * Name of attribute
|
||
130 | * @param value
|
||
131 | * @param description
|
||
132 | * Descriptor of attribute
|
||
133 | * @param values
|
||
134 | * Values of band attribute descriptor
|
||
135 | * @param units
|
||
136 | * String units
|
||
137 | * @return A new {@link BandAttributeDescriptor}
|
||
138 | */
|
||
139 | public BandAttributeDescriptor createBandAttributeDescriptor(int band, String name, Object value, |
||
140 | String description, List<Object> values, String units); |
||
141 | } |