javafx.scene.Node
来源:互联网 发布:mp3合并软件 编辑:程序博客网 时间:2024/05/20 01:47
layoutBounds
public final ReadOnlyObjectProperty<Bounds> layoutBoundsPropertyThe rectangular(矩形) bounds that should be used for layout calculations(计算) for this node. layoutBounds may differ from the visual bounds of the node and is computed differently depending on the node type.
If the node type is resizable (Region, Control, or WebView) then the layoutBounds will always be 0,0 width x height. If the node type is not resizable (Shape, Text, or Group), then the layoutBounds are computed based on the node's geometric(几何) properties and does not include the node's clip(修剪), effect, or transforms. See individual class documentation for details.
Note that the layoutX, layoutY, translateX, and translateY variables are not included in the layoutBounds. This is important because layout code must first determine the current size and location of the node (using layoutBounds) and then set layoutX and layoutY to adjust the translation of the node so that it will have the desired(所需) layout position.(使用layoutBounds来确定xy坐标,所以xy坐标等变量没有包括在layoutBounds中)
Because the computation of layoutBounds is often tied to a node's geometric variables, it is an error to bind any such variables to an expression that depends upon layoutBounds. For example, the x or y variables of a shape should never be bound to layoutBounds for the purpose of positioning the node.
The layoutBounds will never be null.
See Also:
getLayoutBounds()javafx.geometry.Bounds
public abstract class Boundsextends java.lang.Object
The base class for objects that are used to describe the bounds of a node or other scene graph object.
- javafx.scene.Node
- javafx.scene.Group
- JavaFX Scene Builder
- Javafx scene stage 关系
- javafx.scene.effect.Light.Distant
- javafx.scene.control.TableView CONSTRAINED_RESIZE_POLICY
- 自己编译JavaFX Scene Builder
- JavaFX Scene Builder的使用
- Working with the JavaFX Scene Graph
- javafx.scene.Group的疑问setAutoSizeChildren
- 在Eclipse安装JavaFX Scene Builder
- 在Eclipse安装JavaFX Scene Builder
- 安装JavaFX Scene Builder 到Eclipse
- JavaFX学习笔记(二) 用JavaFX Scene Builder设计UI
- javafx dragable node
- javafx官方文档学习之一Application与Stage,Scene初探
- JavaFX中TableView的使用(结合scene builder)
- 使用eclipse和JavaFX Scene Builder进行快速构建JavaFX应用程序
- S3C2440 linux 2.6.32.2 ADC HWMON驱动移植
- Web Audio API常见问答
- LruCache 结合 FIFO 策略实现bitmap缓存
- 寻找最大数——解题报告
- 著名成功人士的人生理念
- javafx.scene.Node
- 关于python 的re.sub用法
- 在WebKit引擎的浏览器中实现CSS滤镜特效
- Linux设备驱动之ioctl控制
- DB2 字符串函数
- 在列表中控制 AsyncTask 加载 bitmap 的时机
- 利用struts2文件上传组件进行文件上传
- Android 界面 左右滑动效果
- 如何构建一套数据计算与报表相结合的系统?