![]() Properties inherited from class javafx.scene.TranslateX/ translateY, which are reserved forĪdjustments and animation. Region subclasses which layout their children will position nodes by setting ![]() Note that layoutChildren is called automaticallyīy the scene graph while executing a top-down layout pass and it should not be invoked directly by the To implement a more custom layout, a Region subclass must override StackPane, HBox, VBox, TilePane, FlowPane, Layout behavior, then it should use one of the Region subclasses: Which means that it will resize any resizable child nodes to their preferred Out its children should compute and honor these content area bounds.īy default a Region inherits the layout behavior of its superclass, Parent, Then the content area bounds will be (x=40, y=10, width=140, height=60). The insets of the Region define the distanceīetween the edge of the layout bounds and the edge of the content area. Insets and the picking area of the Region are. Not used for Regions which have a shape specified.Īlthough the layout bounds of a Region are not influenced by any Border or Background, the content area Then all BackgroundFills, BackgroundImages, and BorderStrokes will be applied to the shape. Region can be made to use any shape, however, by specifing the shape property. Of the Region to act like a rounded rectangle, such that locations outside the corner radii are ignored. This affects not only making the visuals look like a rounded rectangle, but it also causes the picking behavior A BackgroundFill radii might cause the Rectangle to appear rounded. The purpose of these semantics are to allow anĪpplication to specify a fallback BorderStroke to be displayed in the case that an ImageStroke fails toīy default a Region appears as a Rectangle. These semantics are in line with the CSS 3 specification. Present (and loaded all images properly), then no BorderStrokes are actually drawn, although they areĬonsidered for computing the position of the content area (see the stroke width property of a BorderStroke). The content is drawn above all backgrounds and borders. All BackgroundFills are drawn first, followed by BackgroundImages, BorderStrokes,Īnd finally BorderImages. Likewise, theīorder of a Region is defined by its Border, which is made up of zero or more BorderStrokes and Of a Region is made up of zero or more BackgroundFills, and zero or more BackgroundImages. The padding canīe negative, such that the content area of a Region might extend beyond the layout bounds of the Region,Ī Region has a Background, and a Border, although either or both of these might be empty. Properties of a border (either with BorderStrokes or BorderImages), and by padding. This area is, by default, the same as the layout bounds of the Region, but can be modified by either the The content area of a Region is the area which is occupied for the layout of its children. ![]() The full specification is available at the W3C.Įvery Region has its layout bounds, which are specified to be (0, 0, width, height). It is designed to support as much of the CSS3 specification for backgrounds It can have multiple backgroundsĪnd borders. It is a resizable Parent node which can be styled from CSS. Region is the base class for all JavaFX Node-based UI Controls, and all layout containers.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |