Cytoscape 2.8.0 API

giny.view
Interface Label

All Known Implementing Classes:
DNodeView

public interface Label


Field Summary
static int CENTER
          Deprecated. 
static int EAST
          Deprecated. 
static int JUSTIFY_CENTER
          Deprecated. 
static int JUSTIFY_LEFT
          Deprecated. 
static int JUSTIFY_RIGHT
          Deprecated. 
static int NONE
          Deprecated. 
static int NORTH
          Deprecated. 
static int NORTHEAST
          Deprecated. 
static int NORTHWEST
          Deprecated. 
static int SOURCE_BOUND
           
static int SOUTH
          Deprecated. 
static int SOUTHEAST
          Deprecated. 
static int SOUTHWEST
          Deprecated. 
static int TARGET_BOUND
           
static int WEST
          Deprecated. 
 
Method Summary
 Font getFont()
          Returns the font of this PText.
 double getGreekThreshold()
          Returns the current greek threshold.
 int getJustify()
          Deprecated. 
 ObjectPosition getPosition()
           
 String getText()
           
 int getTextAnchor()
          Deprecated. 
 Paint getTextPaint()
          Get the paint used to paint this nodes text.
 void setFont(Font aFont)
          Set the font of this PText.
 void setGreekThreshold(double threshold)
          Sets the current greek threshold.
 void setJustify(int justify)
          Deprecated. 
 void setPosition(ObjectPosition p)
          Set position of label.
 void setText(String aText)
          Set the text for this node.
 void setTextAnchor(int position)
          Deprecated. 
 void setTextPaint(Paint textPaint)
          Set the paint used to paint this nodes text.
 

Field Detail

SOURCE_BOUND

static final int SOURCE_BOUND
See Also:
Constant Field Values

TARGET_BOUND

static final int TARGET_BOUND
See Also:
Constant Field Values

NORTHWEST

@Deprecated
static final int NORTHWEST
Deprecated. 
See Also:
Constant Field Values

NORTH

@Deprecated
static final int NORTH
Deprecated. 
See Also:
Constant Field Values

NORTHEAST

@Deprecated
static final int NORTHEAST
Deprecated. 
See Also:
Constant Field Values

WEST

@Deprecated
static final int WEST
Deprecated. 
See Also:
Constant Field Values

CENTER

@Deprecated
static final int CENTER
Deprecated. 
See Also:
Constant Field Values

EAST

@Deprecated
static final int EAST
Deprecated. 
See Also:
Constant Field Values

SOUTHWEST

@Deprecated
static final int SOUTHWEST
Deprecated. 
See Also:
Constant Field Values

SOUTH

@Deprecated
static final int SOUTH
Deprecated. 
See Also:
Constant Field Values

SOUTHEAST

@Deprecated
static final int SOUTHEAST
Deprecated. 
See Also:
Constant Field Values

JUSTIFY_CENTER

@Deprecated
static final int JUSTIFY_CENTER
Deprecated. 
See Also:
Constant Field Values

JUSTIFY_LEFT

@Deprecated
static final int JUSTIFY_LEFT
Deprecated. 
See Also:
Constant Field Values

JUSTIFY_RIGHT

@Deprecated
static final int JUSTIFY_RIGHT
Deprecated. 
See Also:
Constant Field Values

NONE

@Deprecated
static final int NONE
Deprecated. 
See Also:
Constant Field Values
Method Detail

getTextPaint

Paint getTextPaint()
Get the paint used to paint this nodes text.

Returns:
Paint

setTextPaint

void setTextPaint(Paint textPaint)
Set the paint used to paint this nodes text.

Parameters:
textPaint -

getGreekThreshold

double getGreekThreshold()
Returns the current greek threshold. When the screen font size will be below this threshold the text is rendered as 'greek' instead of drawing the text glyphs.


setGreekThreshold

void setGreekThreshold(double threshold)
Sets the current greek threshold. When the screen font size will be below this threshold the text is rendered as 'greek' instead of drawing the text glyphs.

Parameters:
threshold - minimum screen font size.

getText

String getText()

setText

void setText(String aText)
Set the text for this node. The text will be broken up into multiple lines based on the size of the text and the bounds width of this node.


getFont

Font getFont()
Returns the font of this PText.

Returns:
the font of this PText.

setFont

void setFont(Font aFont)
Set the font of this PText. Note that in Piccolo if you want to change the size of a text object it's often a better idea to scale the PText node instead of changing the font size to get that same effect. Using very large font sizes can slow performance.


setPosition

void setPosition(ObjectPosition p)
Set position of label. ObjectPosition is a consolidated data structure designed as the replacement of deprecated parameters below.

Parameters:
p -

getPosition

ObjectPosition getPosition()

setTextAnchor

@Deprecated
void setTextAnchor(int position)
Deprecated. 


getTextAnchor

@Deprecated
int getTextAnchor()
Deprecated. 


setJustify

@Deprecated
void setJustify(int justify)
Deprecated. 


getJustify

@Deprecated
int getJustify()
Deprecated. 


Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.