Source Code Cross Referenced for Resources.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » ca » forklabs » media » jai » operator » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » Java Advanced Imaging » ca.forklabs.media.jai.operator 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * @(#) $Header: /cvs/jai-operators/src/main/ca/forklabs/media/jai/operator/Resources.java,v 1.13 2007/09/07 18:09:41 forklabs Exp $
003:         *
004:         * Copyright (C) 2007  Forklabs Daniel Léonard
005:         *
006:         * This program is free software; you can redistribute it and/or
007:         * modify it under the terms of the GNU General Public License
008:         * as published by the Free Software Foundation; either version 2
009:         * of the License, or (at your option) any later version.
010:         *
011:         * This program is distributed in the hope that it will be useful,
012:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
013:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
014:         * GNU General Public License for more details.
015:         *
016:         * You should have received a copy of the GNU General Public License
017:         * along with this program; if not, write to the Free Software
018:         * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
019:         */
020:
021:        package ca.forklabs.media.jai.operator;
022:
023:        import java.text.MessageFormat;
024:        import java.util.ResourceBundle;
025:
026:        /**
027:         * Class {@code Resources} is the default bundle for the resources used by
028:         * classes in the {@link ca.forklabs.media.jai.operator} package.
029:         *
030:         * @author   <a href="mailto:forklabs at dev.java.net?subject=ca.forklabs.media.jai.operator.Resources">Daniel Léonard</a>
031:         * @version $Revision: 1.13 $
032:         */
033:        @SuppressWarnings("nls")
034:        class Resources {
035:            // TODO : with many packages, merge all the resource files together ?
036:            //---------------------------
037:            // Class variables
038:            //---------------------------
039:
040:            /** Key for the description of the median collection operation. */
041:            public static final String UNARY_FUNCTION_DESCRIPTION = "unary.function.description";
042:            /** Key for the description of the median collection operation. */
043:            public static final String UNARY_FUNCTION_ARG0_DESCRIPTION = "unary.function.arg0.description";
044:
045:            /** Key for the description of the pipeline operation. */
046:            public static final String PIPELINE_DESCRIPTION = "pipeline.description";
047:            /** Key for the description of the first argument. */
048:            public static final String PIPELINE_ARG0_DESCRIPTION = "pipeline.arg0.description";
049:            /** Key for the description of the second argument. */
050:            public static final String PIPELINE_ARG1_DESCRIPTION = "pipeline.arg1.description";
051:            /** Key for the error message saying that there are not the same number of operations and parameter blocks. */
052:            public static final String PIPELINE_BAD_ALIGNEMENT = "pipeline.bad.alignment";
053:
054:            /** Key for the description of the auto rescale operation. */
055:            public static final String AUTO_RESCALE_DESCRIPTION = "auto.rescale.description";
056:            /** Key for the description of the first argument. */
057:            public static final String AUTO_RESCALE_ARG0_DESCRIPTION = "auto.rescale.arg0.description";
058:            /** Key for the description of the second argument. */
059:            /** Key for the error message saying that there are no lower bounds. */
060:            public static final String AUTO_RESCALE_ARG1_DESCRIPTION = "auto.rescale.arg1.description";
061:            /** Key for the error message saying that there are no lower bounds. */
062:            public static final String AUTO_RESCALE_NO_LOWER_BOUNDS = "auto.rescale.no.lower.bounds";
063:            /** Key for the error message saying that there are no upper bounds. */
064:            public static final String AUTO_RESCALE_NO_UPPER_BOUNDS = "auto.rescale.no.upper.bounds";
065:            /** Key for the error message saying that they are not the same number of lower and upper bounds. */
066:            public static final String AUTO_RESCALE_NOT_SAME_NUMBER_OF_BOUNDS = "auto.rescale.not.same.number.of.bounds";
067:            /** Key for the error message saying that the lower bound is greater than the upper bound. */
068:            public static final String AUTO_RESCALE_LOWER_GREATER_THAN_UPPER = "auto.rescale.lower.greater.than.upper";
069:
070:            /** Key for the description of the apply to collection operation. */
071:            public static final String APPLY_TO_COLLECTION_DESCRIPTION = "apply.to.collection.description";
072:            /** Key for the description of the first argument. */
073:            public static final String APPLY_TO_COLLECTION_ARG0_DESCRIPTION = "apply.to.collection.arg0.description";
074:            /** Key for the description of the second argument. */
075:            public static final String APPLY_TO_COLLECTION_ARG1_DESCRIPTION = "apply.to.collection.arg1.description";
076:
077:            /** Key for the description of the dft3d operation. */
078:            public static final String DFT3D_DESCRIPTION = "dft3d.description";
079:            /** Key for the description of the idft3d operation. */
080:            public static final String IDFT3D_DESCRIPTION = "idft3d.description";
081:            /** Key for the description of the first argument. */
082:            public static final String DFT3D_ARG0_DESCRIPTION = "dft3d.arg0.description";
083:            /** Key for the description of the second argument. */
084:            public static final String DFT3D_ARG1_DESCRIPTION = "dft3d.arg1.description";
085:
086:            /** Key for the description of the dft3d operation. */
087:            public static final String PERIODIC_SHIFT_3D_DESCRIPTION = "periodic.shift.3d.description";
088:            /** Key for the description of the first argument. */
089:            public static final String PERIODIC_SHIFT_3D_ARG0_DESCRIPTION = "periodic.shift.3d.arg0.description";
090:            /** Key for the description of the second argument. */
091:            public static final String PERIODIC_SHIFT_3D_ARG1_DESCRIPTION = "periodic.shift.3d.arg1.description";
092:            /** Key for the description of the third argument. */
093:            public static final String PERIODIC_SHIFT_3D_ARG2_DESCRIPTION = "periodic.shift.3d.arg2.description";
094:
095:            /** Key for the description of the median collection operation. */
096:            public static final String MEDIAN_COLLECTION_DESCRIPTION = "median.collection.description";
097:            /** Key for the error message telling that 2+ images are required. */
098:            public static final String MEDIAN_COLLECTION_CARDINALITY = "median.collection.cardinality";
099:
100:            /** Key for the description of the spatial homomorphic operation. */
101:            public static final String SPECTRAL_HOMOMORPHIC_DESCRIPTION = "spectral.homomorphic.description";
102:            /** Key for the description of the first argument. */
103:            public static final String SPECTRAL_HOMOMORPHIC_ARG0_DESCRIPTION = "spectral.homomorphic.arg0.description";
104:            /** Key for the description of the second argument. */
105:            public static final String SPECTRAL_HOMOMORPHIC_ARG1_DESCRIPTION = "spectral.homomorphic.arg1.description";
106:
107:            /** Key for the description of the spatial homomorphic operation. */
108:            public static final String SPECTRAL_FILTER_DESCRIPTION = "spectral.filter.description";
109:            /** Key for the description of the first argument. */
110:            public static final String SPECTRAL_FILTER_ARG0_DESCRIPTION = "spectral.filter.arg0.description";
111:            /** Key for the description of the second argument. */
112:            public static final String SPECTRAL_FILTER_ARG1_DESCRIPTION = "spectral.filter.arg1.description";
113:
114:            /** Key for the description of the image function 3d operation. */
115:            public static final String IMAGE_FUNCTION_3D_DESCRIPTION = "image.function.3d.description";
116:            /** Key for the description of the first argument. */
117:            public static final String IMAGE_FUNCTION_3D_ARG0_DESCRIPTION = "image.function.3d.arg0.description";
118:            /** Key for the description of the second argument. */
119:            public static final String IMAGE_FUNCTION_3D_ARG1_DESCRIPTION = "image.function.3d.arg1.description";
120:            /** Key for the description of the third argument. */
121:            public static final String IMAGE_FUNCTION_3D_ARG2_DESCRIPTION = "image.function.3d.arg2.description";
122:            /** Key for the description of the fourth argument. */
123:            public static final String IMAGE_FUNCTION_3D_ARG3_DESCRIPTION = "image.function.3d.arg3.description";
124:
125:            /** Key for the description of the image function 3d operation. */
126:            public static final String KMEANS_DESCRIPTION = "kmeans.description";
127:            /** Key for the description of the first argument. */
128:            public static final String KMEANS_ARG0_DESCRIPTION = "kmeans.arg0.description";
129:            /** Key for the description of the second argument. */
130:            public static final String KMEANS_ARG1_DESCRIPTION = "kmeans.arg1.description";
131:            /** Key for the description of the third argument. */
132:            public static final String KMEANS_ARG2_DESCRIPTION = "kmeans.arg2.description";
133:            /** Key for the description of the fourth argument. */
134:            public static final String KMEANS_ARG3_DESCRIPTION = "kmeans.arg3.description";
135:            /** Key for the error message saying that the number of clusters and the number of color in the color map do not match. */
136:            public static final String KMEANS_BAD_CLUSTERS = "kmeans.bad.clusters";
137:            /** Key for the error message saying that the color map is not rectangular. */
138:            public static final String KMEANS_COLOR_MAP_NOT_RECTANGULAR = "kmeans.color.map.not.rectangular";
139:            /** Key for the error message saying that the color map does not have the required number of bands. */
140:            public static final String KMEANS_BAD_BANDS = "kmeans.bad.bands";
141:
142:            /** Key for the error message saying the source is not a rendered image. */
143:            public static final String NOT_A_RENDERED_IMAGE = "not.a.rendered.image";
144:            /** Key for the error message saying the source is not a renderable image. */
145:            public static final String NOT_A_RENDERABLE_IMAGE = "not.a.renderable.image";
146:            /** Key for the error message saying the source is neither a rendered nor a renderable image. */
147:            public static final String NEITHER_RENDERED_NOR_RENDERABLE_IMAGE = "neither.rendered.nor.renderable.image";
148:
149:            //---------------------------
150:            // Constructor
151:            //---------------------------
152:
153:            /**
154:             * Let no one instanciate this class.
155:             */
156:            private Resources() {
157:                // nothing
158:            }
159:
160:            //---------------------------
161:            // Class method
162:            //---------------------------
163:
164:            /**
165:             * Gets the resource bundle itself.
166:             * @return   the resource bundle.
167:             */
168:            public static ResourceBundle getResourceBundle() {
169:                String name = Resources.class.getName();
170:                ResourceBundle bundle = ResourceBundle.getBundle(name);
171:                return bundle;
172:            }
173:
174:            /**
175:             * Gets and formats the specified localized string from the menu resource
176:             * bundle.
177:             * @param   key   the key.
178:             * @param   arguments   the arguments to format the string.
179:             * @return   the value.
180:             */
181:            public static String getLocalizedString(String key,
182:                    Object... arguments) {
183:                ResourceBundle bundle = Resources.getResourceBundle();
184:                String pattern = bundle.getString(key);
185:                String message = MessageFormat.format(pattern, arguments);
186:                return message;
187:            }
188:
189:        }
190:
191:        /*
192:         * $Log: Resources.java,v $
193:         * Revision 1.13  2007/09/07 18:09:41  forklabs
194:         * Refactored K-Means to add a new parameter, the evaluation function.
195:         *
196:         * Revision 1.12  2007/08/16 21:26:04  forklabs
197:         * Operator kmeans.
198:         *
199:         * Revision 1.11  2007/07/17 16:06:04  forklabs
200:         * Operator spectralfilter.
201:         *
202:         * Revision 1.10  2007/07/05 00:09:44  forklabs
203:         * More resources.
204:         *
205:         * Revision 1.9  2007/06/13 18:56:36  forklabs
206:         * Operator mediancollection.
207:         *
208:         * Revision 1.8  2007/06/11 22:12:02  forklabs
209:         * A class to help descriptors in collection and renderable collection mode.
210:         *
211:         * Revision 1.7  2007/06/07 23:39:19  forklabs
212:         * Operator pipeline is now on all four modes.
213:         *
214:         * Revision 1.6  2007/06/05 20:26:30  forklabs
215:         * Resources for periodicshift3d.
216:         *
217:         * Revision 1.5  2007/06/05 02:42:19  forklabs
218:         * Operators dft3d and idft3d
219:         *
220:         * Revision 1.4  2007/05/25 21:20:57  forklabs
221:         * Operator "applytocollection"
222:         *
223:         * Revision 1.3  2007/05/03 20:24:39  forklabs
224:         * Operator "autorescale"
225:         *
226:         * Revision 1.2  2007/05/03 19:51:52  forklabs
227:         * The pipeline descriptor.
228:         *
229:         * Revision 1.1  2007/05/03 18:32:28  forklabs
230:         * Initial commit for the unaryfunction operator.
231:         *
232:         */
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.