public interface EdgeAttributesReader<V,E extends Edge<V>> extends AttributesReader
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(EdgeAttributesReader fereader) |
EdgeAnchor |
getAnchor() |
EdgePattern |
getDash()
set the edge as dashed.
|
EdgeStyle<V,E> |
getDefaultEdgeStyle()
Get the default style used for the edges in this graph.
|
Color |
getLineColor() |
EdgeEnd |
getLineEnd() |
float |
getLineWidth() |
List<Point> |
getPoints() |
EdgeStyle |
getStyle() |
boolean |
hasReverseEdge()
Check if the graph also contains the reversed edge.
|
boolean |
isCurve()
Is this edge curve?
This only affects edges with intermediate points.
|
void |
render(Graphics2D g)
Render an edge on a given graphics.
|
void |
renderMoving(Graphics2D g,
MovingEdgeType type,
int movex,
int movey)
Render an edge while the edge or at least one of its connected node is moved.
|
void |
renderMovingPoint(Graphics2D g,
int idx,
int movex,
int movey) |
void |
setAnchor(EdgeAnchor anchor) |
void |
setCurve(boolean curve)
Set the edge as curve property.
|
void |
setEdge(E obj)
set the edge on which we work
|
void |
setEdge(E obj,
boolean selected)
Set the edge on which we work, knowing that it is selected.
|
void |
setPoints(List<Point> l)
set points used by this edge
|
void |
setStyle(EdgeStyle style) |
damage, getBounds, move, refresh, select, writeGINML
EdgeStyle<V,E> getDefaultEdgeStyle()
float getLineWidth()
void setEdge(E obj)
obj
- void setEdge(E obj, boolean selected)
obj
- selected
- Color getLineColor()
boolean isCurve()
void setCurve(boolean curve)
curve
- void copyFrom(EdgeAttributesReader fereader)
fereader
- EdgeEnd getLineEnd()
boolean hasReverseEdge()
EdgePattern getDash()
void render(Graphics2D g)
g
- void renderMoving(Graphics2D g, MovingEdgeType type, int movex, int movey)
g
- type
- movex
- movey
- void renderMovingPoint(Graphics2D g, int idx, int movex, int movey)
void setStyle(EdgeStyle style)
EdgeStyle getStyle()
EdgeAnchor getAnchor()
void setAnchor(EdgeAnchor anchor)
Copyright © 2005–2020. All rights reserved.