Interface IPropCnrIntegerSettings<INTEGER_OPTION extends IPropCnrInteger>

All Superinterfaces:
IGProp<GProp<?>[]>, IPropCnr
All Known Implementing Classes:
Axis2D, EAxis2D, EPlot2D, ESeries, EUIChart, Plot2D, Series, UIChart

public interface IPropCnrIntegerSettings<INTEGER_OPTION extends IPropCnrInteger> extends IPropCnr
Interface implements by a property container supporting setting as choices, numbers,
Author:
Christopher Mindus
  • Method Details

    • get

      default double get(INTEGER_OPTION option)
      Gets a number option.

      The option is read from an IntProp, which is what the Designer stores for these options (the property editor's class), or from a NumberProp, which is what this interface stored before it wrote an IntProp too.

      Parameters:
      option - The option to retrieve.
      Returns:
      The option value set, or its default value if not set.
    • set

      default boolean set(INTEGER_OPTION option, int value) throws PropValidateException
      Sets a number option.

      The value is stored as an IntProp, as the Designer stores it, unless the option is already held by a NumberProp, which is then set instead.

      Parameters:
      option - The option to set.
      value - The number value to set.
      Returns:
      true if the value was changed, false for no change.
      Throws:
      PropValidateException - If the value doesn't validate.