Enum Class UISizeControl

java.lang.Object
java.lang.Enum<UISizeControl>
org.troy.capstone.constants.UISizeControl
All Implemented Interfaces:
Serializable, Comparable<UISizeControl>, Constable

public enum UISizeControl extends Enum<UISizeControl>
Enum for UI size control, to centralize all size-related constants for the UI in one place. This allows for easy adjustments to the UI layout and ensures consistency across different components.
  • Enum Constant Details

    • HEIGHT_PADDING

      public static final UISizeControl HEIGHT_PADDING
      Padding height for UI elements.
    • WIDTH_PADDING

      public static final UISizeControl WIDTH_PADDING
      Padding width for UI elements.
    • LEFT_SIDE_MAIN_PAGE_WIDTH

      public static final UISizeControl LEFT_SIDE_MAIN_PAGE_WIDTH
      Width of the left side of the main page, which contains the search results and filters.
    • RIGHT_SIDE_MAIN_PAGE_WIDTH

      public static final UISizeControl RIGHT_SIDE_MAIN_PAGE_WIDTH
      Width of the right side of the main page, which contains the filters and other controls.
    • MAIN_PAGE_HEIGHT

      public static final UISizeControl MAIN_PAGE_HEIGHT
      Total height of the main page.
    • SEARCH_BAR_WIDTH

      public static final UISizeControl SEARCH_BAR_WIDTH
      Width of the search bar at the top of the main page.
    • SEARCH_BAR_HEIGHT

      public static final UISizeControl SEARCH_BAR_HEIGHT
      Height of the search bar at the top of the main page.
    • SEARCHED_ITEM_PAGINATION_WIDTH

      public static final UISizeControl SEARCHED_ITEM_PAGINATION_WIDTH
      Width of the pagination controls for searched items.
    • SEARCHED_ITEM_PAGINATION_HEIGHT

      public static final UISizeControl SEARCHED_ITEM_PAGINATION_HEIGHT
      Height of the pagination controls for searched items, calculated as the main page height minus the search bar height and some additional padding.
    • SEARCHED_ITEM_CONTAINER_WIDTH

      public static final UISizeControl SEARCHED_ITEM_CONTAINER_WIDTH
      Width of the container holding the searched items.
    • SEARCHED_ITEM_CONTAINER_HEIGHT

      public static final UISizeControl SEARCHED_ITEM_CONTAINER_HEIGHT
      Height of the container holding the searched items, calculated as the pagination height minus some additional padding.
    • SEARCHED_ITEM_PAGINATION_BUTTON_SPACING

      public static final UISizeControl SEARCHED_ITEM_PAGINATION_BUTTON_SPACING
      Spacing between pagination buttons.
    • SEARCHED_ITEM_SPACING

      public static final UISizeControl SEARCHED_ITEM_SPACING
      Spacing between individual searched item panels within the container.
    • SEARCHED_ITEM_PANEL_WIDTH

      public static final UISizeControl SEARCHED_ITEM_PANEL_WIDTH
      Width of each individual searched item panel, calculated as the container width minus padding on both sides.
    • SEARCHED_ITEM_PANEL_HEIGHT

      public static final UISizeControl SEARCHED_ITEM_PANEL_HEIGHT
      Height of each individual searched item panel.
    • SEARCHED_ITEM_PANEL_SPACING

      public static final UISizeControl SEARCHED_ITEM_PANEL_SPACING
      Spacing between individual searched item panels within the container.
    • RIGHT_ITEM_PANEL_SPACING

      public static final UISizeControl RIGHT_ITEM_PANEL_SPACING
      Spacing between elements within the right panel of a searched item.
    • ATTRIBUTED_ITEM_IMAGE_WIDTH

      public static final UISizeControl ATTRIBUTED_ITEM_IMAGE_WIDTH
      Width of the image displayed for each attributed item.
    • ATTRIBUTED_ITEM_IMAGE_HEIGHT

      public static final UISizeControl ATTRIBUTED_ITEM_IMAGE_HEIGHT
      Height of the image displayed for each attributed item.
    • ATTRIBUTED_ITEM_CONTAINER_WIDTH

      public static final UISizeControl ATTRIBUTED_ITEM_CONTAINER_WIDTH
      Width of the container holding the attributed items, calculated as the image width plus some additional padding.
    • SEARCHED_ITEM_LABEL_MAX_WIDTH

      public static final UISizeControl SEARCHED_ITEM_LABEL_MAX_WIDTH
      Maximum width of the label displaying the name and other details of each attributed item, calculated as the panel width minus the image width and some additional padding.
    • FILTERS_CONTAINER_WIDTH

      public static final UISizeControl FILTERS_CONTAINER_WIDTH
      Width of the container holding the filters on the right side of the main page, set to half the width of the right side.
    • FILTERS_CONTAINER_HEIGHT

      public static final UISizeControl FILTERS_CONTAINER_HEIGHT
      Height of the container holding the filters on the right side of the main page, set to 2/3 of the pagination height.
    • RECENTLY_VIEWED_WINDOW_WIDTH

      public static final UISizeControl RECENTLY_VIEWED_WINDOW_WIDTH
      Width of the recently viewed items window, set to 85% of the searched item container width for consistency.
    • RECENTLY_VIEWED_WINDOW_HEIGHT

      public static final UISizeControl RECENTLY_VIEWED_WINDOW_HEIGHT
      Height of the recently viewed items window, set to match the height of the filters container for consistency.
    • SIMILAR_ITEMS_CONTAINER_WIDTH

      public static final UISizeControl SIMILAR_ITEMS_CONTAINER_WIDTH
      Width of the container holding similar items, calculated as the sum of the filters container width, recently viewed window width, and additional padding.
    • SIMILAR_ITEMS_CONTAINER_HEIGHT

      public static final UISizeControl SIMILAR_ITEMS_CONTAINER_HEIGHT
      Height of the container holding similar items, set to 90% of the filters container width.
  • Field Details

    • value

      private final int value
      The integer value associated with this enum constant, used for size control in the UI.
  • Constructor Details

    • UISizeControl

      private UISizeControl(int value)
      Constructs a UISizeControl enum constant with the specified integer value.
      Parameters:
      value - The integer value to associate with this enum constant, typically used for size control in the UI.
  • Method Details

    • values

      public static UISizeControl[] 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 UISizeControl 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
    • getValue

      public int getValue()
      Getter for the integer value associated with this enum constant.
      Returns:
      The integer value that can be used for size control in the UI.