Interface ColorTableClass
- All Superinterfaces:
Comparable<ColorTableClass>,org.gvsig.tools.observer.Observable,org.gvsig.tools.persistence.Persistent,org.gvsig.tools.observer.WeakReferencingObservable
public interface ColorTableClass
extends org.gvsig.tools.persistence.Persistent, Comparable<ColorTableClass>, org.gvsig.tools.observer.WeakReferencingObservable
Class to represent each class of a
ColorTable- Author:
- Lluis Marques
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()doublegetName()doublegetValue()voidSets the color ofColorTableClassvoidsetInterpolated(double interpolated) Sets percent of interpolation with the nextColorTableClass.voidSets name of this classvoidsetValue(double value) Sets value ofColorTableClassMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gvsig.tools.observer.Observable
addObserver, deleteObserver, deleteObserversMethods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToState
-
Method Details
-
getColor
Color getColor()- Returns:
- Gets the color of
ColorTableClass
-
setColor
Sets the color ofColorTableClass- Parameters:
color-Colorof class
-
getInterpolated
double getInterpolated()- Returns:
- Gets the percent of interpolation with the next
ColorTableClass
-
setInterpolated
void setInterpolated(double interpolated) Sets percent of interpolation with the nextColorTableClass.- Parameters:
interpolated- Percent value.
-
getValue
double getValue()- Returns:
- Gets value of
ColorTableClass
-
setValue
void setValue(double value) Sets value ofColorTableClass- Parameters:
value- Value of this class.
-
getName
String getName()- Returns:
- Gets name of class
-
setName
Sets name of this class- Parameters:
nameClass- Name of this class
-