|
Cytoscape 3.1.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ShapeAnnotation
A Shape annotation supports annotations that can be drawn and filled on the graphics canvas. Shape annotations can also be resized and have separate colors for border and fill.
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>| Field Summary |
|---|
| Fields inherited from interface org.cytoscape.view.presentation.annotations.Annotation |
|---|
BACKGROUND, CANVAS, FOREGROUND, X, Y, ZOOM |
| Method Summary | |
|---|---|
Paint |
getBorderColor()
Get the border (stroke) color. |
double |
getBorderWidth()
Get the border (stroke) width. |
Paint |
getFillColor()
Get the fill color. |
Shape |
getShape()
Get the current shape as a Shape object |
String |
getShapeType()
Get the current shape type as a String |
List<String> |
getSupportedShapes()
Get the list of supported shapes. |
void |
setBorderColor(Paint border)
Set the border (stroke) color. |
void |
setBorderWidth(double width)
Set the border (stroke) width. |
void |
setCustomShape(Shape shape)
Set a custom shape to be drawn. |
void |
setFillColor(Paint fill)
Set the fill color. |
void |
setShapeType(String type)
Set the current shape type |
void |
setSize(double width,
double height)
Set the size of the shape. |
| Methods inherited from interface org.cytoscape.view.presentation.annotations.Annotation |
|---|
addArrow, getArgMap, getArrows, getCanvasName, getNetworkView, getSpecificZoom, getZoom, isSelected, moveAnnotation, removeArrow, setCanvas, setSelected, setSpecificZoom, setZoom |
| Method Detail |
|---|
List<String> getSupportedShapes()
void setSize(double width,
double height)
width - the shape widthheight - the shape heightString getShapeType()
void setShapeType(String type)
type - the shape typedouble getBorderWidth()
void setBorderWidth(double width)
width - the border widthPaint getBorderColor()
Paint getFillColor()
void setBorderColor(Paint border)
border - the border colorvoid setFillColor(Paint fill)
fill - the fill colorvoid setCustomShape(Shape shape)
shape - the custom shape to be drawnShape getShape()
Shape object
|
Cytoscape 3.1.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||