Package org.geotools.styling
Class ColorMapEntryImpl
- Object
-
- ColorMapEntryImpl
-
- All Implemented Interfaces:
ColorMapEntry
public class ColorMapEntryImpl extends Object implements ColorMapEntry
Default color map entry implementation- Author:
- aaime
-
-
Constructor Summary
Constructors Constructor Description ColorMapEntryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(StyleVisitor visitor)booleanequals(Object obj)ExpressiongetColor()StringgetLabel()Label for this Color Map EntryExpressiongetOpacity()ExpressiongetQuantity()inthashCode()voidsetColor(Expression color)Expression resulting in a colorvoidsetLabel(String label)voidsetOpacity(Expression opacity)voidsetQuantity(Expression quantity)Quantity marking the start of this color map entry.StringtoString()
-
-
-
Method Detail
-
getLabel
public String getLabel()
Description copied from interface:ColorMapEntryLabel for this Color Map Entry- Specified by:
getLabelin interfaceColorMapEntry- See Also:
ColorMapEntry.getLabel()
-
setLabel
public void setLabel(String label)
- Specified by:
setLabelin interfaceColorMapEntry- See Also:
ColorMapEntry.setLabel(java.lang.String)
-
setColor
public void setColor(Expression color)
Description copied from interface:ColorMapEntryExpression resulting in a color- Specified by:
setColorin interfaceColorMapEntry- See Also:
ColorMapEntry.setColor(org.geotools.api.filter.expression.Expression)
-
getColor
public Expression getColor()
- Specified by:
getColorin interfaceColorMapEntry- Returns:
- Expression evaluated into a color
- See Also:
ColorMapEntry.getColor()
-
setOpacity
public void setOpacity(Expression opacity)
- Specified by:
setOpacityin interfaceColorMapEntry- Parameters:
opacity- Expressed as a value between 0 and 1- See Also:
ColorMapEntry.setOpacity(org.geotools.api.filter.expression.Expression)
-
getOpacity
public Expression getOpacity()
- Specified by:
getOpacityin interfaceColorMapEntry- Returns:
- Opacity expressed as a value between 0 and 1
- See Also:
ColorMapEntry.getOpacity()
-
setQuantity
public void setQuantity(Expression quantity)
Description copied from interface:ColorMapEntryQuantity marking the start of this color map entry.- Specified by:
setQuantityin interfaceColorMapEntry- See Also:
ColorMapEntry.setQuantity(org.geotools.api.filter.expression.Expression)
-
getQuantity
public Expression getQuantity()
- Specified by:
getQuantityin interfaceColorMapEntry- Returns:
- Quanity marking the start of this color map entry
- See Also:
ColorMapEntry.getQuantity()
-
accept
public void accept(StyleVisitor visitor)
- Specified by:
acceptin interfaceColorMapEntry
-
-