public class DiagramText extends DiagramComponent
Modifier and Type | Field and Description |
---|---|
static Color |
DEFAULT_COLOR |
Constructor and Description |
---|
DiagramText(int x,
int y,
String text,
Font font) |
Modifier and Type | Method and Description |
---|---|
void |
alignRightEdgeTo(int x) |
void |
centerHorizontallyBetween(int minX,
int maxX) |
void |
centerInBounds(Rectangle2D bounds) |
void |
centerVerticallyBetween(int minY,
int maxY) |
Rectangle2D |
getBounds() |
Color |
getColor() |
Font |
getFont() |
Color |
getOutlineColor() |
String |
getText() |
int |
getXPos() |
int |
getYPos() |
boolean |
hasOutline() |
boolean |
isTextOnLine() |
void |
setColor(Color color) |
void |
setFont(Font font) |
void |
setHasOutline(boolean hasOutline) |
void |
setOutlineColor(Color outlineColor) |
void |
setText(String string) |
void |
setTextOnLine(boolean b) |
void |
setXPos(int i) |
void |
setYPos(int i) |
String |
toString() |
createClosedFromBoundaryCells, createClosedFromBoundaryCells, makePointForCell
public static final Color DEFAULT_COLOR
public void centerInBounds(Rectangle2D bounds)
public void centerHorizontallyBetween(int minX, int maxX)
public void centerVerticallyBetween(int minY, int maxY)
public void alignRightEdgeTo(int x)
public Color getColor()
public Font getFont()
public String getText()
public int getXPos()
public int getYPos()
public void setColor(Color color)
color
- public void setFont(Font font)
font
- public void setText(String string)
string
- public void setXPos(int i)
i
- public void setYPos(int i)
i
- public Rectangle2D getBounds()
public boolean isTextOnLine()
public void setTextOnLine(boolean b)
b
- public boolean hasOutline()
public void setHasOutline(boolean hasOutline)
public Color getOutlineColor()
public void setOutlineColor(Color outlineColor)
Copyright © 2016. All Rights Reserved.