yu.ac.bg.etf.javaqx.qswing.layouts
Class BorderLayout

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.qswing.layouts.BorderLayout
All Implemented Interfaces:
LayoutManager

public class BorderLayout
extends java.lang.Object
implements LayoutManager

Border Layout.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Field Summary
static java.lang.String CENTER
          Center layout constraints (the value is "Center").
static java.lang.String EAST
          East layout constraints (the value is "East").
static java.lang.String NORTH
          North layout constraints (the value is "North").
static java.lang.String SOUTH
          South layout constraints (the value is "South").
static java.lang.String WEST
          West layout constraints (the value is "West").
 
Constructor Summary
BorderLayout()
          Constructs new BorderLayout object.
BorderLayout(int hgap, int vgap)
          Constructs new BorderLayout object.
 
Method Summary
 void addLayoutComponent(JQComponent component, java.lang.Object constraints)
          Adds the specified component to the layout.
 int getHgap()
          Returns the horizontal gap between components.
 int getVgap()
          Returns the vertical gap between components.
 void invalidateLayout(JQContainer target)
          Invalidates the layout.
 void layoutContainer(JQContainer target)
          Lays out the specified container.
 Dimension maximumLayoutSize(JQContainer target)
          Calculates the maximum size dimensions for the specified container.
 Dimension minimumLayoutSize(JQContainer target)
          Calculates the minimum size dimensions for the specified containers.
 Dimension preferredLayoutSize(JQContainer target)
          Calculates the preferred size dimensions for the specified container.
 void removeLayoutComponent(JQComponent component)
          Removes the specified component from the layout.
 void setHgap(int hgap)
          Sets the horizontal gap between components.
 void setVgap(int vgap)
          Sets the vertical gap between components.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NORTH

public static final java.lang.String NORTH
North layout constraints (the value is "North").

See Also:
Constant Field Values

SOUTH

public static final java.lang.String SOUTH
South layout constraints (the value is "South").

See Also:
Constant Field Values

EAST

public static final java.lang.String EAST
East layout constraints (the value is "East").

See Also:
Constant Field Values

WEST

public static final java.lang.String WEST
West layout constraints (the value is "West").

See Also:
Constant Field Values

CENTER

public static final java.lang.String CENTER
Center layout constraints (the value is "Center").

See Also:
Constant Field Values
Constructor Detail

BorderLayout

public BorderLayout()
Constructs new BorderLayout object.


BorderLayout

public BorderLayout(int hgap,
                    int vgap)
Constructs new BorderLayout object.

Parameters:
hgap - the horizontal gap.
vgap - the vertical gap.
Method Detail

getHgap

public int getHgap()
Returns the horizontal gap between components.

Returns:
the horizontal gap between components

setHgap

public void setHgap(int hgap)
Sets the horizontal gap between components.

Parameters:
hgap - the horizontal gap between components

getVgap

public int getVgap()
Returns the vertical gap between components.

Returns:
the vertical gap between components

setVgap

public void setVgap(int vgap)
Sets the vertical gap between components.

Parameters:
vgap - the vertical gap between components

addLayoutComponent

public void addLayoutComponent(JQComponent component,
                               java.lang.Object constraints)
Adds the specified component to the layout.

Specified by:
addLayoutComponent in interface LayoutManager
Parameters:
component - the component to be added
constraints - the layout constraints

removeLayoutComponent

public void removeLayoutComponent(JQComponent component)
Removes the specified component from the layout.

Specified by:
removeLayoutComponent in interface LayoutManager
Parameters:
component - the component to be removed

preferredLayoutSize

public Dimension preferredLayoutSize(JQContainer target)
Calculates the preferred size dimensions for the specified container.

Specified by:
preferredLayoutSize in interface LayoutManager
Parameters:
target - the container to be laid out
Returns:
the preferred size of the specified container

maximumLayoutSize

public Dimension maximumLayoutSize(JQContainer target)
Calculates the maximum size dimensions for the specified container.

Specified by:
maximumLayoutSize in interface LayoutManager
Parameters:
target - the component to be laid out
Returns:
the maximum size of the specified container

minimumLayoutSize

public Dimension minimumLayoutSize(JQContainer target)
Calculates the minimum size dimensions for the specified containers.

Specified by:
minimumLayoutSize in interface LayoutManager
Parameters:
target - the component to be laid out
Returns:
the minimum size of the specified container

layoutContainer

public void layoutContainer(JQContainer target)
Lays out the specified container.

Specified by:
layoutContainer in interface LayoutManager
Parameters:
target - the container to be laid out

invalidateLayout

public void invalidateLayout(JQContainer target)
Invalidates the layout.

Specified by:
invalidateLayout in interface LayoutManager
Parameters:
target - the container to be laid out

toString

public java.lang.String toString()



Copyright © 2007 ETF and contributors. All Rights Reserved.