|
|||||||||
| Home >> All >> giny >> [ view overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
giny.view
Interface EdgeView

- public interface EdgeView
| Field Summary | |
static int |
ARROW_END
An Edge End That Looks Like An Arrow |
static int |
CIRCLE_END
An Edge End That Looks Like A Circle |
static int |
CURVED_LINES
Draws splined curves for edges. |
static int |
DIAMOND_END
An Edge End That Looks Like A Diamond |
static int |
STRAIGHT_LINES
Draws straight lines for edges. |
static int |
T_END
An Edge End That Looks Like A "T" |
| Method Summary | |
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()
|
giny.model.Edge |
getEdge()
|
int |
getGraphPerspectiveIndex()
|
GraphView |
getGraphView()
|
int |
getLineType()
|
boolean |
getSelected()
|
java.awt.Paint |
getSelectedPaint()
This really refers to the Stroke, TODO: Make separte stroke methods |
java.awt.Paint |
getSourceEdgeEndPaint()
|
java.awt.Paint |
getSourceEdgeEndSelectedPaint()
|
java.awt.Stroke |
getStroke()
|
float |
getStrokeWidth()
|
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 |
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 |
setUnselectedPaint(java.awt.Paint paint)
This really refers to the Stroke, TODO: Make separte stroke methods |
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 |
CURVED_LINES
public static final int CURVED_LINES
- Draws splined curves for edges.
- See Also:
- Constant Field Values
STRAIGHT_LINES
public static final int STRAIGHT_LINES
- Draws straight lines for edges.
- See Also:
- Constant Field Values
ARROW_END
public static final int ARROW_END
- An Edge End That Looks Like An Arrow
- See Also:
- Constant Field Values
CIRCLE_END
public static final int CIRCLE_END
- An Edge End That Looks Like A Circle
- See Also:
- Constant Field Values
DIAMOND_END
public static final int DIAMOND_END
- An Edge End That Looks Like A Diamond
- See Also:
- Constant Field Values
T_END
public static final int T_END
- An Edge End That Looks Like A "T"
- See Also:
- Constant Field Values
| Method Detail |
getGraphPerspectiveIndex
public int getGraphPerspectiveIndex()
getEdge
public giny.model.Edge getEdge()
getGraphView
public GraphView getGraphView()
setStrokeWidth
public void setStrokeWidth(float width)
getStrokeWidth
public float getStrokeWidth()
setStroke
public void setStroke(java.awt.Stroke stroke)
getStroke
public java.awt.Stroke getStroke()
setLineType
public void setLineType(int line_type)
getLineType
public int getLineType()
setUnselectedPaint
public void setUnselectedPaint(java.awt.Paint paint)
- This really refers to the Stroke,
TODO: Make separte stroke methods
getUnselectedPaint
public java.awt.Paint getUnselectedPaint()
- This really refers to the Stroke,
TODO: Make separte stroke methods
setSelectedPaint
public void setSelectedPaint(java.awt.Paint paint)
- This really refers to the Stroke,
TODO: Make separte stroke methods
getSelectedPaint
public java.awt.Paint getSelectedPaint()
- This really refers to the Stroke,
TODO: Make separte stroke methods
getSourceEdgeEndPaint
public java.awt.Paint getSourceEdgeEndPaint()
getSourceEdgeEndSelectedPaint
public java.awt.Paint getSourceEdgeEndSelectedPaint()
getTargetEdgeEndPaint
public java.awt.Paint getTargetEdgeEndPaint()
getTargetEdgeEndSelectedPaint
public java.awt.Paint getTargetEdgeEndSelectedPaint()
setSourceEdgeEndSelectedPaint
public void setSourceEdgeEndSelectedPaint(java.awt.Paint paint)
setTargetEdgeEndSelectedPaint
public void setTargetEdgeEndSelectedPaint(java.awt.Paint paint)
setSourceEdgeEndStrokePaint
public void setSourceEdgeEndStrokePaint(java.awt.Paint paint)
setTargetEdgeEndStrokePaint
public void setTargetEdgeEndStrokePaint(java.awt.Paint paint)
setSourceEdgeEndPaint
public void setSourceEdgeEndPaint(java.awt.Paint paint)
setTargetEdgeEndPaint
public void setTargetEdgeEndPaint(java.awt.Paint paint)
setSelected
public boolean setSelected(boolean state)
- When we are selected then we draw ourselves red, and draw any handles.
isSelected
public boolean isSelected()
getSelected
public boolean getSelected()
updateEdgeView
public void updateEdgeView()
- This is the main method called to update the drawing of the edge.
updateTargetArrow
public void updateTargetArrow()
- Draws the EdgeEnd, also sets the Source/Target Points to values such
that the edge does not "go through" the end
updateSourceArrow
public void updateSourceArrow()
- Draws the EdgeEnd, also sets the Source/Target Points to values such
that the edge does not "go through" the end
setSourceEdgeEnd
public void setSourceEdgeEnd(int type)
- Sets the Drawing style for the edge end.
setTargetEdgeEnd
public void setTargetEdgeEnd(int type)
- Sets the Drawing style for the edge end.
updateLine
public void updateLine()
- Draws the Edge
drawSelected
public void drawSelected()
- Draws the edge as red and draws any handles previously added.
drawUnselected
public void drawUnselected()
- Draws the edge as black and removes any handles from the display.
getBend
public Bend getBend()
|
|||||||||
| Home >> All >> giny >> [ view overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC