com.tensegrity.graph.view.style
Class GraphStyleService

java.lang.Object
  extended bycom.tensegrity.graph.view.style.GraphStyleService

public class GraphStyleService
extends java.lang.Object

This class has static method(s) for loading xml style resources from files with java's built-in classloader-based resource loading facility.

Version:
$Id: GraphStyleService.java,v 1.6 2004/01/08 11:53:11 GillesIachelini Exp $
Author:
MichaelKegel
See Also:
StylePool

Method Summary
static void loadStylesFromResource(java.lang.String filename, java.lang.Class resourceclass)
          Loads the given styles into the StylePool by using the StyleService.loadStylesFromResource(String, Class) method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadStylesFromResource

public static final void loadStylesFromResource(java.lang.String filename,
                                                java.lang.Class resourceclass)
                                         throws ReadException
Loads the given styles into the StylePool by using the StyleService.loadStylesFromResource(String, Class) method.

Parameters:
filename - the filename for the resource, which is passed to the classloader of the given class. The classloader will then figure out the exact location of the style.
Throws:
ReadException - thrown if the StyleService.loadStylesFromResource(String, Class) method throws such an exception.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.