Package org.geotools.api.style
Interface ColorMapEntry
- All Known Implementing Classes:
ColorMapEntryImpl
public interface ColorMapEntry
A basic interface for objects which can hold color map entries.
<xs:element name="ColorMapEntry"> <xs:complexType> <xs:attribute name="color" type="xs:string" use="required"/> <xs:attribute name="opacity" type="xs:double"/> <xs:attribute name="quantity" type="xs:double"/> <xs:attribute name="label" type="xs:string"/> </xs:complexType> </xs:element>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(StyleVisitor visitor) getColor()
getLabel()
Label for this Color Map Entryvoid
setColor
(Expression color) Expression resulting in a colorvoid
void
setOpacity
(Expression opacity) void
setQuantity
(Expression quantity) Quantity marking the start of this color map entry.
-
Method Details
-
getLabel
String getLabel()Label for this Color Map Entry -
setLabel
- Parameters:
label
-
-
setColor
Expression resulting in a color -
getColor
Expression getColor()- Returns:
- Expression evaluated into a color
-
setOpacity
- Parameters:
opacity
- Expressed as a value between 0 and 1
-
getOpacity
Expression getOpacity()- Returns:
- Opacity expressed as a value between 0 and 1
-
setQuantity
Quantity marking the start of this color map entry. -
getQuantity
Expression getQuantity()- Returns:
- Quanity marking the start of this color map entry
-
accept
-