Cytoscape 3.0.1 API

org.cytoscape.view.presentation.customgraphics
Interface CustomGraphicLayer

All Known Subinterfaces:
ImageCustomGraphicLayer, PaintedShape

public interface CustomGraphicLayer

This interface defines a the mimimum 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.

Method Summary
 Rectangle2D getBounds2D()
          Return the bounds of the area covered by this CustomGraphicLayer as a Rectangle2D
 Paint getPaint(Rectangle2D bounds)
          Return the Paint to be used to fill the Shape.
 CustomGraphicLayer transform(AffineTransform xform)
          Return a new CustomGraphicLayer that has been transformed by the provided AffineTransform.
 

Method Detail

getBounds2D

Rectangle2D getBounds2D()
Return the bounds of the area covered by this CustomGraphicLayer as a Rectangle2D

Returns:
the Rectangle2D

getPaint

Paint getPaint(Rectangle2D bounds)
Return the Paint to be used to fill the Shape.

Parameters:
bounds - the bounding box of the CyNode.
Returns:
the fill Paint

transform

CustomGraphicLayer transform(AffineTransform xform)
Return a new CustomGraphicLayer that has been transformed by the provided AffineTransform.

Parameters:
xform - transform to perform on the shape
Returns:
the transformed CustomGraphicLayer

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.