Class SBML_SBase_Reader
java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.importers.sbml.SBML_SBase_Reader
- Direct Known Subclasses:
SBML_Constraint_Reader
,SBML_Event_Reader
,SBML_Model_Reader
,SBML_SBML_Reader
public class SBML_SBase_Reader extends Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SBML_SBase_Reader()
-
Method Summary
Modifier and Type Method Description void
addNamespaces(Map<String,String> namespaces, Graph g, String path, String attribute)
Adds a map of namespaces (namespace, URL) to the graph tab.static void
addNamespaces(org.sbml.jsbml.xml.XMLNode node, Graph g, String path, String attribute)
Adds the namespaces of an XMLNode to the graph tabvoid
addNotes(org.sbml.jsbml.xml.XMLNode notesObject, String notesString, Edge e, String path, String notesName)
void
addNotes(org.sbml.jsbml.xml.XMLNode notesObject, String notesString, Graph g, String path, String notesName)
This method adds notes to the current object in the graph tabvoid
addNotes(org.sbml.jsbml.xml.XMLNode notesObject, String notesString, Node node, String path, String notesName)
This method adds notes to the current object in the node tabString
getNiceHeadline(String presentedHeadline)
Method transforms an presented headline into an intern headlinestatic String
removeTagFromString(String xhtml)
This method processes an string with xhtml contentvoid
setAttributes(Node node, Color color, String label, Point2D point, int size_multiplier)
Method helps to set Attributes Creates nodes with 20, 20 height/width
-
Field Details
-
ATT
To make the code shorter -
namespaceCollector
Stores the namespaces which already has been added to the graph tab
-
-
Constructor Details
-
SBML_SBase_Reader
public SBML_SBase_Reader()
-
-
Method Details
-
removeTagFromString
This method processes an string with xhtml content- Parameters:
xhtml
-- Returns:
-
getNiceHeadline
Method transforms an presented headline into an intern headline- Parameters:
presentedHeadline
- is visible for the user- Returns:
-
addNotes
-
addNotes
public void addNotes(org.sbml.jsbml.xml.XMLNode notesObject, String notesString, Graph g, String path, String notesName)This method adds notes to the current object in the graph tab- Parameters:
notesObject
- contains the notes in XML Node formnotesString
- contains the notes as a Stringg
- is the data structure for reading in the informationpath
- intern representation where to add the notesnotesName
- contains the presented headline and the presented attribute name
-
addNotes
public void addNotes(org.sbml.jsbml.xml.XMLNode notesObject, String notesString, Node node, String path, String notesName)This method adds notes to the current object in the node tab- Parameters:
notesObject
- contains the notes in XML Node formnotesString
- contains the notes as a Stringnode
- is the data structure for reading in the informationpath
- intern representation where to add the notesnotesName
- contains the presented headline and the presented attribute name
-
setAttributes
public void setAttributes(Node node, Color color, String label, Point2D point, int size_multiplier)Method helps to set Attributes Creates nodes with 20, 20 height/width- Parameters:
node
- the current nodecolor
- the aimed colorlabel
- label of the nodepoint
- coordinates of the nodesize_multiplier
- determines the size of the node
-
addNamespaces
public static void addNamespaces(org.sbml.jsbml.xml.XMLNode node, Graph g, String path, String attribute)Adds the namespaces of an XMLNode to the graph tab- Parameters:
node
- contains the namespacesg
- the graph that should be imported
-
addNamespaces
Adds a map of namespaces (namespace, URL) to the graph tab.- Parameters:
namespaces
- contains the namespaces and the URLsg
- the graph that should be imported
-