public interface Position
| 限定符和类型 | 方法和说明 |
|---|---|
default CoordinatePoint |
calculate(int enclosingWidth,
int enclosingHeight,
int elementWidth,
int elementHeight) |
CoordinatePoint |
calculate(int enclosingWidth,
int enclosingHeight,
int elementWidth,
int elementHeight,
Margin margin)
计算位置
|
default CoordinatePoint calculate(int enclosingWidth, int enclosingHeight, int elementWidth, int elementHeight)
CoordinatePoint calculate(int enclosingWidth, int enclosingHeight, int elementWidth, int elementHeight, Margin margin)
enclosingWidth - 封闭区域宽度enclosingHeight - 封闭区域高度elementWidth - 元素宽度elementHeight - 元素高度margin - 边距Copyright © 2025. All rights reserved.