Cytoscape 3.0.1 API

org.cytoscape.view.presentation.customgraphics
Interface PaintedShape

All Superinterfaces:
CustomGraphicLayer

public interface PaintedShape
extends CustomGraphicLayer

This interface defines a the information required to construct a Shape that has an arbitrary fill Paint and Stroke.


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
 Paint getPaint()
          Return the Paint to fill the shape with.
 Shape getShape()
          Return the Shape
 Stroke getStroke()
          Return the Stroke to use to outline the Shape provided by the getShape() method above.
 Paint getStrokePaint()
          Return the Paint to use to color the Stroke returned by getStroke().
 
Methods inherited from interface org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer
getBounds2D, getPaint, transform
 

Method Detail

getShape

Shape getShape()
Return the Shape

Returns:
the Shape

getPaint

Paint getPaint()
Return the Paint to fill the shape with. This is a convenience method that is essentially the same as calling getPaint(getShape().getBounds());

Returns:
the Paint

getStroke

Stroke getStroke()
Return the Stroke to use to outline the Shape provided by the getShape() method above.

Returns:
the Stroke to use.

getStrokePaint

Paint getStrokePaint()
Return the Paint to use to color the Stroke returned by getStroke().

Returns:
the stroke Paint

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.