|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
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 |
getGraphPerspectiveIndex()
|
GraphView |
getGraphView()
|
Label |
getLabel()
|
int |
getLineType()
|
int |
getRootGraphIndex()
|
boolean |
getSelected()
|
java.awt.Paint |
getSelectedPaint()
This really refers to the Stroke, TODO: Make separte stroke methods |
int |
getSourceEdgeEnd()
Return the Drawing style for the edge end. |
java.awt.Paint |
getSourceEdgeEndPaint()
|
java.awt.Paint |
getSourceEdgeEndSelectedPaint()
|
java.awt.Stroke |
getStroke()
|
float |
getStrokeWidth()
|
int |
getTargetEdgeEnd()
REturn the Drawing style for the edge end. |
java.awt.Paint |
getTargetEdgeEndPaint()
|
java.awt.Paint |
getTargetEdgeEndSelectedPaint()
|
java.awt.Paint |
getUnselectedPaint()
This really refers to the Stroke, TODO: Make separte stroke methods |
boolean |
isSelected()
|
void |
select()
|
void |
setLineType(int line_type)
|
boolean |
setSelected(boolean state)
When we are selected then we draw ourselves red, and draw any handles. |
void |
setSelectedPaint(java.awt.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(java.awt.Paint paint)
|
void |
setSourceEdgeEndSelectedPaint(java.awt.Paint paint)
|
void |
setSourceEdgeEndStrokePaint(java.awt.Paint paint)
|
void |
setStroke(java.awt.Stroke stroke)
|
void |
setStrokeWidth(float width)
|
void |
setTargetEdgeEnd(int type)
Sets the Drawing style for the edge end. |
void |
setTargetEdgeEndPaint(java.awt.Paint paint)
|
void |
setTargetEdgeEndSelectedPaint(java.awt.Paint paint)
|
void |
setTargetEdgeEndStrokePaint(java.awt.Paint paint)
|
void |
setToolTip(java.lang.String tip)
Sets what the tooltip will be for this EdgeView |
void |
setUnselectedPaint(java.awt.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 |
public static final int CURVED_LINES
public static final int STRAIGHT_LINES
public static final int NO_END
public static final int WHITE_DELTA
public static final int BLACK_DELTA
public static final int EDGE_COLOR_DELTA
public static final int WHITE_ARROW
public static final int BLACK_ARROW
public static final int EDGE_COLOR_ARROW
public static final int WHITE_DIAMOND
public static final int BLACK_DIAMOND
public static final int EDGE_COLOR_DIAMOND
public static final int WHITE_CIRCLE
public static final int BLACK_CIRCLE
public static final int EDGE_COLOR_CIRCLE
public static final int WHITE_T
public static final int BLACK_T
public static final int EDGE_COLOR_T
Method Detail |
public int getGraphPerspectiveIndex()
public int getRootGraphIndex()
public Edge getEdge()
public GraphView getGraphView()
public void setStrokeWidth(float width)
width
- set a new line width for this edgepublic float getStrokeWidth()
public void setStroke(java.awt.Stroke stroke)
stroke
- the stroke to use on this edgepublic java.awt.Stroke getStroke()
public void setLineType(int line_type)
line_type
- set a new line type for the edgepublic int getLineType()
public void setUnselectedPaint(java.awt.Paint paint)
paint
- the paint for this nodepublic java.awt.Paint getUnselectedPaint()
public void setSelectedPaint(java.awt.Paint paint)
paint
- the paint for this nodepublic java.awt.Paint getSelectedPaint()
public java.awt.Paint getSourceEdgeEndPaint()
public java.awt.Paint getSourceEdgeEndSelectedPaint()
public java.awt.Paint getTargetEdgeEndPaint()
public java.awt.Paint getTargetEdgeEndSelectedPaint()
public void setSourceEdgeEndSelectedPaint(java.awt.Paint paint)
paint
- set the value for the source edge end when selectedpublic void setTargetEdgeEndSelectedPaint(java.awt.Paint paint)
paint
- set the value for the target edge end when selectedpublic void setSourceEdgeEndStrokePaint(java.awt.Paint paint)
paint
- the new paint for the stroke of the source eged endpublic void setTargetEdgeEndStrokePaint(java.awt.Paint paint)
paint
- the new paint for the stroke of the target eged endpublic void setSourceEdgeEndPaint(java.awt.Paint paint)
paint
- set the value for the source edge endpublic void setTargetEdgeEndPaint(java.awt.Paint paint)
paint
- set the value for the target edge endpublic void select()
public void unselect()
public boolean setSelected(boolean state)
public boolean isSelected()
public boolean getSelected()
public void updateEdgeView()
public void updateTargetArrow()
public void updateSourceArrow()
public void setSourceEdgeEnd(int type)
public void setTargetEdgeEnd(int type)
public int getSourceEdgeEnd()
public int getTargetEdgeEnd()
public void updateLine()
public void drawSelected()
public void drawUnselected()
public Bend getBend()
public void clearBends()
public Label getLabel()
public void setToolTip(java.lang.String tip)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |