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 void
accept(StyleVisitor visitor)
boolean
equals(Object obj)
Expression
getColor()
String
getLabel()
Label for this Color Map EntryExpression
getOpacity()
Expression
getQuantity()
int
hashCode()
void
setColor(Expression color)
Expression resulting in a colorvoid
setLabel(String label)
void
setOpacity(Expression opacity)
void
setQuantity(Expression quantity)
Quantity marking the start of this color map entry.String
toString()
-
-
-
Method Detail
-
getLabel
public String getLabel()
Description copied from interface:ColorMapEntry
Label for this Color Map Entry- Specified by:
getLabel
in interfaceColorMapEntry
- See Also:
ColorMapEntry.getLabel()
-
setLabel
public void setLabel(String label)
- Specified by:
setLabel
in interfaceColorMapEntry
- See Also:
ColorMapEntry.setLabel(java.lang.String)
-
setColor
public void setColor(Expression color)
Description copied from interface:ColorMapEntry
Expression resulting in a color- Specified by:
setColor
in interfaceColorMapEntry
- See Also:
ColorMapEntry.setColor(org.geotools.api.filter.expression.Expression)
-
getColor
public Expression getColor()
- Specified by:
getColor
in interfaceColorMapEntry
- Returns:
- Expression evaluated into a color
- See Also:
ColorMapEntry.getColor()
-
setOpacity
public void setOpacity(Expression opacity)
- Specified by:
setOpacity
in 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:
getOpacity
in 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:ColorMapEntry
Quantity marking the start of this color map entry.- Specified by:
setQuantity
in interfaceColorMapEntry
- See Also:
ColorMapEntry.setQuantity(org.geotools.api.filter.expression.Expression)
-
getQuantity
public Expression getQuantity()
- Specified by:
getQuantity
in interfaceColorMapEntry
- Returns:
- Quanity marking the start of this color map entry
- See Also:
ColorMapEntry.getQuantity()
-
accept
public void accept(StyleVisitor visitor)
- Specified by:
accept
in interfaceColorMapEntry
-
-