de.erichseifert.gral.plots.colors
Class SingleColor
- java.lang.Object
-
- de.erichseifert.gral.plots.colors.AbstractColorMapper<java.lang.Integer>
-
- de.erichseifert.gral.plots.colors.IndexedColorMapper
-
- de.erichseifert.gral.plots.colors.SingleColor
-
- All Implemented Interfaces:
- ColorMapper, java.io.Serializable
public class SingleColor extends IndexedColorMapper
Class that represents a ColorMapper with a single color.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.erichseifert.gral.plots.colors.ColorMapper
ColorMapper.Mode
-
-
Constructor Summary
Constructors Constructor and Description SingleColor(java.awt.Paint color)Creates a new instance with the specified color.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)java.awt.Paintget(int value)Returns the Paint according to the specified value.java.awt.PaintgetColor()Returns the color of this ColorMapper.inthashCode()voidsetColor(java.awt.Paint color)Sets the color of this ColorMapper.-
Methods inherited from class de.erichseifert.gral.plots.colors.IndexedColorMapper
get
-
Methods inherited from class de.erichseifert.gral.plots.colors.AbstractColorMapper
getMode
-
-
-
-
Constructor Detail
-
SingleColor
public SingleColor(java.awt.Paint color)
Creates a new instance with the specified color.- Parameters:
color- Color to use.
-
-
Method Detail
-
get
public java.awt.Paint get(int value)
Returns the Paint according to the specified value.- Specified by:
getin classIndexedColorMapper- Parameters:
value- Numeric index.- Returns:
- Paint.
-
getColor
public java.awt.Paint getColor()
Returns the color of this ColorMapper.- Returns:
- Color.
-
setColor
public void setColor(java.awt.Paint color)
Sets the color of this ColorMapper.- Parameters:
color- Color to be set.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG