Absolute Layout

This layout allows to specify absolute position for every component. This may be very convenient for putting different gauges, meters and similar components over an image or animated vector graphics. Components in absolute layout may easily overlap each other.

Here is an example of what an absolute layout may look like (two components are located at absolute positions in root panel):

Absolute Layout Constraints

Constraints that characterize position of component in an absolute layout are:

X Coordinate, Y Coordinate

These are absolute horizontal and vertical coordinates of the component. Horizontal (X) coordinates increment from left to right, vertical (Y) coordinates increment from top to bottom, so top left corner of the frame has coordinates X=0, Y=0.

Z-Order

Z-order determines how "high" is the component located in the parent container and, thus, which components will be overlapped by it. Higher Z-order number means that component is higher than the other components and will overlap them.

Scaling

Scaling allows you to specify how the container and its contents will be scaled.

Valid values are:

  • None - standard behavior, no scaling.
  • Vertical - scaling only vertically.
  • Horizontal - scaling only horizontally.
  • Both - scaling vertically and horizontally

Was this page helpful?