public class SegmentShape extends GraphShape
ports, uuid| Constructor and Description |
|---|
SegmentShape() |
SegmentShape(int x1,
int y1,
int x2,
int y2) |
| Modifier and Type | Method and Description |
|---|---|
int |
centerX() |
int |
centerY() |
void |
configure(GraphConfig config) |
boolean |
contains(int mx,
int my) |
double |
distanceTo(int x,
int y) |
Rectangle |
getBounds() |
String |
getEndArrowType() |
String |
getStartArrowType() |
int |
getX1() |
int |
getX2() |
int |
getY1() |
int |
getY2() |
boolean |
isEmpty() |
double |
length() |
void |
move(int dx,
int dy,
Graph graph) |
void |
movePort(int dx,
int dy,
GraphPort port,
Graph graph) |
int |
radiusX() |
int |
radiusY() |
protected void |
rebuild() |
void |
setEndArrowType(String endArrowType) |
void |
setStartArrowType(String startArrowType) |
void |
setX1(int x1) |
void |
setX2(int x2) |
void |
setY1(int y1) |
void |
setY2(int y2) |
getFillColor, setFillColoraddPort, addReadOnlyPort, addReadOnlyPorts, createPort, ensureUuid, getLineColor, getLineStroke, getPort, getPorts, getText, getUuid, isHover, isSelected, setHover, setLineColor, setLineStroke, setSelected, setText, setUuidpublic SegmentShape()
public SegmentShape(int x1,
int y1,
int x2,
int y2)
public String getStartArrowType()
public void setStartArrowType(String startArrowType)
public String getEndArrowType()
public void setEndArrowType(String endArrowType)
public int getX2()
public void setX2(int x2)
public int getY2()
public void setY2(int y2)
public int getX1()
public void setX1(int x1)
public int getY1()
public void setY1(int y1)
public int centerX()
public int radiusX()
public int radiusY()
public int centerY()
public boolean contains(int mx,
int my)
public double distanceTo(int x,
int y)
public void move(int dx,
int dy,
Graph graph)
protected void rebuild()
public double length()
public boolean isEmpty()
public Rectangle getBounds()
public void configure(GraphConfig config)
configure in class GraphShapeCopyright © 2021 vpc open source initiative. All rights reserved.