T
- source data object to be visualized. For now we have only one
implementation for CyNetwork
, but it
can be anything, including CyTable
.public interface RenderingEngine<T> extends CyDisposable
Module: presentation-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>presentation-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
<V> Icon |
createIcon(VisualProperty<V> vp,
V value,
int width,
int height)
Create
Icon object for the given VisualProperty value. |
Image |
createImage(int width,
int height)
Render an Image object from current visualization.
|
Printable |
createPrintable()
For export image function.
|
Properties |
getProperties()
Get property values for the rendering engine, like LOD.
|
String |
getRendererId()
This method must return the same ID which is returned by the associated
implementation of NetworkViewRenderer.
|
View<T> |
getViewModel()
Returns View being rendered.
|
VisualLexicon |
getVisualLexicon()
Provide all compatible Visual Properties as a VisualLexicon.
|
void |
printCanvas(Graphics printCanvas)
Render presentation on the given Java 2D Canvas.
|
dispose
View<T> getViewModel()
VisualLexicon getVisualLexicon()
Properties getProperties()
Printable createPrintable()
Image createImage(int width, int height)
width
- width of the imageheight
- height of the image<V> Icon createIcon(VisualProperty<V> vp, V value, int width, int height)
Icon
object for the given VisualProperty value.V
- Data type, such as Color, String, Double, etc.vp
- VisualProperty to be rendered as Icon.value
- Value for the Icon. For example, if V is shape, this can be rectangle, triangle, and so on.width
- width of the iconheight
- height of the iconvoid printCanvas(Graphics printCanvas)
printCanvas
- Graphics object provided by vectorString getRendererId()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.