|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeView
Any and all questions should be directed to me.
Field Summary | |
---|---|
static int |
DIAMOND
|
static int |
ELLIPSE
|
static int |
HEXAGON
|
static int |
OCTAGON
|
static int |
PARALELLOGRAM
|
static int |
RECTANGLE
|
static int |
ROUNDED_RECTANGLE
|
static int |
TRIANGLE
|
Method Summary | |
---|---|
Stroke |
getBorder()
|
Paint |
getBorderPaint()
|
float |
getBorderWidth()
|
int |
getDegree()
|
List |
getEdgeViewsList(NodeView otherNode)
|
int |
getGraphPerspectiveIndex()
|
GraphView |
getGraphView()
|
double |
getHeight()
TODO: Reconcile with Border Methods |
Label |
getLabel()
|
double |
getLabelOffsetX()
|
double |
getLabelOffsetY()
|
Node |
getNode()
|
int |
getNodeLabelAnchor()
|
Point2D |
getOffset()
|
int |
getRootGraphIndex()
|
Paint |
getSelectedPaint()
|
int |
getShape()
Shape is currently defined via predefined variables in the NodeView interface. |
float |
getTransparency()
|
Paint |
getUnselectedPaint()
|
double |
getWidth()
TODO: Reconcile with Border Methods |
double |
getXPosition()
note that unless updateNode() has been called, this may not be the "real" location of this node |
double |
getYPosition()
note that unless updateNode() has been called, this may not be the "real" location of this node |
boolean |
isSelected()
|
void |
select()
This draws us as selected |
void |
setBorder(Stroke stroke)
|
void |
setBorderPaint(Paint b_paint)
|
void |
setBorderWidth(float border_width)
|
boolean |
setHeight(double height)
TODO: Reconcile with Border Methods |
void |
setLabelOffsetX(double x)
|
void |
setLabelOffsetY(double y)
|
void |
setNodeLabelAnchor(int position)
|
void |
setNodePosition(boolean animate)
moves this node to its stored x and y locations. |
void |
setOffset(double x,
double y)
|
boolean |
setSelected(boolean selected)
|
void |
setSelectedPaint(Paint paint)
This sets the Paint that will be used by this node when it is painted as selected. |
void |
setShape(int shape)
Set a new shape for the Node, based on one of the pre-defined shapes Note: calling setPathTo( Shape ), allows one to define their own java.awt.Shape ( i.e. |
void |
setToolTip(String tip)
Sets what the tooltip will be for this NodeView |
void |
setTransparency(float trans)
|
void |
setUnselectedPaint(Paint paint)
Set the deafult paint of this node |
boolean |
setWidth(double width)
TODO: Reconcile with Border Methods |
void |
setXPosition(double new_x_position)
|
void |
setXPosition(double new_x_position,
boolean update)
Set udpdate to false in order to do a layout, and then call updateNode on all the nodes.. // TODO -- HACKY |
void |
setYPosition(double new_y_position)
|
void |
setYPosition(double new_y_position,
boolean update)
Set udpdate to false in order to do a layout, and then call updateNode on all the nodes.. // TODO -- HACKY |
void |
unselect()
This draws us as unselected |
Field Detail |
---|
static final int TRIANGLE
static final int DIAMOND
static final int ELLIPSE
static final int HEXAGON
static final int OCTAGON
static final int PARALELLOGRAM
static final int RECTANGLE
static final int ROUNDED_RECTANGLE
Method Detail |
---|
GraphView getGraphView()
Node getNode()
int getGraphPerspectiveIndex()
int getRootGraphIndex()
List getEdgeViewsList(NodeView otherNode)
int getShape()
void setSelectedPaint(Paint paint)
paint
- The Paint to be usedPaint getSelectedPaint()
void setUnselectedPaint(Paint paint)
paint
- the default Paint of this nodePaint getUnselectedPaint()
void setBorderPaint(Paint b_paint)
b_paint
- the paint the border will usePaint getBorderPaint()
void setBorderWidth(float border_width)
border_width
- The width of the border.float getBorderWidth()
void setBorder(Stroke stroke)
stroke
- the new stroke for the borderStroke getBorder()
void setTransparency(float trans)
trans
- new value for the transparencyfloat getTransparency()
boolean setWidth(double width)
width
- the currently set width of this nodedouble getWidth()
boolean setHeight(double height)
height
- the currently set height of this nodedouble getHeight()
Label getLabel()
int getDegree()
void setOffset(double x, double y)
Point2D getOffset()
void setXPosition(double new_x_position)
new_x_position
- the new X position for this nodevoid setXPosition(double new_x_position, boolean update)
new_x_position
- for this nodeupdate
- if this is true, the node will move immediatly.double getXPosition()
setXPosition(double)
void setYPosition(double new_y_position)
new_y_position
- the new Y position for this nodevoid setYPosition(double new_y_position, boolean update)
new_y_position
- for this nodeupdate
- if this is true, the node will move immediatly.double getYPosition()
setYPosition(double)
void setNodePosition(boolean animate)
void select()
void unselect()
boolean isSelected()
boolean setSelected(boolean selected)
void setShape(int shape)
void setToolTip(String tip)
void setLabelOffsetX(double x)
void setLabelOffsetY(double y)
void setNodeLabelAnchor(int position)
double getLabelOffsetX()
double getLabelOffsetY()
int getNodeLabelAnchor()
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |