摘要:
javafx中控件的边界(Boundary)有3种:第一种是控件本身的Boundary,可通过getLayoutBounds获取。第二种是控件本身(不计算transforms)和特效的Boundary,可通过getBoundsInLocal,获取。第三种是控件本身(计算transforms)和特效的Boundary,可通过getBoundsInParent获取。控件没有Translate时,3种边界效果图如下(方框表示Boundary):getLayoutBoundsgetBoundsInLocalgetBoundsInParent控件有Translate时,3种边界效果图如下:getLayo 阅读全文