org.geotools.filter.function
Class Classifier
Object
Classifier
- Direct Known Subclasses:
- ExplicitClassifier, RangedClassifier
public abstract class Classifier
- extends Object
The data structure returned by classification functions. We can take this
object, tweak it, and then pass it to a ClassifyFunction.
- Author:
- Cory Horner, Refractions Research
- Module:
modules/library/main (gt-main.jar)
Classifier
public Classifier()
getTitles
public String[] getTitles()
setTitles
public void setTitles(String[] titles)
setTitle
public void setTitle(int slot,
String title)
getTitle
public String getTitle(int slot)
classify
public int classify(Expression expr,
Object feature)
- Returns the slot containing the passed expression's value.
classify
public abstract int classify(Object value)
- Returns the slot this value belongs in.
- Parameters:
value
-
- Returns:
- index, starting from zero
getSize
public abstract int getSize()
- Returns:
- the number of bins
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 1996-2009 Geotools. All Rights Reserved.