Interface IPropCnrKStringSettings<KSTRING_OPTION extends IPropCnrKString>

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

public interface IPropCnrKStringSettings<KSTRING_OPTION extends IPropCnrKString> extends IPropCnr
Interface implements by a property container supporting setting as KString's.
Author:
Christopher Mindus
  • Method Details

    • get

      default KString get(KSTRING_OPTION option)
      Gets a KString option.
      Parameters:
      option - The option to retrieve.
      Returns:
      The option value set, or its default value if not set (can also be null).
    • getNoDefault

      default String getNoDefault(KSTRING_OPTION option)
      Gets a stroke option without default value, i.e. returns null if not set.
      Parameters:
      option - The option to retrieve.
      Returns:
      The option value set, or null if not set.
    • set

      default boolean set(KSTRING_OPTION option, String value) throws PropValidateException
      Sets a KString option as a plain string.
      Parameters:
      option - The option to set.
      value - The plain string value to set, or null to set default value.
      Returns:
      true if the value was changed, false for no change.
      Throws:
      PropValidateException - If the value doesn't validate.
    • set

      default boolean set(KSTRING_OPTION option, KString value) throws PropValidateException
      Sets a KString option.
      Parameters:
      option - The option to set.
      value - The KString value to set, or null to set default value.
      Returns:
      true if the value was changed, false for no change.
      Throws:
      PropValidateException - If the value doesn't validate.