站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

Layout (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

org.netbeans.api.visual.layout
Interface Layout


public interface Layout

This class is responsible for layout and justification of children widgets of a widget where the layout is assigned. Built-in layouts could be created by LayoutFactory class.


Method Summary
 void justify(Widget widget)
          Justify bounds of widget children based on a widget client area.
 void layout(Widget widget)
          Resolve bounds of widget children based in their preferred locations and bounds.
 boolean requiresJustification(Widget widget)
          Resolve whether a widget requires justification after whole scene layout.
 

Method Detail

layout

void layout(Widget widget)
Resolve bounds of widget children based in their preferred locations and bounds.

Parameters:
widget - the widget

requiresJustification

boolean requiresJustification(Widget widget)
Resolve whether a widget requires justification after whole scene layout.

Parameters:
widget - the widget
Returns:
true if requires justification

justify

void justify(Widget widget)
Justify bounds of widget children based on a widget client area.

Parameters:
widget - the widget

org.netbeans.api.visual 2.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.