Absolute Layout

Top  Previous  Next

This layout allow 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):

ls_widgets_absolute_layout_1

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.