- java.lang.Object
- 
- java.lang.Enum<Pos>
- 
- javafx.geometry.Pos
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<Pos>
 
 public enum Pos extends Enum<Pos> A set of values for describing vertical and horizontal positioning and alignment.- Since:
- JavaFX 2.0
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description BASELINE_CENTERRepresents positioning on the baseline vertically and on the center horizontally.BASELINE_LEFTRepresents positioning on the baseline vertically and on the left horizontally.BASELINE_RIGHTRepresents positioning on the baseline vertically and on the right horizontally.BOTTOM_CENTERRepresents positioning on the bottom vertically and on the center horizontally.BOTTOM_LEFTRepresents positioning on the bottom vertically and on the left horizontally.BOTTOM_RIGHTRepresents positioning on the bottom vertically and on the right horizontally.CENTERRepresents positioning on the center both vertically and horizontally.CENTER_LEFTRepresents positioning on the center vertically and on the left horizontally.CENTER_RIGHTRepresents positioning on the center vertically and on the right horizontally.TOP_CENTERRepresents positioning on the top vertically and on the center horizontally.TOP_LEFTRepresents positioning on the top vertically and on the left horizontally.TOP_RIGHTRepresents positioning on the top vertically and on the right horizontally.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HPosgetHpos()Returns the horizontal positioning/alignment.VPosgetVpos()Returns the vertical positioning/alignment.static PosvalueOf(String name)Returns the enum constant of this type with the specified name.static Pos[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
TOP_LEFTpublic static final Pos TOP_LEFT Represents positioning on the top vertically and on the left horizontally.
 - 
TOP_CENTERpublic static final Pos TOP_CENTER Represents positioning on the top vertically and on the center horizontally.
 - 
TOP_RIGHTpublic static final Pos TOP_RIGHT Represents positioning on the top vertically and on the right horizontally.
 - 
CENTER_LEFTpublic static final Pos CENTER_LEFT Represents positioning on the center vertically and on the left horizontally.
 - 
CENTERpublic static final Pos CENTER Represents positioning on the center both vertically and horizontally.
 - 
CENTER_RIGHTpublic static final Pos CENTER_RIGHT Represents positioning on the center vertically and on the right horizontally.
 - 
BOTTOM_LEFTpublic static final Pos BOTTOM_LEFT Represents positioning on the bottom vertically and on the left horizontally.
 - 
BOTTOM_CENTERpublic static final Pos BOTTOM_CENTER Represents positioning on the bottom vertically and on the center horizontally.
 - 
BOTTOM_RIGHTpublic static final Pos BOTTOM_RIGHT Represents positioning on the bottom vertically and on the right horizontally.
 - 
BASELINE_LEFTpublic static final Pos BASELINE_LEFT Represents positioning on the baseline vertically and on the left horizontally.
 - 
BASELINE_CENTERpublic static final Pos BASELINE_CENTER Represents positioning on the baseline vertically and on the center horizontally.
 - 
BASELINE_RIGHTpublic static final Pos BASELINE_RIGHT Represents positioning on the baseline vertically and on the right horizontally.
 
- 
 - 
Method Detail- 
valuespublic static Pos[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Pos c : Pos.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static Pos valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
getVpospublic VPos getVpos() Returns the vertical positioning/alignment.- Returns:
- the vertical positioning/alignment.
 
 - 
getHpospublic HPos getHpos() Returns the horizontal positioning/alignment.- Returns:
- the horizontal positioning/alignment.
 
 
- 
 
-