jbcl.layout Package
java.lang.Object +----com.borland.jbcl.layout.XYLayout
Constructors Properties Methods
Implements LayoutManager, LayoutManager2, Serializable
The XYLayout
component is a JBuilder custom layout manager. It places components in a container at specific x and y coordinates relative to the upper-left corner of the container. Regardless of the type of display, the container always retains the relative x and y positions of the components. Resizing a container with an XYLayout
, however, does not resize or reposition the components within the container.
XYLayout
is useful for designing your application. Once you have the design worked out, you can choose from one of the standard layouts for the final design.
public XYLayout()Creates an
XYLayout
component.
public XYLayout(int width, int height)Creates an
XYLayout
component using the width and height specified with the width
and height
parameters.
Parameters:
width
height
public int getHeight() public void setHeight(int height)The height of the
XYLayout
object in pixels. A value less than or equal to 0 means that the
container's preferred height is used.
public int getWidth() public void setWidth(int width)The width of the
XYLayout
component in pixels. A value less than or equal to 0 means that the
container's preferred width is used.
public String toString()Returns a string that displays the width and height values. This is the returned string:
"XYLayout" + "[width=" + width + ",height=" + height + "]"where:
width
height
Overrides: java.lang.Object.toString()