Packagecom.esri.bacore.thematicmapping.symbolization
Classpublic class Classification
InheritanceClassification Inheritance flash.events.EventDispatcher
Subclasses TMClassification

The Classification class is the base abstract implementation of a collection of data classifiers.



Public Properties
 PropertyDefined By
  numBreaks : int
The number of required class breaks.
Classification
Public Methods
 MethodDefined By
  
Creates a new instance of the Classification class.
Classification
  
Classifies numerical data in a number of classes.
Classification
  
ensureValidData(data:Array, numBreaks:int):void
[static] Ensures that the data array is specified and that the number of breaks is nonegative.
Classification
  
getBounds(data:Array):Array
[static] Calculates low and up bounds of values of data array.
Classification
Protected Methods
 MethodDefined By
  
Dispatches the classificationChanged event.
Classification
Events
 Event Summary Defined By
  The classificationChanged event is dispatched when the classification is changed.Classification
Public Constants
 ConstantDefined By
  CLASSIFICATION_CHANGED : String = classificationChanged
[static] The Classification.CLASSIFICATION_CHANGED constant defines the value of the type property of the flash.events.Event object for a classificationChanged event.
Classification
Property Detail
numBreaksproperty
numBreaks:int

The number of required class breaks.

This property can be used as the source for data binding.


Implementation
    public function get numBreaks():int
    public function set numBreaks(value:int):void
Constructor Detail
Classification()Constructor
public function Classification()

Creates a new instance of the Classification class.

Method Detail
classify()method
public function classify(data:Array):ClassificationResults

Classifies numerical data in a number of classes.

This method is "abstract". Its base implementation throws an error.

Parameters

data:Array — Array of numerical values.

Returns
ClassificationResults — Classification results.
ensureValidData()method 
public static function ensureValidData(data:Array, numBreaks:int):void

Ensures that the data array is specified and that the number of breaks is nonegative.

This method throws the ArgumentError if the input data are invalid.

Parameters

data:Array — Array of numerical values.
 
numBreaks:int — A number of required class breaks.

getBounds()method 
public static function getBounds(data:Array):Array

Calculates low and up bounds of values of data array.

Parameters

data:Array — Array containing numerical values.

Returns
Array — Array of two numerical values [minValue, maxValue].
onClassificationChanged()method 
protected function onClassificationChanged():void

Dispatches the classificationChanged event.

Event Detail
classificationChanged Event
Event Object Type: flash.events.Event
Event.type property = com.esri.bacore.thematicmapping.Classification.CLASSIFICATION_CHANGED

The classificationChanged event is dispatched when the classification is changed.

Constant Detail
CLASSIFICATION_CHANGEDConstant
public static const CLASSIFICATION_CHANGED:String = classificationChanged

The Classification.CLASSIFICATION_CHANGED constant defines the value of the type property of the flash.events.Event object for a classificationChanged event.

CLASSIFIER_CHANGEDConstant 
public static const CLASSIFIER_CHANGED:String = classifierChanged

The Classification.CLASSIFIER_CHANGED constant defines the type of deprecated event.