Oracle
  • Select Country/Region
  • Select Country/Region
  • Communities
  • I am a...
  • I want to...
  • Welcome
  • Account
  • Sign Out
  • Sign In/Register for Account
  • Help
  • Products and Services

  • Solutions

  • Downloads

  • Store

  • Support

  • Training

  • Partners

  • About

  • Oracle Technology Network

Oracle Technology Network Java JavaFX Documentation
  • Java SE
  • Java EE
  • Java ME
  • Java SE Support
  • Java SE Advanced & Suite
  • Java Embedded
  • JavaFX
  • Java DB
  • Web Tier
  • Java Card
  • Java TV
  • New to Java
  • Community
  • Java Magazine
  • Java Advanced
  • Overview
  • Downloads
  • Documentation
  • Tools
  • Community
  • Samples

FXD Specification

expand all

Profile: desktop, common

  • animation

    • KeyFrame
    • KeyValue
    • Timeline
  • animation.transition

    • AnimationPath
    • FadeTransition
    • ParallelTransition
    • PathTransition
    • PauseTransition
    • RotateTransition
    • ScaleTransition
    • SequentialTransition
    • TranslateTransition
  • fxd

    • FXDNode
  • geometry

    • BoundingBox
    • Dimension2D
    • Insets
    • Point2D
    • Point3D
    • Rectangle2D
  • scene

    • Cursor
    • Group
    • ImageCursor
    • ParallelCamera
    • PerspectiveCamera
    • Scene
  • scene.chart

    • AreaChart
    • BarChart
    • BarChart3D
    • BubbleChart
    • LineChart
    • PieChart
    • PieChart3D
    • ScatterChart
  • scene.chart.data

    • Data
    • Series
  • scene.chart.part

    • CategoryAxis
    • Legend
    • NumberAxis
  • scene.control

    • Behavior
    • Button
    • CheckBox
    • ChoiceBox
    • Hyperlink
    • IndexedCell
    • Keystroke
    • Label
    • ListCell
    • ListView
    • PasswordBox
    • ProgressBar
    • ProgressIndicator
    • RadioButton
    • ScrollBar
    • ScrollView
    • Separator
    • Slider
    • TextBox
    • ToggleButton
    • ToggleGroup
    • Tooltip
  • scene.effect

    • Blend
    • Bloom
    • BoxBlur
    • ColorAdjust
    • DisplacementMap
    • DropShadow
    • FloatMap
    • Flood
    • GaussianBlur
    • Glow
    • Identity
    • InnerShadow
    • InvertMask
    • Lighting
    • MotionBlur
    • PerspectiveTransform
    • Reflection
    • SepiaTone
    • Shadow
  • scene.effect.light

    • DistantLight
    • PointLight
    • SpotLight
  • scene.image

    • Image
    • ImageView
  • scene.layout

    • ClipView
    • Container
    • Flow
    • HBox
    • LayoutInfo
    • Panel
    • Stack
    • Tile
    • VBox
  • scene.media

    • AudioTrack
    • Media
    • MediaError
    • MediaPlayer
    • MediaTimer
    • MediaView
    • SubtitleTrack
    • VideoTrack
  • scene.paint

    • Color
    • LinearGradient
    • RadialGradient
    • Stop
  • scene.shape

    • Arc
    • ArcTo
    • Circle
    • ClosePath
    • CubicCurve
    • CubicCurveTo
    • DelegateShape
    • Ellipse
    • HLineTo
    • Line
    • LineTo
    • MoveTo
    • Path
    • Polygon
    • Polyline
    • QuadCurve
    • QuadCurveTo
    • Rectangle
    • SVGPath
    • ShapeIntersect
    • ShapeSubtract
    • VLineTo
  • scene.text

    • Font
    • Text
  • scene.transform

    • Affine
    • Rotate
    • Scale
    • Shear
    • Translate
  • Copyright 2008-2010
    Oracle Corporation
    Use is subject to license terms.

LayoutInfo

Inherits from: LayoutInfoBase

Overview

Defines a set of common layout variables that can be used to specify how a particular node should be layed out within the layout space allocated to it by its parent container.

All of the container classes provided in javafx.scene.layout support LayoutInfo, however setting layoutInfo on a node which is inside one of these containers is only required when the application needs to override the default layout behavior of that container. For example, to override the preferred sizes of a button so it will always be 100 wide:

             
HBox {
    content: [
        Button {
            layoutInfo: LayoutInfo { minWidth: 100 width: 100 maxWidth: 100 }
        }
        // ..other nodes in hbox
    ]
 }

          


Profile: common

Variable Summary

nametype Default Value description
minWidth Number

If set, will override a resizable node's minimum width. If the node is not resizable, will be ignored.

minHeight Number

If set, will override a resizable node's minimum height. If the node is not resizable, will be ignored.

width Number

If set, will override a resizable node's preferred width. If the node is not resizable, will be ignored.

height Number

If set, will override a resizable node's preferred height. If the node is not resizable, will be ignored.

maxWidth Number

If set, will override a resizable node's maximum width. If the node is not resizable, will be ignored.

maxHeight Number

If set, will override a resizable node's maximum height. If the node is not resizable, will be ignored.

hfill Boolean

If set, indicates that resizable node's width should be resized beyond its preferred width (up to its maximum) to fill it's allocated layout area. If the node is not resizable, will be ignored.

vfill Boolean

If set, indicates that resizable node's height should be resized beyond its preferred height (up to its maximum) to fill it's allocated layout area. If the node is not resizable, will be ignored.

hpos HPos

If set, will define how the node should be horizontally positioned relative to its allocated layout area.

vpos VPos

If set, will define how the node should be vertically positioned relative to its allocated layout area.

hgrow Priority

If set, will define the horizontal grow priority for the node's layout area. This constraint controls how a container allocates additional horizontal space to the node's layout area if the container is resized larger than its preferred width and multiple nodes are competing for horizontal space.

If ALWAYS, the node's layout area will always grow horizontally if there is additional space, sharing the increase with other nodes that have an hgrow of ALWAYS. The node's layout area will never be grown beyond the node's maximum width.

If SOMETIMES, the node's layout area will only grow horizontally if either no other node has specified ALWAYS, or the additional space was not completely allocated to nodes specifying ALWAYS because of their maximum size limits.

If NEVER, the node's layout area will never be grown horizontally if there is additional space.

vgrow Priority

If set, will define the vertical grow priority for the node's layout area. This constraint controls how a container allocates additional vertical space to the node's layout area if the container is resized larger than its preferred height and multiple nodes are competing for vertical space.

If ALWAYS, the node's layout area will always grow vertically if there is additional space, sharing the increase with other nodes that have a vgrow of ALWAYS. The node's layout area will never be grown beyond the node's maximum height.

If SOMETIMES, the node's layout area will only grow vertically if either no other node has specified ALWAYS, or the additional space was not completely allocated to nodes specifying ALWAYS because of their maximum size limits.

If NEVER, the node's layout area will never be grown vertically if there is additional space.

hshrink Priority

If set, will define the horizontal shrink priority for the node's layout area. This constraint controls how a container subtracts horizontal space from the node's layout area if the container is resized smaller than its preferred width and multiple nodes are competing for horizontal space.

If ALWAYS, the node's layout area will always shrink horizontally if there is less space, sharing the decrease with other nodes that have an hshrink of ALWAYS. The node's layout area will never be sized smaller than the node's minimum width.

If SOMETIMES, the node's layout area will only shrink horizontally if either no other node has specified ALWAYS, or the reduced space was not completely distributed to nodes specifying ALWAYS because of their minimum size limits.

If NEVER, the node's layout area will never be shrunken horizontally if there is reduced space.

vshrink Priority

If set, will define the vertical shrink priority for the node's layout area. This constraint controls how a container subtracts vertical space from the node's layout area if the container is resized smaller than its preferred height and multiple nodes are competing for vertical space.

If ALWAYS, the node's layout area will always shrink vertically if there is less space, sharing the decrease with other nodes that have a vshrink of ALWAYS. The node's layout area will never be sized smaller than the node's minimum height.

If SOMETIMES, the node's layout area will only shrink vertically if either no other node has specified ALWAYS, or the reduced space was not completely distributed to nodes specifying ALWAYS because of their minimum size limits.

If NEVER, the node's layout area will never be shrunken vertically if there is reduced space.

margin Insets

If set, will define a margin of space that should be allocated around the outside of the node's layout bounds during layout.

Inherited Variables

    E-mail this page    Printer View Printer View
 
    Oracle Cloud
  • Learn About Oracle Cloud
  • Get a Free Trial
  • Learn About PaaS
  • Learn About SaaS
  • Learn About IaaS
    Java
  • Learn About Java
  • Download Java for Consumers
  • Download Java for Developers
  • Java Resources for Developers
  • Java Cloud Service
  • Java Magazine
    Customer and Events
  • Explore and Read Customer Stories
  • All Oracle Events
  • Oracle OpenWorld
  • JavaOne
    Communities
  • Blogs
  • Discussion Forums
  • Wikis
  • Oracle ACEs
  • User Groups
  • Social Media Channels
    Services and Store
  • Log In to My Oracle Support
  • Training and Certification
  • Become a Partner
  • Find a Partner Solution
  • Purchase from the Oracle Store
  • Contact and Chat
    Global Contacts
    Oracle Support
    Phone: 800-633-0738
 

Hardware and Software, Engineered to Work Together

  • Subscribe
  • Careers
  • Contact Us
  • Site Maps
  • Legal Notices
  • Terms of Use
  • Privacy
  •  
  • Facebook
  • LinkedIn
  • Twitter
  • Google+
  • YouTube
  • Oracle RSS Feed