Package PamView.panel

Class CornerLayoutContraint

java.lang.Object
PamView.panel.CornerLayoutContraint
All Implemented Interfaces:
Serializable, Cloneable

public class CornerLayoutContraint extends Object implements Serializable, Cloneable
See Also:
  • Field Details

  • 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