|
Cytoscape 2.8.0 API | |||||||||
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
|
static int |
VEE
|
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()
Deprecated. |
double |
getLabelOffsetY()
Deprecated. |
ObjectPosition |
getLabelPosition()
Returns current label position as ObjkectPosition object. |
double |
getLabelWidth()
|
Node |
getNode()
|
int |
getNodeLabelAnchor()
Deprecated. |
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 |
isHidden()
|
boolean |
isSelected()
|
boolean |
nestedNetworkIsVisible()
Determines whether a nested network should be rendered as part of a node's view or not. |
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)
Deprecated. |
void |
setLabelOffsetY(double y)
Deprecated. |
void |
setLabelPosition(ObjectPosition position)
Set current label position. |
void |
setLabelWidth(double width)
|
void |
setNodeLabelAnchor(int position)
Deprecated. |
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.. |
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.. |
void |
showNestedNetwork(boolean makeVisible)
Set the visibility of a node's nested network when rendered. |
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
static final int VEE
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)
boolean isHidden()
void setShape(int shape)
void setToolTip(String tip)
ObjectPosition getLabelPosition()
void setLabelPosition(ObjectPosition position)
position
- @Deprecated void setLabelOffsetX(double x)
@Deprecated void setLabelOffsetY(double y)
@Deprecated void setNodeLabelAnchor(int position)
@Deprecated double getLabelOffsetX()
@Deprecated double getLabelOffsetY()
@Deprecated int getNodeLabelAnchor()
double getLabelWidth()
void setLabelWidth(double width)
boolean nestedNetworkIsVisible()
void showNestedNetwork(boolean makeVisible)
makeVisible
- forces the visibility of a nested network.
Please note that this call has no effect if a node has no associated nested network!
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |