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

cytoscape.visual
Class LabelPosition

java.lang.Object
  extended by cytoscape.visual.LabelPosition

public class LabelPosition
extends Object


Field Summary
static String centerName
           
static LabelPosition DEFAULT
           
static String eastName
           
static String justifyCenterName
           
static String justifyLeftName
           
static String justifyRightName
           
static String noName
           
static String northEastName
           
static String northName
           
static String northWestName
           
static String southEastName
           
static String southName
           
static String southWestName
           
static String westName
           
 
Constructor Summary
LabelPosition()
          Creates a new LabelPosition object.
LabelPosition(int targ, int lab, int just, double x, double y)
          Creates a new LabelPosition object.
LabelPosition(LabelPosition lp)
          Creates a new LabelPosition object.
 
Method Summary
static String convert(int b)
          DOCUMENT ME!
static int convert(String s)
          DOCUMENT ME!
 boolean equals(Object lp)
          DOCUMENT ME!
static String[] getAnchorNames()
          DOCUMENT ME!
 int getJustify()
          DOCUMENT ME!
static String[] getJustifyNames()
          DOCUMENT ME!
 int getLabelAnchor()
          DOCUMENT ME!
 double getOffsetX()
          DOCUMENT ME!
 double getOffsetY()
          DOCUMENT ME!
 int getTargetAnchor()
          DOCUMENT ME!
static LabelPosition parse(String value)
          DOCUMENT ME!
 void setJustify(int b)
          DOCUMENT ME!
 void setLabelAnchor(int b)
          DOCUMENT ME!
 void setOffsetX(double d)
          DOCUMENT ME!
 void setOffsetY(double d)
          DOCUMENT ME!
 void setTargetAnchor(int b)
          DOCUMENT ME!
 String shortString()
          DOCUMENT ME!
 String toString()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

northWestName

public static final String northWestName
See Also:
Constant Field Values

northName

public static final String northName
See Also:
Constant Field Values

northEastName

public static final String northEastName
See Also:
Constant Field Values

westName

public static final String westName
See Also:
Constant Field Values

centerName

public static final String centerName
See Also:
Constant Field Values

eastName

public static final String eastName
See Also:
Constant Field Values

southWestName

public static final String southWestName
See Also:
Constant Field Values

southName

public static final String southName
See Also:
Constant Field Values

southEastName

public static final String southEastName
See Also:
Constant Field Values

noName

public static final String noName
See Also:
Constant Field Values

justifyCenterName

public static final String justifyCenterName
See Also:
Constant Field Values

justifyLeftName

public static final String justifyLeftName
See Also:
Constant Field Values

justifyRightName

public static final String justifyRightName
See Also:
Constant Field Values

DEFAULT

public static final LabelPosition DEFAULT
Constructor Detail

LabelPosition

public LabelPosition()
Creates a new LabelPosition object.


LabelPosition

public LabelPosition(LabelPosition lp)
Creates a new LabelPosition object.

Parameters:
lp - DOCUMENT ME!

LabelPosition

public LabelPosition(int targ,
                     int lab,
                     int just,
                     double x,
                     double y)
Creates a new LabelPosition object.

Parameters:
targ - DOCUMENT ME!
lab - DOCUMENT ME!
just - DOCUMENT ME!
x - DOCUMENT ME!
y - DOCUMENT ME!
Method Detail

getLabelAnchor

public int getLabelAnchor()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getTargetAnchor

public int getTargetAnchor()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getJustify

public int getJustify()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getOffsetX

public double getOffsetX()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getOffsetY

public double getOffsetY()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setLabelAnchor

public void setLabelAnchor(int b)
DOCUMENT ME!

Parameters:
b - DOCUMENT ME!

setTargetAnchor

public void setTargetAnchor(int b)
DOCUMENT ME!

Parameters:
b - DOCUMENT ME!

setJustify

public void setJustify(int b)
DOCUMENT ME!

Parameters:
b - DOCUMENT ME!

setOffsetX

public void setOffsetX(double d)
DOCUMENT ME!

Parameters:
d - DOCUMENT ME!

setOffsetY

public void setOffsetY(double d)
DOCUMENT ME!

Parameters:
d - DOCUMENT ME!

equals

public boolean equals(Object lp)
DOCUMENT ME!

Overrides:
equals in class Object
Parameters:
lp - DOCUMENT ME!
Returns:
DOCUMENT ME!

convert

public static String convert(int b)
DOCUMENT ME!

Parameters:
b - DOCUMENT ME!
Returns:
DOCUMENT ME!

convert

public static int convert(String s)
DOCUMENT ME!

Parameters:
s - DOCUMENT ME!
Returns:
DOCUMENT ME!

getJustifyNames

public static String[] getJustifyNames()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getAnchorNames

public static String[] getAnchorNames()
DOCUMENT ME!

Returns:
DOCUMENT ME!

toString

public String toString()
DOCUMENT ME!

Overrides:
toString in class Object
Returns:
DOCUMENT ME!

shortString

public String shortString()
DOCUMENT ME!

Returns:
DOCUMENT ME!

parse

public static LabelPosition parse(String value)
DOCUMENT ME!

Parameters:
value - DOCUMENT ME!
Returns:
DOCUMENT ME!

www.cytoscape.org