Class GrayScaleConversion

java.lang.Object
com.elpical.jclaro.admin.ws.server.GrayScaleConversion

public class GrayScaleConversion extends Object
Class holds settings concerning grayscale conversions/settings and dotgain conversion
  • Constructor Details

    • GrayScaleConversion

      public GrayScaleConversion()
      Empty constructor
    • GrayScaleConversion

      public GrayScaleConversion(HashMap<String,​String> theClaroChannelPreferences)
  • Method Details

    • isApply

      public boolean isApply()
      Returns whether to convert to black/white
      Returns:
      Whether to convert to black/white
    • setApply

      public void setApply(boolean apply)
      Sets whether to convert to grayscale
      Parameters:
      apply - Whether to convert to grayscale
    • isUseICCProfile

      public boolean isUseICCProfile()
      Returns whether to convert to grayscale using an ICC profile
      Returns:
      Whether to convert to grayscale using an ICC profile
    • setUseICCProfile

      public void setUseICCProfile(boolean useICCProfile)
      Sets whether to convert to grayscale using an ICC profile
      Parameters:
      useICCProfile - Whether to convert to grayscale using an ICC profile
    • isUseAMixOfColors

      public boolean isUseAMixOfColors()
      Returns whether to convert to grayscale using a mix of the colors
      Returns:
      Whether to convert to grayscale using a mix of the colors
    • setUseAMixOfColors

      public void setUseAMixOfColors(boolean useAMixOfColors)
      Sets whether to convert to grayscale using a mix of the colors
      Parameters:
      useAMixOfColors - Whether to convert to grayscale using a mix of the colors
    • getFileNameSuffix

      public String getFileNameSuffix()
      Returns the file name suffix for grayscale images
      Returns:
      The file name suffix for grayscale images
    • setFileNameSuffix

      public void setFileNameSuffix(String fileNameSuffix)
      Sets the file name suffix for grayscale images
      Parameters:
      fileNameSuffix - The file name suffix for grayscale images
    • isDotGainApply

      public boolean isDotGainApply()
      Whether to use the dotgain tables
      Returns:
      Whether to use the dotgain tables
    • setDotGainApply

      public void setDotGainApply(boolean dotGainApply)
      Sets whether to use the dotgain tables
      Parameters:
      dotGainApply - Whether to use the dotgain tables
    • getDotGainTable

      public String getDotGainTable()
      Returns the general dotgain table. The String starts with the minimum value, then a list of all integer values, the maximum value and ends with the string black2white separated by spaces. The values are interpolated using a spline function.
      Returns:
      A string containing the values as described in the description
    • setDotGainTable

      public void setDotGainTable(String dotGainTable)
      Sets the general dotgain table. The String starts with the minimum value, then a list of all integer values, the maximum value and ends with the string black2white separated by spaces. The values are interpolated using a spline function.
      Parameters:
      dotGainTable - A string containing the values as described in the description
    • getGain_R_Table

      public String getGain_R_Table()
      Returns the red dotgain table. The String starts with the minimum value, then a list of all integer values, the maximum value and ends with the string black2white separated by spaces. The values are interpolated using a spline function.
    • setGain_R_Table

      public void setGain_R_Table(String gain_R_Table)
      Sets the red dotgain table. The String starts with the minimum value, then a list of all integer values, the maximum value and ends with the string black2white separated by spaces. The values are interpolated using a spline function.
    • getGain_G_Table

      public String getGain_G_Table()
      Returns the green dotgain table. The String starts with the minimum value, then a list of all integer values, the maximum value and ends with the string black2white separated by spaces. The values are interpolated using a spline function.
    • setGain_G_Table

      public void setGain_G_Table(String gain_G_Table)
      Sets the green dotgain table. The String starts with the minimum value, then a list of all integer values, the maximum value and ends with the string black2white separated by spaces. The values are interpolated using a spline function.
    • getGain_B_Table

      public String getGain_B_Table()
      Returns the blue dotgain table. The String starts with the minimum value, then a list of all integer values, the maximum value and ends with the string black2white separated by spaces. The values are interpolated using a spline function.
    • setGain_B_Table

      public void setGain_B_Table(String gain_B_Table)
      Sets the blue dotgain table. The String starts with the minimum value, then a list of all integer values, the maximum value and ends with the string black2white separated by spaces. The values are interpolated using a spline function.
    • isGain_BW_Apply

      public boolean isGain_BW_Apply()
      Whether to apply the grayscale dotgain
      Returns:
      Whether to apply the grayscale dotgain
    • setGain_BW_Apply

      public void setGain_BW_Apply(boolean gain_BW_Apply)
      Set whether to apply the grayscale dotgain
      Parameters:
      gain_BW_Apply - Whether to apply the grayscale dotgain
    • getGain_BW_Table

      public String getGain_BW_Table()
      Returns the bw dotgain table. The String starts with the minimum value, then a list of all integer values, the maximum value and ends with the string black2white separated by spaces. The values are interpolated using a spline function.
    • setGain_BW_Table

      public void setGain_BW_Table(String gain_BW_Table)
      Sets the bw dotgain table. The String starts with the minimum value, then a list of all integer values, the maximum value and ends with the string black2white separated by spaces. The values are interpolated using a spline function.
    • isGain_R_Apply

      public boolean isGain_R_Apply()
      Whether to apply the red dotgain
      Returns:
      Whether to apply the red dotgain
    • setGain_R_Apply

      public void setGain_R_Apply(boolean gain_R_Apply)
      Set whether to apply the red dotgain
    • isGain_G_Apply

      public boolean isGain_G_Apply()
      Whether to apply the green dotgain
      Returns:
      Whether to apply the green dotgain
    • setGain_G_Apply

      public void setGain_G_Apply(boolean gain_G_Apply)
      Set whether to apply the green dotgain
      Parameters:
      gain_G_Apply - Whether to apply the green dotgain
    • isGain_B_Apply

      public boolean isGain_B_Apply()
      Whether to apply the blue dotgain
      Returns:
      Whether to apply the blue dotgain
    • setGain_B_Apply

      public void setGain_B_Apply(boolean gain_B_Apply)
      Set whether to apply the blue dotgain
      Parameters:
      gain_B_Apply - Whether to apply the blue dotgain
    • isUseFileNameSuffix

      public boolean isUseFileNameSuffix()
      Whether to use the filename suffix for grayscale images
      Returns:
      Whether to use the filename suffix for grayscale images
    • setUseFileNameSuffix

      public void setUseFileNameSuffix(boolean useFileNameSuffix)
      Set whether to use the filename suffix for grayscale images
      Parameters:
      useFileNameSuffix - Whether to use the filename suffix for grayscale images
    • save

      public void save(com.elpical.jclaro.database.entities.ClaroChannel aClaroChannel)