public interface ShapeAnnotation extends Annotation
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>BACKGROUND, CANVAS, FOREGROUND, X, Y, ZOOM| Modifier and Type | Method and Description |
|---|---|
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.
|
addArrow, getArgMap, getArrows, getCanvasName, getNetworkView, getSpecificZoom, getZoom, isSelected, moveAnnotation, removeArrow, setCanvas, setSelected, setSpecificZoom, setZoomList<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 drawnCopyright 2011 Cytoscape Consortium. All rights reserved.