Class ImageRenderSettings

java.lang.Object
com.levigo.jadice.web.shared.model.settings.AbstractListenableRenderSettings
com.levigo.jadice.web.shared.model.settings.ImageRenderSettings
All Implemented Interfaces:
RenderSettings

public class ImageRenderSettings extends AbstractListenableRenderSettings
Settings which control various aspects of the image rendering process like desaturation, gradation or image filtering.
  • Field Details

    • GRADATION_CURVE

      public static final String GRADATION_CURVE
      Identifier key for a gradation change, used within a com.levigo.jadice.web.client.settings.RenderSettingsEvent to recognize the kind of change which happen.
      See Also:
    • DESATURATION

      public static final String DESATURATION
      Identifier key for a desaturation change, used within a com.levigo.jadice.web.client.settings.RenderSettingsEvent to recognize the kind of change which happen.
      See Also:
    • FILTER

      public static final String FILTER
      Identifier key for a filter change, used within a com.levigo.jadice.web.client.settings.RenderSettingsEvent to recognize the kind of change which happen.
      See Also:
  • Constructor Details

    • ImageRenderSettings

      public ImageRenderSettings()
      Constructor needed by gwt
  • Method Details

    • setDefaults

      protected void setDefaults()
      Description copied from class: AbstractListenableRenderSettings
      Initializes additional settings.
      Specified by:
      setDefaults in class AbstractListenableRenderSettings
    • createSnapshot

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString 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
    • getFilterType

      public FilterType getFilterType()
    • setFilterType

      public void setFilterType(FilterType filterType)
    • 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