public interface ImageAnnotation extends ShapeAnnotation
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>
ShapeAnnotation.ShapeType
Modifier and Type | Field and Description |
---|---|
static String |
CONTRAST
This value allows the image contrast to be adjusted
|
static String |
LIGHTNESS
This value allows the image brighteness to be adjusted
|
static String |
OPACITY
The opacity of the image.
|
static String |
URL
The URL that points to the image.
|
CUSTOMSHAPE, EDGECOLOR, EDGEOPACITY, EDGETHICKNESS, FILLCOLOR, FILLOPACITY, HEIGHT, SHAPETYPE, WIDTH
BACKGROUND, CANVAS, FOREGROUND, NAME, X, Y, Z, ZOOM
Modifier and Type | Method and Description |
---|---|
Image |
getImage()
Return the image currently assigned to this annotation
|
int |
getImageBrightness()
Return the brightness adjustment for this image.
|
int |
getImageContrast()
Return the contrast adjustment for this image
|
float |
getImageOpacity()
Return the current opacity of the image.
|
URL |
getImageURL()
Get the
URL for the image to be displayed |
void |
setImage(Image image)
Set the image to be displayed as part of this annotation
|
void |
setImage(URL url)
Set a
URL to fetch the image from. |
void |
setImageBrightness(int brightness)
Set the brightness adjustment for the image.
|
void |
setImageContrast(int contrast)
Set the contrast adjustment for the image.
|
void |
setImageOpacity(float opacity)
Set the opacity of the image.
|
getBorderColor, getBorderOpacity, getBorderWidth, getFillColor, getFillOpacity, getShape, getShapeType, getSupportedShapes, setBorderColor, setBorderOpacity, setBorderWidth, setCustomShape, setFillColor, setFillOpacity, setShapeType, setSize
addArrow, getArgMap, getArrows, getCanvasName, getName, getNetworkView, getSpecificZoom, getUUID, getZoom, isSelected, moveAnnotation, removeAnnotation, removeArrow, setCanvas, setName, setSelected, setSpecificZoom, setZoom, update
static final String URL
static final String OPACITY
static final String CONTRAST
static final String LIGHTNESS
Image getImage()
void setImage(Image image)
image
- the image to be displayedvoid setImage(URL url)
URL
to fetch the image from.url
- the URL
of the image to be displayedvoid setImageOpacity(float opacity)
opacity
- the opacity of the imagefloat getImageOpacity()
void setImageBrightness(int brightness)
brightness
- the brightness adjustment for the imageint getImageBrightness()
void setImageContrast(int contrast)
contrast
- the contrast adjustment for the imageint getImageContrast()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.