Package | com.esri.bacore.thematicmapping.symbolization |
Class | public class Classification |
Inheritance | Classification flash.events.EventDispatcher |
Subclasses | TMClassification |
Property | Defined By | ||
---|---|---|---|
numBreaks : int
The number of required class breaks. | Classification |
Method | Defined By | ||
---|---|---|---|
Creates a new instance of the Classification class. | Classification | ||
classify(data:Array):ClassificationResults
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 |
Method | Defined By | ||
---|---|---|---|
onClassificationChanged():void
Dispatches the classificationChanged event. | Classification |
Event | Summary | Defined By | ||
---|---|---|---|---|
The classificationChanged event is dispatched when the classification is changed. | Classification |
Constant | Defined 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 |
numBreaks | property |
numBreaks:int
The number of required class breaks.
This property can be used as the source for data binding.
public function get numBreaks():int
public function set numBreaks(value:int):void
Classification | () | Constructor |
public function Classification()
Creates a new instance of the Classification class.
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.
|
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.
|
Array — Array of two numerical values [minValue, maxValue].
|
onClassificationChanged | () | method |
protected function onClassificationChanged():void
Dispatches the classificationChanged event.
classificationChanged | Event |
flash.events.Event
com.esri.bacore.thematicmapping.Classification.CLASSIFICATION_CHANGED
The classificationChanged
event is dispatched when the classification is changed.
CLASSIFICATION_CHANGED | Constant |
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_CHANGED | Constant |
public static const CLASSIFIER_CHANGED:String = classifierChanged
The Classification.CLASSIFIER_CHANGED constant defines the type of deprecated event.