See Also: preferredLayoutSize(),Ĭopyright 2001-2007 INRIA All Rights Reserved. Subcomponents of the specified container. Returns: the minimum dimensions to lay out the Specified by: minimumLayoutSize in interface Overrides: minimumLayoutSize in class Parameters: target - the component which needs to be laid out Public minimumLayoutSize( target) Returns the minimum dimensions needed to layout the components void, setHgap(int hgap) Sets the horizontal gap between. Returns: the preferred dimensions to lay out the Class FlowLayout void, setAlignment(int align) Sets the alignment for this layout. It allows to align controls that do not need to be aligned with other. Specified by: preferredLayoutSize in interface Overrides: preferredLayoutSize in class Parameters: target - the component which needs to be laid out The flowLayout is a simple container that renders its contents without additions. Public preferredLayoutSize( target) Returns the preferred dimensions for this layout given the components Specified by: layoutContainer in interface Overrides: layoutContainer in class Parameters: target - the specified component being laid out. Target container in order to satisfy the constraints of Its preferred size by reshaping the components in the Public void layoutContainer( target) Lays out the container. vgap - the vertical gap between components. hgap - the horizontal gap between components. Int vgap) Creates a new flow layout manager with the indicated alignment Public WorldPanel.MyFlowLayout(int align, The value of the alignment argument must be one of Public WorldPanel.MyFlowLayout(int align) Constructs a new Flow Layout with the specified alignment and a The value of the alignment argument must be one of FlowLayout.LEFT, FlowLayout.RIGHT, FlowLayout.CENTER, FlowLayout.LEADING, or FlowLayout.TRAILING. Constructs a new FlowLayout with the specified alignment and a default 5-unit horizontal and vertical gap. Public WorldPanel.MyFlowLayout() Constructs a new Flow Layout with a centered alignment and a See the constructor FlowLayout (int align). Methods inherited from class Ĭlone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait Methods inherited from class ĪddLayoutComponent, getAlignment, getHgap, getVgap, removeLayoutComponent, setAlignment, setHgap, setVgap, toString Returns the preferred dimensions for this layout given the components Returns the minimum dimensions needed to layout the componentsĬontained in the specified target container. Public class WorldPanel.MyFlowLayout extends įields inherited from class Ĭonstructs a new Flow Layout with a centered alignment and aĭefault 5-unit horizontal and vertical gap.Ĭonstructs a new Flow Layout with the specified alignment and aĬreates a new flow layout manager with the indicated alignmentĪnd the indicated horizontal and vertical gaps. 2d. All Implemented Interfaces:, java.io.Serializable Enclosing class: WorldPanel FlowLayout adds components in raster order: left to right, top to bottom. FlowLayouts are typically used to arrange buttons in a panel. SUMMARY: NESTED | FIELD | CONSTR | METHOD A FlowLayout arranges components in a directional flow, much like lines of text in a paragraph.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |