public static final enum

LayoutStyle.ComponentPlacement

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ javax.swing.LayoutStyle.ComponentPlacement

Class Overview

ComponentPlacement is an enumeration of the possible ways two components can be placed relative to each other. ComponentPlacement is used by the LayoutStyle method getPreferredGap. Refer to LayoutStyle for more information.

Summary

Enum Values
LayoutStyle.ComponentPlacement  INDENT  Enumeration value indicating the distance to indent a component is being requested. 
LayoutStyle.ComponentPlacement  RELATED  Enumeration value indicating the two components are visually related and will be placed in the same parent. 
LayoutStyle.ComponentPlacement  UNRELATED  Enumeration value indicating the two components are visually unrelated and will be placed in the same parent. 
Public Methods
static LayoutStyle.ComponentPlacement valueOf(String name)
final static ComponentPlacement[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final LayoutStyle.ComponentPlacement INDENT

Enumeration value indicating the distance to indent a component is being requested. For example, often times the children of a label will be horizontally indented from the label. To determine the preferred distance for such a gap use the INDENT type.

This value is typically only useful with a direction of EAST or WEST.

public static final LayoutStyle.ComponentPlacement RELATED

Enumeration value indicating the two components are visually related and will be placed in the same parent. For example, a JLabel providing a label for a JTextField is typically visually associated with the JTextField; the constant RELATED is used for this.

public static final LayoutStyle.ComponentPlacement UNRELATED

Enumeration value indicating the two components are visually unrelated and will be placed in the same parent. For example, groupings of components are usually visually separated; the constant UNRELATED is used for this.

Public Methods

public static LayoutStyle.ComponentPlacement valueOf (String name)

public static final ComponentPlacement[] values ()