public class SquareShape extends GraphShape
| Modifier and Type | Field and Description |
|---|---|
protected int |
r |
protected int |
x |
protected int |
y |
ports, uuid| Constructor and Description |
|---|
SquareShape() |
SquareShape(int x,
int y,
int r) |
| Modifier and Type | Method and Description |
|---|---|
int |
centerX() |
int |
centerY() |
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) |
protected void |
rebuild() |
Point |
resolvePoint1() |
Point |
resolvePoint2() |
int |
resolveWidth() |
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 SquareShape()
public SquareShape(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 centerX()
public int centerY()
public int getY()
public void setY(int y)
public boolean contains(int mx,
int my)
public Rectangle getBounds()
public double distanceTo(int mx,
int my)
public void move(int dx,
int dy,
Graph graph)
public int resolveWidth()
protected void rebuild()
public Point resolvePoint1()
public Point resolvePoint2()
public boolean isEmpty()
Copyright © 2021 vpc open source initiative. All rights reserved.