public class RectangleElement extends AbstractElement<RectangleElement>
| Constructor and Description |
|---|
RectangleElement(int x,
int y,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor() |
Integer |
getHeight() |
Integer |
getRoundCorner() |
Integer |
getWidth() |
RectangleElement |
setColor(Color color) |
RectangleElement |
setHeight(Integer height) |
RectangleElement |
setRoundCorner(Integer roundCorner) |
RectangleElement |
setWidth(Integer width) |
public RectangleElement(int x,
int y,
int width,
int height)
x - x坐标y - y坐标width - 宽度height - 高度public Integer getWidth()
public RectangleElement setWidth(Integer width)
public Integer getHeight()
public RectangleElement setHeight(Integer height)
public Integer getRoundCorner()
public RectangleElement setRoundCorner(Integer roundCorner)
public Color getColor()
public RectangleElement setColor(Color color)
Copyright © 2021. All rights reserved.