Revision 38078 branches/v2_0_0_prep/frameworks/_fwAndami/src/org/gvsig/andami/iconthemes/IIconTheme.java
IIconTheme.java | ||
---|---|---|
1 | 1 |
package org.gvsig.andami.iconthemes; |
2 | 2 |
|
3 | 3 |
import java.net.URL; |
4 |
import java.util.Iterator; |
|
4 | 5 |
|
5 | 6 |
import javax.swing.ImageIcon; |
6 | 7 |
|
... | ... | |
9 | 10 |
/** |
10 | 11 |
* Load all icons from the IconTheme |
11 | 12 |
*/ |
12 |
public abstract void load();
|
|
13 |
public void load(); |
|
13 | 14 |
|
14 |
public abstract void setDefault(IIconTheme def);
|
|
15 |
public void setDefault(IIconTheme def); |
|
15 | 16 |
|
16 |
public abstract IIconTheme getDefault();
|
|
17 |
public IIconTheme getDefault(); |
|
17 | 18 |
|
18 | 19 |
/** |
19 | 20 |
* Returns <code>true</code> if the icon theme contains a mapping for the |
... | ... | |
25 | 26 |
* @return <code>true</code> if this IconTheme contains |
26 | 27 |
* <code>iconName</code>, <code>false</code> otherwise. |
27 | 28 |
*/ |
28 |
public abstract boolean exists(String iconName);
|
|
29 |
public boolean exists(String iconName); |
|
29 | 30 |
|
30 | 31 |
/** |
31 | 32 |
* Gets the ImageIcon associated with the provided key, if the key |
... | ... | |
38 | 39 |
* The icon associated with the provided key, or |
39 | 40 |
* <code>null</code> otherwise. |
40 | 41 |
*/ |
41 |
public abstract ImageIcon get(String iconName);
|
|
42 |
public ImageIcon get(String iconName); |
|
42 | 43 |
|
43 | 44 |
/** |
44 | 45 |
* Gets the ImageIcon associated with the provided key, if the key |
... | ... | |
55 | 56 |
* The icon associated with the provided key, or |
56 | 57 |
* <code>no-icon</code> otherwise. |
57 | 58 |
*/ |
58 |
public abstract ImageIcon get(String iconName, ClassLoader loader);
|
|
59 |
public ImageIcon get(String iconName, ClassLoader loader); |
|
59 | 60 |
|
60 | 61 |
/** |
61 | 62 |
* <p>Register in this theme the provided iconName and the associated |
... | ... | |
71 | 72 |
* @param image The image that is going to be associated with the |
72 | 73 |
* provided icon name. |
73 | 74 |
*/ |
74 |
public abstract void registerDefault(String iconName, ImageIcon image);
|
|
75 |
public void registerDefault(String iconName, ImageIcon image); |
|
75 | 76 |
|
76 | 77 |
/** |
77 | 78 |
* <p>Register in this theme the provided iconName and the associated |
... | ... | |
85 | 86 |
* @param resource The resource that is going to be asssocioated with the providad |
86 | 87 |
* icon name |
87 | 88 |
*/ |
88 |
public abstract void registerDefault(String iconName, Object resource);
|
|
89 |
public void registerDefault(String iconName, Object resource); |
|
89 | 90 |
|
90 | 91 |
/** |
91 | 92 |
* <p>Register in this theme the provided iconName and the associated |
... | ... | |
101 | 102 |
* @param image The image that is going to be associated with the |
102 | 103 |
* provided icon name. |
103 | 104 |
*/ |
104 |
public abstract void register(String iconName, ImageIcon image);
|
|
105 |
public void register(String iconName, ImageIcon image); |
|
105 | 106 |
|
106 | 107 |
/** |
107 | 108 |
* <p>Register in this theme the provided iconName and the associated |
... | ... | |
115 | 116 |
* @param resource The resource that is going to be asssocioated with the providad |
116 | 117 |
* icon name |
117 | 118 |
*/ |
118 |
public abstract void register(String iconName, Object resource);
|
|
119 |
public void register(String iconName, Object resource); |
|
119 | 120 |
|
120 | 121 |
/** |
121 | 122 |
* Gets the theme name. |
122 | 123 |
* @return theme name |
123 | 124 |
*/ |
124 |
public abstract String getName();
|
|
125 |
public String getName(); |
|
125 | 126 |
|
126 | 127 |
/** |
127 | 128 |
* Sets the theme name. |
128 | 129 |
* |
129 | 130 |
* @param themeName |
130 | 131 |
*/ |
131 |
public abstract void setName(String themeName);
|
|
132 |
public void setName(String themeName); |
|
132 | 133 |
|
133 | 134 |
/** |
134 | 135 |
* Gets the theme description. |
135 | 136 |
* |
136 | 137 |
* @return The description of this theme. |
137 | 138 |
*/ |
138 |
public abstract String getDescription();
|
|
139 |
public String getDescription(); |
|
139 | 140 |
|
140 | 141 |
/** |
141 | 142 |
* Sets the theme description. It should be a short description |
... | ... | |
145 | 146 |
* |
146 | 147 |
* @param description |
147 | 148 |
*/ |
148 |
public abstract void setDescription(String description);
|
|
149 |
public void setDescription(String description); |
|
149 | 150 |
|
150 | 151 |
/** |
151 | 152 |
* Returns the theme version. It defaults to "1.0". |
152 | 153 |
* |
153 | 154 |
* @return The version of this theme. |
154 | 155 |
*/ |
155 |
public abstract String getVersion();
|
|
156 |
public String getVersion(); |
|
156 | 157 |
|
157 | 158 |
/** |
158 | 159 |
* Set the theme version. |
159 | 160 |
* |
160 | 161 |
* @param version |
161 | 162 |
*/ |
162 |
public abstract void setVersion(String version);
|
|
163 |
public void setVersion(String version); |
|
163 | 164 |
|
164 | 165 |
/** |
165 | 166 |
* Gets the Object which contains physically contains this theme on disk. |
... | ... | |
167 | 168 |
* |
168 | 169 |
* @return |
169 | 170 |
*/ |
170 |
public abstract Object getResource();
|
|
171 |
public Object getResource(); |
|
171 | 172 |
|
172 | 173 |
/** |
173 | 174 |
* Sets the file which contains physically contains this theme on disk. |
... | ... | |
175 | 176 |
* |
176 | 177 |
* @return |
177 | 178 |
*/ |
178 |
public abstract void setResource(Object resource);
|
|
179 |
public void setResource(Object resource); |
|
179 | 180 |
|
180 | 181 |
/** |
181 | 182 |
* Return the URL which is currently associated with the |
... | ... | |
191 | 192 |
* |
192 | 193 |
* @deprecated |
193 | 194 |
*/ |
194 |
public abstract URL getURL(String iconName); |
|
195 |
public URL getURL(String iconName); |
|
196 |
|
|
197 |
/** |
|
198 |
* Return an id of the resource associated to the named icon |
|
199 |
* or null if the icon has not id. |
|
200 |
* |
|
201 |
* @param iconName |
|
202 |
* @return the id associated to the icon or null. |
|
203 |
*/ |
|
204 |
public String getResourceID(String iconName); |
|
195 | 205 |
|
196 | 206 |
public ImageIcon getNoIcon(); |
207 |
|
|
208 |
/** |
|
209 |
* Return an iterator over the names of the icons in the theme. |
|
210 |
* |
|
211 |
* @return iterator of names of icons |
|
212 |
*/ |
|
213 |
public Iterator<String> iterator(); |
|
197 | 214 |
|
198 | 215 |
} |
Also available in: Unified diff