Interface CustomGraphicLayer
- All Known Subinterfaces:
Cy2DGraphicLayer
,ImageCustomGraphicLayer
,PaintedShape
public interface CustomGraphicLayer
This interface defines the minimum interface to
add a custom graphics to a
CyNode
.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 TypeMethodDescriptionReturn the bounds of the area covered by this CustomGraphicLayer as ajava.awt.Rectangle2D
getPaint
(Rectangle2D bounds) transform
(AffineTransform xform) Return a new CustomGraphicLayer that has been transformed by the providedAffineTransform
.
-
Method Details
-
getBounds2D
Rectangle2D getBounds2D()Return the bounds of the area covered by this CustomGraphicLayer as ajava.awt.Rectangle2D
- Returns:
- the
java.awt.Rectangle2D
-
getPaint
-
transform
Return a new CustomGraphicLayer that has been transformed by the providedAffineTransform
.- Parameters:
xform
- transform to perform on the shape- Returns:
- the transformed CustomGraphicLayer
-