public class Resources
extends java.lang.Object
Constructor and Description |
---|
Resources() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<?> |
get3DClass(java.lang.String name) |
static java.lang.Class<?> |
getJythonClass(java.lang.String name) |
static javax.swing.ImageIcon |
getResource(java.lang.Class<?> theClass,
java.lang.String iconName)
Method to load a valid icon stored in resources package under the given class.
|
static java.net.URL |
getURLResource(java.lang.Class<?> theClass,
java.lang.String resourceName)
Method to get URL path for a resource stored in resources package under the given class.
|
public static javax.swing.ImageIcon getResource(java.lang.Class<?> theClass, java.lang.String iconName)
theClass
- class path where the icon resource is stored undericonName
- icon namepublic static java.net.URL getURLResource(java.lang.Class<?> theClass, java.lang.String resourceName)
theClass
- class path where resource is stored underresourceName
- resource namepublic static java.lang.Class<?> get3DClass(java.lang.String name)
public static java.lang.Class<?> getJythonClass(java.lang.String name)