|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ImageAnnotation
This annotation positions an image on on the screen. In the current implementation, the image is always rectangular, so the {@link ShapeAnnotation#getSupportedShapes method will always return a list with a single value: "Rectangle". In the future, this might be expanded to support clipping to a shape.
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 | |
---|---|
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. |
Methods inherited from interface org.cytoscape.view.presentation.annotations.ShapeAnnotation |
---|
getBorderColor, getBorderWidth, getFillColor, getShape, getShapeType, getSupportedShapes, setBorderColor, setBorderWidth, setCustomShape, setFillColor, setShapeType, setSize |
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 |
---|
Image getImage()
void setImage(Image image)
image
- the image to be displayedURL getImageURL()
URL
for the image to be displayed
the
- image urlvoid 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()
|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |