Enum Class ChartOption

java.lang.Object
java.lang.Enum<ChartOption>
com.iizix.prop.ui.chart.ChartOption
All Implemented Interfaces:
IPropCnrBoolean, Serializable, Comparable<ChartOption>, Constable

public enum ChartOption extends Enum<ChartOption> implements IPropCnrBoolean
The chart boolean settings the can be set or retrieved.
Author:
Christopher Mindus
  • Enum Constant Details

    • LEGEND

      public static final ChartOption LEGEND
      Whether or not the chart shows a legend: one entry per series, the series name with a swatch of its colour, using the dojox chart Legend widget. The legend is placed at the LegendPosition of the chart and follows the series of the chart, i.e. it is rebuilt when a series is added, removed or renamed.

      Defaults to false.

    • LEGEND_SELECTABLE

      public static final ChartOption LEGEND_SELECTABLE
      Whether the legend is selectable, i.e. the dojox chart SelectableLegend widget with a check box per entry: clicking an entry hides or shows its series in the client. The selection is a client-side view state only, it is not sent to the server and does not change the $hidden option of the series. It is kept when the chart is rendered again in the same client. Without LEGEND this option has no effect.

      Defaults to false.

  • Method Details

    • values

      public static ChartOption[] 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 ChartOption 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
    • getDefaultValue

      public boolean getDefaultValue()
      Gets the default value when the property is not set.
      Specified by:
      getDefaultValue in interface IPropCnrBoolean
    • getPropName

      public String getPropName()
      Returns the name of the property, usually starting with '$'.
      Specified by:
      getPropName in interface IPropCnrBoolean