Class ImageRenderSettings

  • All Implemented Interfaces:
    com.google.gwt.user.client.rpc.IsSerializable, RenderSettings

    public class ImageRenderSettings
    extends AbstractListenableRenderSettings
    A @ link ProcessingSettings} type which controls various aspects of the image rendering process like desaturation, gradation or image filtering.
    • Field Detail

      • GRADATION_CURVE

        public static final String GRADATION_CURVE
        Identifier key for a gradation change, used within a @ link RenderSettingsEvent} to recognize the kind of change which happen.
        See Also:
        Constant Field Values
      • DESATURATION

        public static final String DESATURATION
        Identifier key for a desaturation change, used within a @ link RenderSettingsEvent} to recognize the kind of change which happen.
        See Also:
        Constant Field Values
      • FILTER

        public static final String FILTER
        Identifier key for a filter change, used within a @ link RenderSettingsEvent} to recognize the kind of change which happen.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ImageRenderSettings

        public ImageRenderSettings()
        Constructor needed by gwt
    • Method Detail

      • createSnapshot

        public ImageRenderSettings createSnapshot()
        Creates and returns a snapshot copy of this settings instance.
        Returns:
        snapshot copy
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getGradationCurve

        public GradationCurve getGradationCurve()
        Returns the gradation curve to be applied to the image.
        Returns:
        gradation curve
      • setGradationCurve

        public void setGradationCurve​(GradationCurve gradationCurve)
        Sets the gradation curve to be applied to the image. The gradation curve may not be null. to create an identity gradation use the default constructor GradationCurve().
        Parameters:
        gradationCurve - the new gradation curve
      • update

        public void update​(String propertyName,
                           RenderSettings other,
                           Object... details)
        Description copied from interface: RenderSettings
        Updates this instance property specified by given property name with the value provided by the other processing setting. For each update-supported property the render settings type have to provide a unique property name.
        Parameters:
        propertyName - the name of the property to update. Update supported properties have unique property identifier provided by the specific render settings implementation.
        other - the processing setting which provide the new property value. Therefore the other processing setting have to be of the same type as this instance.
        details - (optional) if some describing details are necessary to do a specific update, the details parameter will transport this information