@MetaInfServices(value=Service.class) @Alias(value="image") @ServiceStatus(value=RELEASED) public class ImageExportService extends Object implements Service
Constructor and Description |
---|
ImageExportService() |
Modifier and Type | Method and Description |
---|---|
LRGCustomStyleProvider |
customStyleProvider(RegulatoryGraph lrg) |
void |
exportPNG(Graph<?,Edge<?>> graph,
String fileName)
Export a model view as PNG image.
|
void |
exportPNG(Graph<?,Edge<?>> graph,
String fileName,
int f)
Export a model view as PNG image.
|
void |
exportSVG(Graph graph,
Collection nodes,
Collection<Edge> edges,
String fileName)
Export the graph to a SVG file
|
void |
exportSVG(Graph graph,
String fileName)
Export the graph to a SVG file
|
void |
exportSVG(Graph graph,
StyleProvider styler,
String fileName)
Export the graph to a SVG file
|
BufferedImage |
getPNG(Graph<?,?> graph,
int f) |
StyleProvider |
getStyle(RegulatoryGraph lrg,
byte[] state) |
StyleProvider |
getStyle(RegulatoryGraph lrg,
int[] state) |
StyleProvider |
getStyle(RegulatoryGraph lrg,
org.colomoto.biolqm.tool.trapspaces.TrapSpace trap) |
String |
getSVG(Graph graph)
Get a SVG representation of the graph
|
String |
getSVG(Graph graph,
StyleProvider styler)
Get a SVG representation of the graph with a custom style
|
<N,E extends Edge<N>> |
rawPNG(Graph<N,E> graph) |
byte[] |
rawPNG(Graph lrg,
StyleProvider styleProvider) |
public <N,E extends Edge<N>> byte[] rawPNG(Graph<N,E> graph) throws IOException
IOException
public StyleProvider getStyle(RegulatoryGraph lrg, byte[] state)
public StyleProvider getStyle(RegulatoryGraph lrg, int[] state)
public StyleProvider getStyle(RegulatoryGraph lrg, org.colomoto.biolqm.tool.trapspaces.TrapSpace trap)
public LRGCustomStyleProvider customStyleProvider(RegulatoryGraph lrg)
public byte[] rawPNG(Graph lrg, StyleProvider styleProvider) throws IOException
IOException
public void exportPNG(Graph<?,Edge<?>> graph, String fileName)
graph
- fileName
- public void exportPNG(Graph<?,Edge<?>> graph, String fileName, int f)
graph
- fileName
- f
- the zoom factorpublic BufferedImage getPNG(Graph<?,?> graph, int f)
public String getSVG(Graph graph, StyleProvider styler) throws IOException
graph
- the graph to exportstyler
- provide styling rulesIOException
public String getSVG(Graph graph) throws IOException
graph
- the graph to exportIOException
public void exportSVG(Graph graph, String fileName) throws IOException
graph
- the graph to exportfileName
- the path to the output fileIOException
public void exportSVG(Graph graph, StyleProvider styler, String fileName) throws IOException
graph
- the graph to exportstyler
- custom stylefileName
- the path to the output fileIOException
public void exportSVG(Graph graph, Collection nodes, Collection<Edge> edges, String fileName) throws IOException
graph
- the graph to exportnodes
- the list of nodes that must be exportededges
- the list of edges that must be exportedfileName
- the path to the output fileIOException
Copyright © 2005–2020. All rights reserved.