public class SBML2Escher
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.ResourceBundle |
bundle
Default values,
|
protected org.sbml.jsbml.SBMLDocument |
document
SBML document to extract escher maps from.
|
protected java.util.List<EscherMap> |
escherMaps
List of escher maps converted from the layouts exported from the SBML document.
|
protected java.util.List<org.sbml.jsbml.ext.layout.Layout> |
layouts
List of layouts exported from the SBML document.
|
static java.util.ResourceBundle |
messages
Localization support.
|
Constructor and Description |
---|
SBML2Escher()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Canvas |
addCanvasInfo(org.sbml.jsbml.ext.layout.Layout layout)
Create a
Canvas instance from an SBML Layout . |
java.util.List<EscherMap> |
convert(org.sbml.jsbml.SBMLDocument document)
Converts an
SBMLDocument to a list of EscherMap s by iteratively creating nodes,
reactions, etc. |
protected Metabolite |
createMetabolite(org.sbml.jsbml.SpeciesReference speciesReference)
Creates a
Metabolite from a SpeciesReference . |
protected Node |
createMidMarker(org.sbml.jsbml.ext.layout.ReactionGlyph reactionGlyph)
Creates a
Node (mid-marker) from a ReactionGlyph . |
protected java.util.List<Node> |
createMultiMarkers(org.sbml.jsbml.ext.layout.SpeciesReferenceGlyph sRG)
Creates a list of
Node s(multi-markers) from a SpeciesReferenceGlyph . |
protected Node |
createNode(org.sbml.jsbml.ext.layout.SpeciesGlyph speciesGlyph)
Creates a
Node (metabolite) from a SpeciesGlyph . |
protected EscherReaction |
createReaction(org.sbml.jsbml.ext.layout.ReactionGlyph reactionGlyph)
Creates an
EscherReaction from a ReactionGlyph . |
protected java.util.List<Segment> |
createSegments(org.sbml.jsbml.ext.layout.SpeciesReferenceGlyph sRG,
org.sbml.jsbml.ext.layout.ReactionGlyph rG)
Creates a list of
Segment s from a SpeciesReferenceGlyph . |
protected TextLabel |
createTextLabel(org.sbml.jsbml.ext.layout.TextGlyph textGlyph)
Create a
TextLabel from a TextGlyph . |
protected double |
midPoint(double d1,
double d2)
Calculates mid-point of two decimal values.
|
public static final java.util.ResourceBundle bundle
public static final java.util.ResourceBundle messages
protected java.util.List<EscherMap> escherMaps
protected org.sbml.jsbml.SBMLDocument document
protected java.util.List<org.sbml.jsbml.ext.layout.Layout> layouts
public java.util.List<EscherMap> convert(org.sbml.jsbml.SBMLDocument document)
SBMLDocument
to a list of EscherMap
s by iteratively creating nodes,
reactions, etc.document
- The SBML
document to convert.protected Canvas addCanvasInfo(org.sbml.jsbml.ext.layout.Layout layout)
Canvas
instance from an SBML Layout
.layout
- The SBML layout
.canvas
instance.protected TextLabel createTextLabel(org.sbml.jsbml.ext.layout.TextGlyph textGlyph)
TextLabel
from a TextGlyph
.textGlyph
- The text glyph
.text label.
protected Node createNode(org.sbml.jsbml.ext.layout.SpeciesGlyph speciesGlyph)
Node
(metabolite) from a SpeciesGlyph
.speciesGlyph
- The species glyph
.node
.protected Node createMidMarker(org.sbml.jsbml.ext.layout.ReactionGlyph reactionGlyph)
Node
(mid-marker) from a ReactionGlyph
.reactionGlyph
- The reaction glyph
.node
(mid-marker).protected java.util.List<Node> createMultiMarkers(org.sbml.jsbml.ext.layout.SpeciesReferenceGlyph sRG)
Node
s(multi-markers) from a SpeciesReferenceGlyph
.
A multi-marker is created for every joining of two curve segments in a curve.sRG
- The species reference glyph
.nodes
(multi-markers).protected EscherReaction createReaction(org.sbml.jsbml.ext.layout.ReactionGlyph reactionGlyph)
EscherReaction
from a ReactionGlyph
.reactionGlyph
- The reaction glyph
.escher reaction
.protected java.util.List<Segment> createSegments(org.sbml.jsbml.ext.layout.SpeciesReferenceGlyph sRG, org.sbml.jsbml.ext.layout.ReactionGlyph rG)
Segment
s from a SpeciesReferenceGlyph
.
A segment is created for every CurveSegment
inside a Curve
.sRG
- The species reference glyph
.rG
- The linked reaction glyph
.segments
.protected Metabolite createMetabolite(org.sbml.jsbml.SpeciesReference speciesReference)
Metabolite
from a SpeciesReference
.speciesReference
- The species reference
.metabolite
.protected double midPoint(double d1, double d2)
d1
- First value.d2
- Second value.