de.cau.cs.kieler.kaom.karma.ptolemy.figurecreation
Class PtolemyFetcher

java.lang.Object
  extended by de.cau.cs.kieler.kaom.karma.ptolemy.figurecreation.PtolemyFetcher

public final class PtolemyFetcher
extends Object

Class to fetch some stuff such as svg descriptions and ptolemy class instance from ptolemy.

Rating red

Method Summary
static List<EditorIcon> fetchIcons(NamedObj nObj)
          Get the EditorIcons from a ptolemy NamedObj.
static Document fetchSvgDoc(NamedObj nObj)
          Gets the svg Document representing a ptolemy NamedObj.
static NamedObj getPtolemyInstance(EObject object)
          Get an instance of a Ptolemy class according to an EObjects annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fetchIcons

public static List<EditorIcon> fetchIcons(NamedObj nObj)
Get the EditorIcons from a ptolemy NamedObj.

Parameters:
nObj - the NamedObj
Returns:
the list of EditorIcons of the given object

fetchSvgDoc

public static Document fetchSvgDoc(NamedObj nObj)
Gets the svg Document representing a ptolemy NamedObj.

Parameters:
nObj - the NamedObj
Returns:
an svg Document representing the NamedObj

getPtolemyInstance

public static NamedObj getPtolemyInstance(EObject object)
Get an instance of a Ptolemy class according to an EObjects annotation.

Parameters:
object - the object representing an ptolemy object. Should have an "ptolemyClass" annotation.
Returns:
a ptolemy instance of the object.