public class LineElement extends AbstractElement<LineElement> implements IElement
alpha, gradient, position, rotate| 构造器和说明 |
|---|
LineElement(CoordinatePoint start,
CoordinatePoint end) |
LineElement(CoordinatePoint start,
CoordinatePoint end,
int borderSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
beforeRender(Graphics2D g)
渲染之前,做一些默认配置
|
Dimension |
calculateDimension(Graphics2D g,
int canvasWidth,
int canvasHeight)
计算元素尺寸
|
CoordinatePoint |
doRender(Graphics2D g,
Dimension dimension,
int canvasWidth,
int canvasHeight)
执行渲染
|
LineElement |
setBorderSize(int borderSize) |
LineElement |
setColor(Color color) |
LineElement |
setLineStyle(LineStyle lineStyle) |
afterRender, follow, gradient, render, setAlpha, setGradient, setPosition, setRotatepublic LineElement(CoordinatePoint start, CoordinatePoint end)
public LineElement(CoordinatePoint start, CoordinatePoint end, int borderSize)
public LineElement setColor(Color color)
public LineElement setLineStyle(LineStyle lineStyle)
public LineElement setBorderSize(int borderSize)
public Dimension calculateDimension(Graphics2D g, int canvasWidth, int canvasHeight)
AbstractElementcalculateDimension 在类中 AbstractElement<LineElement>public CoordinatePoint doRender(Graphics2D g, Dimension dimension, int canvasWidth, int canvasHeight)
AbstractElementdoRender 在类中 AbstractElement<LineElement>public void beforeRender(Graphics2D g)
AbstractElementbeforeRender 在类中 AbstractElement<LineElement>Copyright © 2025. All rights reserved.