Interface IPropCnrChoiceOption<CHOICE extends IPropCnrChoiceOption<CHOICE>>

All Known Subinterfaces:
IAxisChoiceOption, IChartChoiceOption, IPlotChoiceOption
All Known Implementing Classes:
AxisFixLower, AxisFixUpper, AxisPosition, AxisTitleOrientation, ChartTheme, PlotLabelStyle, PlotRadialGradient, PlotType, TitlePosition

public interface IPropCnrChoiceOption<CHOICE extends IPropCnrChoiceOption<CHOICE>>
Interface used to tag an option for generic options that can be retrieved or set.
Author:
Christopher Mindus
  • Method Details Link icon

    • enumValues Link icon

      IPropCnrChoiceOption<CHOICE>[] enumValues()
      Gets all the choices possible, including default.
    • getInt Link icon

      int getInt()
      Returns the choice as an integer value.
    • getDefault Link icon

      CHOICE getDefault()
      Gets the default choice.
    • name Link icon

      String name()
      Gets the short string description of the choice.
    • isDefault Link icon

      default boolean isDefault()
      Checks if the choice it the default choice.
    • getPropName Link icon

      String getPropName()
      Gets the property name.
    • getChoice Link icon

      default CHOICE getChoice(int value)
      Returns a choice from an integer value.
    • get Link icon

      default CHOICE get(PropCnr pc)
      Gets a choice option.
      Parameters:
      pc - The property container.
      Returns:
      The choice set, or the default choice if the option is undefined.
    • set Link icon

      default boolean set(PropCnr pc)
      Sets a choice option.
      Parameters:
      pc - The property container.
      Returns:
      true if the value was changed, false for no change.