// Referenced classes of package com.borland.jbcl.layout:
// XYConstraints
public class XYLayout
implements LayoutManager2, Serializable
{
private static final long serialVersionUID = 200L;
int width;
int height;
Hashtable info;
static final XYConstraints defaultConstraints = new XYConstraints();
public XYLayout()
{
info = new Hashtable();
}
public XYLayout(int width, int height)
{
info = new Hashtable();
this.width = width;
this.height = height;
}
public int getWidth()
{
return width;
}
public void setWidth(int width)
{
this.width = width;
}
public int getHeight()
{
return height;
}
public void setHeight(int height)
{
this.height = height;
}
public String toString()
{
return String.valueOf(String.valueOf((new StringBuffer("XYLayout[width=")).append(width).append(",height=").append(height).append("]")));
}
public void addLayoutComponent(String s, Component component1)
{
}
public void removeLayoutComponent(Component component)
{
info.remove(component);
}
public Dimension preferredLayoutSize(Container target)
{
return getLayoutSize(target, true);
}
public Dimension minimumLayoutSize(Container target)
{
return getLayoutSize(target, false);
}
public void layoutContainer(Container target)
{
Insets insets = target.getInsets();
int count = target.getComponentCount();
for(int i = 0; i < count; i++)
{
Component component = target.getComponent(i);
if(component.isVisible())
{
Rectangle r = getComponentBounds(component, true);
component.setBounds(insets.left + r.x, insets.top + r.y, r.width, r.height);
}
}