Package PamView.panel
Class CornerLayoutContraint
java.lang.Object
PamView.panel.CornerLayoutContraint
- All Implemented Interfaces:
Serializable
,Cloneable
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionint
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final long
-
Constructor Summary
ConstructorDescriptionconstruct a corner layout constraint with the default anchorCornerLayoutContraint
(int anchor) Construct a corner layout constraint with the given anchor -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getHorizontalAlign
(int anchor) Get the horizontal positioning for a particular anchor.static int
getVerticalAlign
(int anchor) Get the vertical positioning for a particular anchor.
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
PAGE_END
public static final int PAGE_END- See Also:
-
PAGE_START
public static final int PAGE_START- See Also:
-
LINE_END
public static final int LINE_END- See Also:
-
LINE_START
public static final int LINE_START- See Also:
-
FIRST_LINE_START
public static final int FIRST_LINE_START- See Also:
-
FIRST_LINE_END
public static final int FIRST_LINE_END- See Also:
-
LAST_LINE_END
public static final int LAST_LINE_END- See Also:
-
LAST_LINE_START
public static final int LAST_LINE_START- See Also:
-
CENTER
public static final int CENTER- See Also:
-
FILL
public static final int FILL- See Also:
-
EAST
public static final int EAST- See Also:
-
NORTH
public static final int NORTH- See Also:
-
anchor
public int anchor
-
-
Constructor Details
-
CornerLayoutContraint
public CornerLayoutContraint(int anchor) Construct a corner layout constraint with the given anchor- Parameters:
anchor
-
-
CornerLayoutContraint
public CornerLayoutContraint()construct a corner layout constraint with the default anchor
-
-
Method Details
-
getHorizontalAlign
public static int getHorizontalAlign(int anchor) Get the horizontal positioning for a particular anchor.- Parameters:
anchor
-- Returns:
- -1 = left, 1 = right, 0 = middle or undefined
-
getVerticalAlign
public static int getVerticalAlign(int anchor) Get the vertical positioning for a particular anchor.- Parameters:
anchor
-- Returns:
- -1 = top, 1 = bottom, 0 = middle or undefined
-