Interface PaintedShape
- All Superinterfaces:
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.
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
Methods inherited from interface org.cytoscape.view.presentation.customgraphics.CustomGraphicLayer
getBounds2D, getPaint, transform
-
Method Details
-
getShape
Shape getShape()Return theShape
- Returns:
- the
Shape
-
getPaint
Paint getPaint()Return thePaint
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()- Returns:
- the
Stroke
to use.
-
getStrokePaint
Paint getStrokePaint()- Returns:
- the stroke
Paint
-