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 Link icon

  • Constructor Details Link icon

    • CornerLayoutContraint Link icon

      public CornerLayoutContraint(int anchor)
      Construct a corner layout constraint with the given anchor
      Parameters:
      anchor -
    • CornerLayoutContraint Link icon

      public CornerLayoutContraint()
      construct a corner layout constraint with the default anchor
  • Method Details Link icon

    • getHorizontalAlign Link icon

      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 Link icon

      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