/** Replies the property for the arc width.
*
* @return the arcWidth property.
*/
public DoubleProperty arcWidthProperty() {
if (this.arcWidth == null) {
this.arcWidth = new DependentSimpleDoubleProperty<ReadOnlyDoubleProperty>(
this, MathFXAttributeNames.ARC_WIDTH, widthProperty()) {
@Override
protected void invalidated(ReadOnlyDoubleProperty dependency) {
final double value = get();
if (value < 0.) {
set(0.);
} else {
final double maxArcWidth = dependency.get() / 2.;
if (value > maxArcWidth) {
set(maxArcWidth);
}
}
}
};
}
return this.arcWidth;
}
RoundRectangle2dfx.java 文件源码
java
阅读 40
收藏 0
点赞 0
评论 0
项目:afc
作者:
评论列表
文章目录