Interface ImageCustomGraphicLayer
- All Superinterfaces:
CustomGraphicLayer
This interface defines a
CustomGraphicLayer
that
paints an image on a node.Cytoscape Backwards Compatibility (SPI Interface): We expect that this interface will be implemented. Therefore to maintain backwards compatibility this interface will only be modified for major version updates.
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>
-
Method Summary
Modifier and TypeMethodDescriptiongetPaint(Rectangle2D bounds)
Return theTexturePaint
to be used as an image to fill a nodeMethods inherited from interface org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer
getBounds2D, transform
-
Method Details
-
getPaint
Return theTexturePaint
to be used as an image to fill a node- Specified by:
getPaint
in interfaceCustomGraphicLayer
- Parameters:
bounds
- the bounding box of theCyNode
.- Returns:
- the fill
TexturePaint
-