Enum Class GeoParam

java.lang.Object
java.lang.Enum<GeoParam>
codechicken.lib.gui.modular.lib.geometry.GeoParam
All Implemented Interfaces:
Serializable, Comparable<GeoParam>, Constable

public enum GeoParam extends Enum<GeoParam>
Used to define the 6 core parameters that make up an elements geometry These are named Left, Right, Width, Top, Bottom, Height. These names were chosen for ease of use, and to make it clear what they represent. Internally they are known as xMin, xMax, xSize, yMin, yMax, ySize.

Created by brandon3055 on 30/06/2023

  • Enum Constant Details

    • LEFT

      public static final GeoParam LEFT
      X_MIN
    • WIDTH

      public static final GeoParam WIDTH
      X_SIZE
    • TOP

      public static final GeoParam TOP
      Y_MIN
    • BOTTOM

      public static final GeoParam BOTTOM
      Y_MAX
    • HEIGHT

      public static final GeoParam HEIGHT
      Y_SIZE
  • Field Details

    • axis

      public final Axis axis
  • Method Details

    • values

      public static GeoParam[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GeoParam valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null