public class TextShape extends GraphShape
ports, uuid| Constructor and Description |
|---|
TextShape() |
TextShape(int x1,
int y1,
String text) |
| 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 |
getText() |
int |
getX1() |
int |
getX2() |
int |
getY1() |
int |
getY2() |
boolean |
isEditing() |
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 |
setEditing(boolean editing) |
void |
setText(String text) |
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, getUuid, isHover, isSelected, setHover, setLineColor, setLineStroke, setSelected, setUuidpublic TextShape()
public TextShape(int x1,
int y1,
String text)
public String getText()
getText in interface GraphElementgetText in class AbstractGraphElementpublic void setText(String text)
setText in interface GraphElementsetText in class AbstractGraphElementpublic 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 void configure(GraphConfig config)
configure in class GraphShapepublic boolean isEditing()
public void setEditing(boolean editing)
public Rectangle getBounds()
Copyright © 2021 vpc open source initiative. All rights reserved.