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