borland Packages  Class Hierarchy  jbcl.layout Package  Index 

XYLayout component

java.lang.Object
   +----borland.jbcl.layout.XYLayout

About the XYLayout component

Constructors  Properties  Methods  

Implements LayoutManager, LayoutManager2, Serializable

The XYLayout component is a Borland 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.


XYLayout constructors

XYLayout properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

XYLayout methods

Methods implemented in this class

Methods implemented in java.lang.Object


XYLayout constructors

XYLayout()

  public XYLayout()
Creates an XYLayout component.

XYLayout(int, int)

  public XYLayout(int width, int height)
Creates an XYLayout component using the width and height specified with the width and height parameters.

Parameters:

width
The width of the layout manager in pixels. A value less than or equal to 0 means that the container's preferred size is used.
height
The height of the layout manager in pixels. A value less than or equal to 0 means that the container's preferred size is used.

XYLayout properties

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.

width

 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.

XYLayout methods

toString()

  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
The width of the container, in pixels.
height
The height of the container, in pixels.

Overrides: java.lang.Object.toString()