P - Type of the product.public class LayoutDirector<P> extends Object implements Runnable
LayoutDirector produces a graphical representation of a layout of an
SBMLDocument.| Modifier and Type | Field and Description |
|---|---|
static String |
COMPARTMENT_LINK
Constant for use as the key for compartment links, also see
LAYOUT_LINK. |
static String |
KEY_FOR_FLUX_VALUES
Constant for use as the key for flux values.
|
static String |
LAYOUT_LINK
Constant for use as the key for layout links.
|
static String |
NO_WHISKERS |
static String |
PN_RELATIVE_DOCKING_POINT
Constant for use as the key for relative docking points.
|
static String |
SPECIAL_ROTATION_NEEDED |
static String |
SPECIES_RELATIVE_DOCKING_POINT
Constant for use as the key for relative docking points for a species,
also see
PN_RELATIVE_DOCKING_POINT. |
| Constructor and Description |
|---|
LayoutDirector(File inputFile,
LayoutBuilder<P> builder,
LayoutAlgorithm algorithm) |
LayoutDirector(Layout layout,
LayoutBuilder<P> builder,
LayoutAlgorithm algorithm) |
LayoutDirector(SBMLDocument doc,
LayoutBuilder<P> builder,
LayoutAlgorithm algorithm) |
LayoutDirector(SBMLDocument doc,
LayoutBuilder<P> builder,
LayoutAlgorithm algorithm,
int index) |
| Modifier and Type | Method and Description |
|---|---|
static SpeciesReferenceRole |
determineRole(SpeciesReferenceGlyph srg) |
static boolean |
edgeIsLayouted(ReactionGlyph reactionGlyph,
SpeciesReferenceGlyph speciesReferenceGlyph)
Check if the incoming edge is layouted, i.e.
|
Boolean |
getAddWhiskers()
Returns the value of addWhiskers
|
LayoutAlgorithm |
getAlgorithm() |
LayoutBuilder<P> |
getBuilder() |
int |
getLayoutIndex() |
P |
getProduct()
Return the product of the building process.
|
static boolean |
glyphHasDimensions(GraphicalObject glyph)
Check if a glyph has dimensions.
|
static boolean |
glyphHasPosition(GraphicalObject glyph)
Check if a glyph has a position.
|
static boolean |
glyphIsLayouted(GraphicalObject glyph)
Check if a glyph as complete layout information (i.e.
|
static boolean |
isModifier(SpeciesReferenceGlyph srg)
Check if a species reference glyph can be interpreted as an activator,
inhibitor, or generic modifier.
|
static boolean |
isProduct(SpeciesReferenceGlyph srg)
Check if a species reference glyph is a product.
|
Boolean |
isSetAddWhiskers()
Returns whether addWhiskers is set
|
static boolean |
isSubstrate(SpeciesReferenceGlyph srg)
Check if a species reference glyph is a substrate.
|
void |
run() |
void |
setAddWhiskers(Boolean addWhiskers)
Sets the value of addWhiskers
|
void |
setAlgorithm(LayoutAlgorithm algorithm) |
void |
setBuilder(LayoutBuilder<P> builder) |
void |
setLayoutIndex(int layoutIndex) |
static boolean |
textGlyphIsIndependent(TextGlyph textGlyph)
Check whether a text glyph represents an independent text (i.e.
|
String |
toString() |
boolean |
unsetAddWhiskers()
Unsets the variable addWhiskers
|
public static final String SPECIAL_ROTATION_NEEDED
public static final String NO_WHISKERS
public static final String KEY_FOR_FLUX_VALUES
public static final String LAYOUT_LINK
public static final String COMPARTMENT_LINK
LAYOUT_LINK.public static final String PN_RELATIVE_DOCKING_POINT
ReactionGlyph to denote the relative docking position of the
connecting arcs.public static final String SPECIES_RELATIVE_DOCKING_POINT
PN_RELATIVE_DOCKING_POINT.public LayoutDirector(File inputFile, LayoutBuilder<P> builder, LayoutAlgorithm algorithm) throws XMLStreamException, IOException
inputFile - file containing the SBML documentbuilder - LayoutBuilder instance for producing the outputalgorithm - LayoutAlgorithm instance for layouting elementsXMLStreamExceptionIOExceptionpublic LayoutDirector(SBMLDocument doc, LayoutBuilder<P> builder, LayoutAlgorithm algorithm)
doc - the SBMLdocumentbuilder - LayoutBuilder instance for producing the outputalgorithm - LayoutAlgorithm instance for layouting elementspublic LayoutDirector(SBMLDocument doc, LayoutBuilder<P> builder, LayoutAlgorithm algorithm, int index)
doc - the SBMLdocumentbuilder - LayoutBuilder instance for producing the outputalgorithm - LayoutAlgorithm instance for layouting elementsindex - the index of the layout for which to produce the ouputpublic LayoutDirector(Layout layout, LayoutBuilder<P> builder, LayoutAlgorithm algorithm)
layout - the SBML layout for which to produce the outputbuilder - LayoutBuilder instance for producing the outputalgorithm - LayoutAlgorithm instance for layouting elementspublic Boolean getAddWhiskers()
public Boolean isSetAddWhiskers()
public void setAddWhiskers(Boolean addWhiskers)
public boolean unsetAddWhiskers()
true, if addWhiskers was set before,
otherwise falsepublic int getLayoutIndex()
public void setLayoutIndex(int layoutIndex)
layoutIndex - the index of the layout to be setpublic static boolean edgeIsLayouted(ReactionGlyph reactionGlyph, SpeciesReferenceGlyph speciesReferenceGlyph)
reactionGlyph - process node of the edgespeciesReferenceGlyph - species node of the edgepublic static boolean glyphIsLayouted(GraphicalObject glyph)
glyph - public static boolean glyphHasDimensions(GraphicalObject glyph)
glyph - public static boolean glyphHasPosition(GraphicalObject glyph)
glyph - public static boolean isSubstrate(SpeciesReferenceGlyph srg)
srg - a SpeciesReferenceGlyphtrue if the given SpeciesReferenceGlyph can be
associated with a consuming process or false otherwise.public static boolean isModifier(SpeciesReferenceGlyph srg)
srg - a SpeciesReferenceGlyphtrue if the given SpeciesReferenceGlyph acts as
an SpeciesReferenceRole.ACTIVATOR, SpeciesReferenceRole.INHIBITOR or SpeciesReferenceRole.MODIFIER.public static SpeciesReferenceRole determineRole(SpeciesReferenceGlyph srg)
srg - public static boolean isProduct(SpeciesReferenceGlyph srg)
srg - public static boolean textGlyphIsIndependent(TextGlyph textGlyph)
textGlyph - public void setBuilder(LayoutBuilder<P> builder)
builder - the builder to be setpublic LayoutBuilder<P> getBuilder()
public void setAlgorithm(LayoutAlgorithm algorithm)
algorithm - the algorithm to be setpublic LayoutAlgorithm getAlgorithm()
public P getProduct()
Copyright © 2009–2020. All rights reserved.