public interface Cy2DGraphicLayer extends CustomGraphicLayer
CyNetworkView
's Graphics2D
object.CyCustomGraphics2
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 |
---|---|
void |
draw(Graphics2D g,
Shape shape,
CyNetworkView networkView,
View<? extends CyIdentifiable> view)
This method is called by Cytoscape when a
CyNetworkView is being updated in order to let the
custom graphics draw onto its Graphics2D object. |
getBounds2D, getPaint, transform
void draw(Graphics2D g, Shape shape, CyNetworkView networkView, View<? extends CyIdentifiable> view)
CyNetworkView
is being updated in order to let the
custom graphics draw onto its Graphics2D
object.g
- The graphics object to draw ontoshape
- The node view's shape or the edge or network view's bounding boxnetworkView
- The network view being updatedview
- The view object that has this layer's CyCustomGraphics
as a visual property value
(so far, only CyNode views are supported by Cytoscape's default
RenderingEngine
)Copyright 2011-2015 Cytoscape Consortium. All rights reserved.