public class GraphEdge extends AbstractGraphElement
ports, uuid| Constructor and Description |
|---|
GraphEdge(GraphPort connector1,
GraphPort connector2) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(GraphConfig config) |
boolean |
contains(int mx,
int my) |
double |
distanceTo(int x,
int y) |
Rectangle |
getBounds() |
String |
getEndArrowType() |
String |
getStartArrowType() |
boolean |
isEmpty() |
double |
length() |
void |
move(int dx,
int dy,
Graph graph) |
void |
movePort(int dx,
int dy,
GraphPort port,
Graph graph) |
void |
setEndArrowType(String endArrowType) |
void |
setStartArrowType(String startArrowType) |
void |
setUuid(String uuid) |
String |
toString() |
addPort, addReadOnlyPort, addReadOnlyPorts, createPort, ensureUuid, getLineColor, getLineStroke, getPort, getPorts, getText, getUuid, isHover, isSelected, setHover, setLineColor, setLineStroke, setSelected, setTextpublic void setUuid(String uuid)
setUuid in class AbstractGraphElementpublic String getStartArrowType()
public void setStartArrowType(String startArrowType)
public String getEndArrowType()
public void setEndArrowType(String endArrowType)
public void configure(GraphConfig config)
configure in class AbstractGraphElementpublic boolean contains(int mx,
int my)
public Rectangle getBounds()
public void move(int dx,
int dy,
Graph graph)
public double distanceTo(int x,
int y)
public double length()
public boolean isEmpty()
Copyright © 2021 vpc open source initiative. All rights reserved.