Package org.cy3sbml.gui
Class SBaseHTMLFactory
java.lang.Object
org.cy3sbml.gui.SBaseHTMLFactory
Creates HTML information for given SBase.
Core information is parsed from the NamedSBase object,
with additional information like resources retrieved via
web services (MIRIAM).
Here the HTML information string is created which is displayed on selection of SBML objects in the graph.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSBaseHTMLFactory(String baseDir, MiriamRegistry miriamRegistry, OlsClient olsClient, UniprotAccess uniprotAccess, ChebiAccess chebiAccess) Creates the factory.SBaseHTMLFactory(String baseDir, MiriamRegistry miriamRegistry, OlsClient olsClient, UniprotAccess uniprotAccess, ChebiAccess chebiAccess, CompTargets compTargets) Creates the factory, which shows the targets of the comp references.SBaseHTMLFactory(String baseDir, MiriamRegistry miriamRegistry, OlsClient olsClient, UniprotAccess uniprotAccess, ChebiAccess chebiAccess, CompTargets compTargets, Function<org.sbml.jsbml.SBMLDocument, Optional<ArchiveImport>> archives) Creates the factory, which shows the targets of the comp references and the COMBINE archive a document was imported from. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbaseDirFromAppDir(File appDir) Returns the base URL of the gui resources in the given application directory.static StringbooleanHTML(boolean b) Creates true or false HTML depending on boolean.createHTMLText(String text) Creates HTML text.createHTMLText(String text, String title) Creates HTML for given text String.createInfo(org.sbml.jsbml.SBase sbase) Creates the HTML information for the given SBase.createSecondaryInformation(Namespace dataType, String identifier) Resolves secondary resourses and returns the HTML.static StringgetPrefixValue(String keyToFind)
-
Field Details
-
SBO
- See Also:
-
CY3SBML
- See Also:
-
IDENTIFIERS_BASE
- See Also:
-
FILENAME_NAMESPACE
- See Also:
-
delim
- See Also:
-
-
Constructor Details
-
SBaseHTMLFactory
public SBaseHTMLFactory(String baseDir, MiriamRegistry miriamRegistry, OlsClient olsClient, UniprotAccess uniprotAccess, ChebiAccess chebiAccess) Creates the factory.- Parameters:
baseDir- base URL of the gui resources, which resolves the relative resources within the WebViewmiriamRegistry- data collections for resolving annotation URIsolsClient- resolves ontology terms for displayuniprotAccess- resolves UniProt accessions for displaychebiAccess- resolves ChEBI ids for display
-
SBaseHTMLFactory
public SBaseHTMLFactory(String baseDir, MiriamRegistry miriamRegistry, OlsClient olsClient, UniprotAccess uniprotAccess, ChebiAccess chebiAccess, CompTargets compTargets) Creates the factory, which shows the targets of the comp references.- Parameters:
compTargets- the comp references of the open documents, may be null
-
SBaseHTMLFactory
public SBaseHTMLFactory(String baseDir, MiriamRegistry miriamRegistry, OlsClient olsClient, UniprotAccess uniprotAccess, ChebiAccess chebiAccess, CompTargets compTargets, Function<org.sbml.jsbml.SBMLDocument, Optional<ArchiveImport>> archives) Creates the factory, which shows the targets of the comp references and the COMBINE archive a document was imported from.- Parameters:
compTargets- the comp references of the open documents, may be nullarchives- the archive of a document, may be null
-
-
Method Details
-
baseDirFromAppDir
Returns the base URL of the gui resources in the given application directory. -
createHTMLText
Creates HTML for given text String. -
createHTMLText
Creates HTML text. -
createInfo
Creates the HTML information for the given SBase.- Throws:
IOException
-
createSecondaryInformation
Resolves secondary resourses and returns the HTML.- Returns:
- html string
-
booleanHTML
Creates true or false HTML depending on boolean. -
getPrefixValue
-