|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EdgeView
Field Summary | |
---|---|
static int |
BLACK_ARROW
|
static int |
BLACK_CIRCLE
|
static int |
BLACK_DELTA
|
static int |
BLACK_DIAMOND
|
static int |
BLACK_T
|
static int |
CURVED_LINES
Draws splined curves for edges. |
static int |
EDGE_COLOR_ARROW
|
static int |
EDGE_COLOR_CIRCLE
|
static int |
EDGE_COLOR_DELTA
|
static int |
EDGE_COLOR_DIAMOND
|
static int |
EDGE_COLOR_T
|
static int |
EDGE_HALF_ARROW_BOTTOM
|
static int |
EDGE_HALF_ARROW_TOP
|
static int |
NO_END
|
static int |
STRAIGHT_LINES
Draws straight lines for edges. |
static int |
WHITE_ARROW
|
static int |
WHITE_CIRCLE
|
static int |
WHITE_DELTA
|
static int |
WHITE_DIAMOND
|
static int |
WHITE_T
|
Method Summary | |
---|---|
void |
clearBends()
|
void |
drawSelected()
Draws the edge as red and draws any handles previously added. |
void |
drawUnselected()
Draws the edge as black and removes any handles from the display. |
Bend |
getBend()
|
Edge |
getEdge()
|
int |
getEdgeLabelAnchor()
|
int |
getGraphPerspectiveIndex()
|
GraphView |
getGraphView()
|
Label |
getLabel()
|
double |
getLabelOffsetX()
|
double |
getLabelOffsetY()
|
double |
getLabelWidth()
|
int |
getLineType()
|
int |
getRootGraphIndex()
|
boolean |
getSelected()
|
Paint |
getSelectedPaint()
This really refers to the Stroke, TODO: Make separte stroke methods |
int |
getSourceEdgeEnd()
Return the Drawing style for the edge end. |
Paint |
getSourceEdgeEndPaint()
|
Paint |
getSourceEdgeEndSelectedPaint()
|
Stroke |
getStroke()
|
float |
getStrokeWidth()
|
int |
getTargetEdgeEnd()
REturn the Drawing style for the edge end. |
Paint |
getTargetEdgeEndPaint()
|
Paint |
getTargetEdgeEndSelectedPaint()
|
Paint |
getUnselectedPaint()
This really refers to the Stroke, TODO: Make separte stroke methods |
boolean |
isHidden()
|
boolean |
isSelected()
|
void |
select()
|
void |
setEdgeLabelAnchor(int position)
|
void |
setLabelOffsetX(double x)
|
void |
setLabelOffsetY(double y)
|
void |
setLabelWidth(double width)
|
void |
setLineType(int line_type)
|
boolean |
setSelected(boolean state)
When we are selected then we draw ourselves red, and draw any handles. |
void |
setSelectedPaint(Paint paint)
This really refers to the Stroke, TODO: Make separte stroke methods |
void |
setSourceEdgeEnd(int type)
Sets the Drawing style for the edge end. |
void |
setSourceEdgeEndPaint(Paint paint)
|
void |
setSourceEdgeEndSelectedPaint(Paint paint)
|
void |
setSourceEdgeEndStrokePaint(Paint paint)
|
void |
setStroke(Stroke stroke)
|
void |
setStrokeWidth(float width)
|
void |
setTargetEdgeEnd(int type)
Sets the Drawing style for the edge end. |
void |
setTargetEdgeEndPaint(Paint paint)
|
void |
setTargetEdgeEndSelectedPaint(Paint paint)
|
void |
setTargetEdgeEndStrokePaint(Paint paint)
|
void |
setToolTip(String tip)
Sets what the tooltip will be for this EdgeView |
void |
setUnselectedPaint(Paint paint)
This really refers to the Stroke, TODO: Make separte stroke methods |
void |
unselect()
|
void |
updateEdgeView()
This is the main method called to update the drawing of the edge. |
void |
updateLine()
Draws the Edge |
void |
updateSourceArrow()
Draws the EdgeEnd, also sets the Source/Target Points to values such that the edge does not "go through" the end |
void |
updateTargetArrow()
Draws the EdgeEnd, also sets the Source/Target Points to values such that the edge does not "go through" the end |
Field Detail |
---|
static final int CURVED_LINES
static final int STRAIGHT_LINES
static final int NO_END
static final int WHITE_DELTA
static final int BLACK_DELTA
static final int EDGE_COLOR_DELTA
static final int WHITE_ARROW
static final int BLACK_ARROW
static final int EDGE_COLOR_ARROW
static final int WHITE_DIAMOND
static final int BLACK_DIAMOND
static final int EDGE_COLOR_DIAMOND
static final int WHITE_CIRCLE
static final int BLACK_CIRCLE
static final int EDGE_COLOR_CIRCLE
static final int WHITE_T
static final int BLACK_T
static final int EDGE_COLOR_T
static final int EDGE_HALF_ARROW_TOP
static final int EDGE_HALF_ARROW_BOTTOM
Method Detail |
---|
int getGraphPerspectiveIndex()
int getRootGraphIndex()
Edge getEdge()
GraphView getGraphView()
void setStrokeWidth(float width)
width
- set a new line width for this edgefloat getStrokeWidth()
void setStroke(Stroke stroke)
stroke
- the stroke to use on this edgeStroke getStroke()
void setLineType(int line_type)
line_type
- set a new line type for the edgeint getLineType()
void setUnselectedPaint(Paint paint)
paint
- the paint for this nodePaint getUnselectedPaint()
void setSelectedPaint(Paint paint)
paint
- the paint for this nodePaint getSelectedPaint()
Paint getSourceEdgeEndPaint()
Paint getSourceEdgeEndSelectedPaint()
Paint getTargetEdgeEndPaint()
Paint getTargetEdgeEndSelectedPaint()
void setSourceEdgeEndSelectedPaint(Paint paint)
paint
- set the value for the source edge end when selectedvoid setTargetEdgeEndSelectedPaint(Paint paint)
paint
- set the value for the target edge end when selectedvoid setSourceEdgeEndStrokePaint(Paint paint)
paint
- the new paint for the stroke of the source eged endvoid setTargetEdgeEndStrokePaint(Paint paint)
paint
- the new paint for the stroke of the target eged endvoid setSourceEdgeEndPaint(Paint paint)
paint
- set the value for the source edge endvoid setTargetEdgeEndPaint(Paint paint)
paint
- set the value for the target edge endvoid select()
void unselect()
boolean setSelected(boolean state)
boolean isSelected()
boolean getSelected()
boolean isHidden()
void updateEdgeView()
void updateTargetArrow()
void updateSourceArrow()
void setSourceEdgeEnd(int type)
void setTargetEdgeEnd(int type)
int getSourceEdgeEnd()
int getTargetEdgeEnd()
void updateLine()
void drawSelected()
void drawUnselected()
Bend getBend()
void clearBends()
Label getLabel()
void setToolTip(String tip)
void setLabelOffsetX(double x)
void setLabelOffsetY(double y)
void setEdgeLabelAnchor(int position)
double getLabelOffsetX()
double getLabelOffsetY()
int getEdgeLabelAnchor()
double getLabelWidth()
void setLabelWidth(double width)
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |