|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
net.xoetrope.optional.laf.synth.SynthClassLoader
public class SynthClassLoader
Used to locate project files. This classloader is used in the XEditorResourceManager and is initialised when a project is created or opened. It searches for files within the paths specified in the paths array.
Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
$Revision: 1.6 $
| Constructor Summary | |
|---|---|
SynthClassLoader()
Creates a new instance of SynthClassLoader |
|
SynthClassLoader(java.lang.ClassLoader parent)
Creates a new instance of SynthClassLoader |
|
| Method Summary | |
|---|---|
java.lang.Class |
findClass(java.lang.String name)
Finds the names class. |
protected void |
generatePng(java.lang.String resName,
java.lang.String sourceSvg,
java.lang.String resPng,
int width,
int height)
Generate a PNG from an SVG |
java.net.URL |
getResource(java.lang.String name)
Finds the resource with the given name. |
java.lang.Class |
loadClass(java.lang.String name)
Loads a class with the specified name. |
java.lang.Class |
loadStubClass(java.lang.String name)
Loads a stub class to allow hooking of the classloader structure for synth resources |
static void |
setConvertClassName(java.lang.String className)
Set the image conversion class name. |
static void |
setOverwriteImages(boolean overwrite)
Set the over write flag. |
| Methods inherited from class java.lang.ClassLoader |
|---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SynthClassLoader()
public SynthClassLoader(java.lang.ClassLoader parent)
parent - the parent classloader| Method Detail |
|---|
public java.net.URL getResource(java.lang.String name)
getResource in class java.lang.ClassLoadername - the resource file name
public java.lang.Class loadStubClass(java.lang.String name)
throws java.lang.ClassNotFoundException
name - the name of the stub class
java.lang.ClassNotFoundException - cannot load the class
public java.lang.Class loadClass(java.lang.String name)
throws java.lang.ClassNotFoundException
loadClass in class java.lang.ClassLoadername - the name of a class to load
java.lang.ClassNotFoundException - unable to load the class
public java.lang.Class findClass(java.lang.String name)
throws java.lang.ClassNotFoundException
findClass in class java.lang.ClassLoadername - the name of the class
java.lang.ClassNotFoundException - problems locating the class
protected void generatePng(java.lang.String resName,
java.lang.String sourceSvg,
java.lang.String resPng,
int width,
int height)
throws java.lang.Exception
resName - the bare resource namesourceSvg - resPng - width - height -
java.lang.Exceptionpublic static void setConvertClassName(java.lang.String className)
public static void setOverwriteImages(boolean overwrite)
overwrite - true to overwrite existing images
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||