public class RegularPolygonElement extends AbstractDimensionElement<RegularPolygonElement> implements IElement
height, widthalpha, gradient, position, rotate| 构造器和说明 |
|---|
RegularPolygonElement(int radius,
int edges)
N边形
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
beforeRender(Graphics2D g)
渲染之前,做一些默认配置
|
CoordinatePoint |
doRender(Graphics2D g,
Dimension dimension,
int canvasWidth,
int canvasHeight)
执行渲染
|
RegularPolygonElement |
setColor(Color color) |
calculateDimensionreCalculatePositionafterRender, follow, gradient, render, setAlpha, setGradient, setPosition, setRotatepublic RegularPolygonElement(int radius,
int edges)
radius - 半径edges - 边数public RegularPolygonElement setColor(Color color)
public CoordinatePoint doRender(Graphics2D g, Dimension dimension, int canvasWidth, int canvasHeight)
AbstractElementdoRender 在类中 AbstractElement<RegularPolygonElement>public void beforeRender(Graphics2D g)
AbstractElementCopyright © 2025. All rights reserved.