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.

    Module: presentation-api

    To use this in your app, include the following dependency in your POM:


    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 Detail

      • getBounds2D

        Rectangle2D getBounds2D()
        Return the bounds of the area covered by this CustomGraphicLayer as a java.awt.Rectangle2D
        the java.awt.Rectangle2D
      • transform

        CustomGraphicLayer transform​(AffineTransform xform)
        Return a new CustomGraphicLayer that has been transformed by the provided AffineTransform.
        xform - transform to perform on the shape
        the transformed CustomGraphicLayer