Interface com.symantec.itools.swing.Alignment
All Packages Class Hierarchy This Package Previous Next Index
Interface com.symantec.itools.swing.Alignment
- public interface Alignment
Alignment is an interface for components with labels that can be
aligned left, centered, or right.
-
ALIGN_CENTERED
- Defines the "center" label text alignment style.
-
ALIGN_LEFT
- Defines the "left" label text alignment style.
-
ALIGN_RIGHT
- Defines the "right" label text alignment style.
-
getAlignment()
- Gets the current label alignment style.
-
setAlignment(int)
- Sets the new label alignment style.
ALIGN_CENTERED
public static final int ALIGN_CENTERED
- Defines the "center" label text alignment style.
ALIGN_LEFT
public static final int ALIGN_LEFT
- Defines the "left" label text alignment style.
ALIGN_RIGHT
public static final int ALIGN_RIGHT
- Defines the "right" label text alignment style.
getAlignment
public abstract int getAlignment()
- Gets the current label alignment style.
- Returns:
- the current alignment style, one of ALIGN_LEFT,
ALIGN_CENTERED, or ALIGN_RIGHT
- See Also:
- setAlignment, ALIGN_LEFT, ALIGN_CENTERED, ALIGN_RIGHT
setAlignment
public abstract void setAlignment(int style) throws PropertyVetoException
- Sets the new label alignment style.
- Parameters:
- style - the new alignment style, one of ALIGN_LEFT,
ALIGN_CENTERED, or ALIGN_RIGHT
- Throws: PropertyVetoException
- if the specified property value is unacceptable
- See Also:
- getAlignment, ALIGN_LEFT, ALIGN_CENTERED, ALIGN_RIGHT
All Packages Class Hierarchy This Package Previous Next Index