JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.swing
Class JCMultiSelectList.JCFixedCenterLayout

java.lang.Object
  |
  +--com.klg.jclass.swing.JCMultiSelectList.JCFixedCenterLayout
All Implemented Interfaces:
LayoutManager, LayoutManager2, Serializable
Enclosing class:
JCMultiSelectList

protected class JCMultiSelectList.JCFixedCenterLayout
extends Object
implements LayoutManager2, Serializable

Internal layout.

See Also:
Serialized Form

Field Summary
protected  Component center
           
protected  Component east
           
protected  int hgap
           
protected  Component west
           
 
Constructor Summary
JCMultiSelectList.JCFixedCenterLayout()
          Constructs a new layout with no gap between components.
JCMultiSelectList.JCFixedCenterLayout(int hgap)
          Constructs a layout with the specified gaps between components.
 
Method Summary
 void addLayoutComponent(Component comp, Object constraints)
          Adds the specified component to the layout.
 void addLayoutComponent(String name, Component comp)
          We are forced to support it by LayoutManager.
 int getHgap()
          Returns the horizontal gap between components.
 float getLayoutAlignmentX(Container parent)
          Returns the alignment along the X axis.
 float getLayoutAlignmentY(Container parent)
          Returns the alignment along the Y axis.
 void invalidateLayout(Container target)
          Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
 void layoutContainer(Container target)
          Lays out the target argument using this layout.
 Dimension maximumLayoutSize(Container target)
          Determines the maximum size of the target.
 Dimension minimumLayoutSize(Container target)
          Determines the minimum size of the target.
 Dimension preferredLayoutSize(Container target)
          Determines the preferred size of the target.
 void removeLayoutComponent(Component component)
          Removes the specified component from this layout.
 void setHgap(int hgap)
          Sets the horizontal gap between components.
 String toString()
          Returns a String representation of the state of this layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hgap

protected int hgap

west

protected Component west

east

protected Component east

center

protected Component center
Constructor Detail

JCMultiSelectList.JCFixedCenterLayout

public JCMultiSelectList.JCFixedCenterLayout()
Constructs a new layout with no gap between components.


JCMultiSelectList.JCFixedCenterLayout

public JCMultiSelectList.JCFixedCenterLayout(int hgap)
Constructs a layout with the specified gaps between components.

Parameters:
hgap -
Method Detail

getHgap

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

Returns:
horizontal gap

setHgap

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

Parameters:
hgap -

addLayoutComponent

public void addLayoutComponent(Component comp,
                               Object constraints)
Adds the specified component to the layout.

Specified by:
addLayoutComponent in interface LayoutManager2
Parameters:
comp -
constraints -

addLayoutComponent

public void addLayoutComponent(String name,
                               Component comp)
We are forced to support it by LayoutManager.

Specified by:
addLayoutComponent in interface LayoutManager
Parameters:
name -
comp -

removeLayoutComponent

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

Specified by:
removeLayoutComponent in interface LayoutManager
Parameters:
component -

minimumLayoutSize

public Dimension minimumLayoutSize(Container target)
Determines the minimum size of the target.

Specified by:
minimumLayoutSize in interface LayoutManager
Parameters:
target -
Returns:

preferredLayoutSize

public Dimension preferredLayoutSize(Container target)
Determines the preferred size of the target.

Specified by:
preferredLayoutSize in interface LayoutManager
Parameters:
target -
Returns:

maximumLayoutSize

public Dimension maximumLayoutSize(Container target)
Determines the maximum size of the target.

Specified by:
maximumLayoutSize in interface LayoutManager2
Parameters:
target -
Returns:

getLayoutAlignmentX

public float getLayoutAlignmentX(Container parent)
Returns the alignment along the X axis.

Specified by:
getLayoutAlignmentX in interface LayoutManager2
Parameters:
parent -
Returns:
alignment along X axis

getLayoutAlignmentY

public float getLayoutAlignmentY(Container parent)
Returns the alignment along the Y axis.

Specified by:
getLayoutAlignmentY in interface LayoutManager2
Parameters:
parent -
Returns:
alignment along Y axis

invalidateLayout

public void invalidateLayout(Container target)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.

Specified by:
invalidateLayout in interface LayoutManager2
Parameters:
target -

layoutContainer

public void layoutContainer(Container target)
Lays out the target argument using this layout.

Specified by:
layoutContainer in interface LayoutManager
Parameters:
target -

toString

public String toString()
Returns a String representation of the state of this layout.

Overrides:
toString in class Object
Returns:
String representation of the state of this layout

Copyright © 2004 Quest Software Inc..
All rights reserved.