Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

giny.view
Interface Label

All Known Implementing Classes:
DNodeView

public interface Label


Field Summary
static int CENTER
           
static int EAST
           
static int JUSTIFY_CENTER
           
static int JUSTIFY_LEFT
           
static int JUSTIFY_RIGHT
           
static int NONE
           
static int NORTH
           
static int NORTHEAST
           
static int NORTHWEST
           
static int SOURCE_BOUND
           
static int SOUTH
           
static int SOUTHEAST
           
static int SOUTHWEST
           
static int TARGET_BOUND
           
static int WEST
           
 
Method Summary
 Font getFont()
          Returns the font of this PText.
 double getGreekThreshold()
          Returns the current greek threshold.
 int getJustify()
           
 String getText()
           
 int getTextAnchor()
           
 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)
           
 void setText(String aText)
          Set the text for this node.
 void setTextAnchor(int position)
           
 void setTextPaint(Paint textPaint)
          Set the paint used to paint this nodes text.
 

Field Detail

NORTHWEST

static final int NORTHWEST
See Also:
Constant Field Values

NORTH

static final int NORTH
See Also:
Constant Field Values

NORTHEAST

static final int NORTHEAST
See Also:
Constant Field Values

WEST

static final int WEST
See Also:
Constant Field Values

CENTER

static final int CENTER
See Also:
Constant Field Values

EAST

static final int EAST
See Also:
Constant Field Values

SOUTHWEST

static final int SOUTHWEST
See Also:
Constant Field Values

SOUTH

static final int SOUTH
See Also:
Constant Field Values

SOUTHEAST

static final int SOUTHEAST
See Also:
Constant Field Values

SOURCE_BOUND

static final int SOURCE_BOUND
See Also:
Constant Field Values

TARGET_BOUND

static final int TARGET_BOUND
See Also:
Constant Field Values

JUSTIFY_CENTER

static final int JUSTIFY_CENTER
See Also:
Constant Field Values

JUSTIFY_LEFT

static final int JUSTIFY_LEFT
See Also:
Constant Field Values

JUSTIFY_RIGHT

static final int JUSTIFY_RIGHT
See Also:
Constant Field Values

NONE

static final int NONE
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.


setTextAnchor

void setTextAnchor(int position)

getTextAnchor

int getTextAnchor()

setJustify

void setJustify(int justify)

getJustify

int getJustify()

www.cytoscape.org