Class ColorfulImageProcessor
- java.lang.Object
-
- org.openstreetmap.josm.gui.layer.imagery.ColorfulImageProcessor
-
- All Implemented Interfaces:
SessionAwareReadApply
,ImageProcessor
public class ColorfulImageProcessor extends Object implements ImageProcessor, SessionAwareReadApply
Adds or removes the colorfulness of the image.- Since:
- 10547
-
-
Field Summary
Fields Modifier and Type Field Description private double
colorfulness
private ColorfulFilter
op
-
Constructor Summary
Constructors Constructor Description ColorfulImageProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyFromPropertiesMap(Map<String,String> properties)
Import settings from a map of properties.double
getColorfulness()
Gets the colorfulness value.BufferedImage
process(BufferedImage image)
This method should process given image according to image processors which is contained in the layervoid
setColorfulness(double colorfulness)
Sets the colorfulness value.Map<String,String>
toPropertiesMap()
Export settings to a map of properties.String
toString()
-
-
-
Field Detail
-
op
private ColorfulFilter op
-
colorfulness
private double colorfulness
-
-
Constructor Detail
-
ColorfulImageProcessor
public ColorfulImageProcessor()
-
-
Method Detail
-
getColorfulness
public double getColorfulness()
Gets the colorfulness value.- Returns:
- The value
-
setColorfulness
public void setColorfulness(double colorfulness)
Sets the colorfulness value. Clamps it to 0+- Parameters:
colorfulness
- The value
-
process
public BufferedImage process(BufferedImage image)
Description copied from interface:ImageProcessor
This method should process given image according to image processors which is contained in the layer- Specified by:
process
in interfaceImageProcessor
- Parameters:
image
- that should be processed- Returns:
- processed image
-
applyFromPropertiesMap
public void applyFromPropertiesMap(Map<String,String> properties)
Description copied from interface:SessionAwareReadApply
Import settings from a map of properties.- Specified by:
applyFromPropertiesMap
in interfaceSessionAwareReadApply
- Parameters:
properties
- properties map
-
toPropertiesMap
public Map<String,String> toPropertiesMap()
Description copied from interface:SessionAwareReadApply
Export settings to a map of properties.- Specified by:
toPropertiesMap
in interfaceSessionAwareReadApply
- Returns:
- map of properties
-
-