public class CircleShape extends GraphShape
| Modifier and Type | Field and Description |
|---|---|
protected int |
r |
protected int |
x |
protected int |
y |
ports, uuid| Constructor and Description |
|---|
CircleShape() |
CircleShape(int x,
int y,
int r) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeRadius(int step) |
boolean |
contains(int mx,
int my) |
double |
distanceTo(int mx,
int my) |
Rectangle |
getBounds() |
int |
getR() |
int |
getX() |
int |
getY() |
boolean |
isEmpty() |
void |
move(int dx,
int dy,
Graph graph) |
void |
movePort(int dx,
int dy,
GraphPort port,
Graph graph) |
void |
setR(int r) |
void |
setX(int x) |
void |
setY(int y) |
String |
toString() |
configure, getFillColor, setFillColoraddPort, addReadOnlyPort, addReadOnlyPorts, createPort, ensureUuid, getLineColor, getLineStroke, getPort, getPorts, getText, getUuid, isHover, isSelected, setHover, setLineColor, setLineStroke, setSelected, setText, setUuidpublic CircleShape()
public CircleShape(int x,
int y,
int r)
public int getR()
public void setR(int r)
public void changeRadius(int step)
public int getX()
public void setX(int x)
public int getY()
public void setY(int y)
public boolean contains(int mx,
int my)
public double distanceTo(int mx,
int my)
public void move(int dx,
int dy,
Graph graph)
public boolean isEmpty()
public Rectangle getBounds()
Copyright © 2021 vpc open source initiative. All rights reserved.