dundas.controls.DiscreteClass Class

Represents a logical class for a nominal or categorical item.
 

Inheritance Hierarchy

 
Class
   dundas.controls.BindingClass
      dundas.controls.DiscreteClass
 

Constructors

 
  Name Description
init Initializes a new instance of the DiscreteClass class.
 
 

Properties

 
  Name Description
caption Gets or sets an optional display value or array of display values for dataValue.
category Gets or sets the categorical value this class applies to.
pointsBound Gets or sets the number of data points that have been bound by this class. Inherited from dundas.controls.BindingClass.
value Gets or sets the output value this class produces.
 
 

Methods

 
  Name Description
accepts Tests whether a data value is accepted by this binding class. Inherited from dundas.controls.BindingClass.
fromJObject Applies the property values from a plain object created from JSON to the properties of this instance. Inherited from Class.
getDisplayedText Gets the text to display for this class.
getOutputValue Determines the output value this class assigns to the data value. The value is only defined if the accepts method returns true. Inherited from dundas.controls.BindingClass.
setupLegendItem Sets up a legend item to identify this class assuming a rectangular shape. Inherited from dundas.controls.BindingClass.
toJSON Implementation for toJSON to return an object that will include this class's prototype property values when stringified. Inherited from Class.