public DragBounds(final List<DragBounds> dragBoundses) {
minX = new SimpleDoubleProperty(Double.MIN_VALUE);
maxX = new SimpleDoubleProperty(Double.MAX_VALUE);
minY = new SimpleDoubleProperty(Double.MIN_VALUE);
maxY = new SimpleDoubleProperty(Double.MAX_VALUE);
for (final DragBounds dragBounds : dragBoundses) {
if (dragBounds.minX.get() > minX.get()) {
minX = dragBounds.minX;
}
if (dragBounds.maxX.get() < maxX.get()) {
maxX = dragBounds.maxX;
}
if (dragBounds.minY.get() > minY.get()) {
minY = dragBounds.minY;
}
if (dragBounds.maxY.get() < maxY.get()) {
maxY = dragBounds.maxY;
}
}
}
ItemDragHelper.java 文件源码
java
阅读 36
收藏 0
点赞 0
评论 0
项目:H-Uppaal
作者:
评论列表
文章目录