|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TextAnnotation
A text annotation is a simple text string that is displayed on the network canvas. The text may be rendered using different colors and styles, but at this point, the colors and styles of the text may not be varied within the string.
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 | |
---|---|
Font |
getFont()
Get the font being used |
String |
getFontFamily()
Get the font family to be used for the text display |
double |
getFontSize()
Get the size of the font used to display the text |
int |
getFontStyle()
Get the font style |
String |
getText()
Get the text to be displayed as part of the annotation |
Color |
getTextColor()
Get the color of the text to be displayed |
void |
setFont(Font font)
Set the font to be used. |
void |
setFontFamily(String family)
Set the font family to be used for the text display |
void |
setFontSize(double size)
Set the size of the font used to display the text |
void |
setFontStyle(int style)
Set the font style |
void |
setText(String text)
Set the text to be displayed as part of the annotation |
void |
setTextColor(Color color)
Set the color of the text to be displayed |
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 |
---|
void setText(String text)
text
- the text annotationString getText()
void setTextColor(Color color)
color
- the text colorColor getTextColor()
void setFontSize(double size)
size
- the size of the fontdouble getFontSize()
void setFontStyle(int style)
style
- the font styleint getFontStyle()
void setFontFamily(String family)
family
- the font family to useString getFontFamily()
Font getFont()
void setFont(Font font)
font
- the text font to use
|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |