Class Size
java.lang.Object
com.elpical.jclaro.admin.ws.server.Size
Class which holds all size related settings
- See Also:
- Elpical elearning
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the cropping box method 1=upper left 2=upper center 3=upper right 4=middle left 5=middle center 6=middle right 7=lower left 8=lower center 9=lower rightdouble
Returns the height of the crop boxdouble
Returns the width of the crop boxdouble
getCropX()
Returns the x coordinate of the crop boxdouble
getCropY()
Returns the y coordinate of the crop boxfloat
getdPI()
Returns the dpi value to change images toint
Returns the fill box pixel heightint
Returns the fill box pixel widthint
Returns the fit in box pixel heightint
Returns the fit in box pixel widthfloat
Height in inchesint
Returns the height in pixelsfloat
Returns the value for longest size in inchesint
Returns the value for longest size in pixelsint
Returns the value for maximum input file sizeint
Returns the value for maximum image size for outputint
Returns the value for maximum image size for inputint
Returns the value for minimum image size in pixels for image in PDFfloat
Returns the value for shortest size in inchesint
Returns the value for shortest size in pixelsfloat
Returns the width in inchesint
Returns the width in pixelsboolean
Returns whether cropping with predefined box is activeboolean
boolean
boolean
Returns whether to always change the dpi valueboolean
Returns whether the dpi setting is activeboolean
Returns whether the fill box option is activeboolean
Returns whether fit in box is activeboolean
Returns whether height in inches is activeboolean
Returns whether height in pixels is activeboolean
Deprecated.boolean
Returns whether the longest size option in inches is activeboolean
Returns whether the longest size option in pixels is activeboolean
Returns whether maximum input file size is activeboolean
Returns whether the option maximum image size for output is activeboolean
Returns whether the option maximum image size for input is activeboolean
Returns whether minimum image size for images in PDF is activeboolean
Returns whether to do only downsampling, if neededboolean
Returns whether to do only upsampling, if neededboolean
Returns whether option to rotate images based on EXIF information is activeboolean
Returns whether resampling is activeboolean
boolean
Returns whether to always change the dpi valueboolean
Returns whether the shortest size option in inches is activeboolean
Returns whether the shortest size option in pixels is activeboolean
boolean
Returns whether width in inches is activeboolean
Returns whether width in pixels is activevoid
save(com.elpical.jclaro.database.entities.ClaroChannel aClaroChannel)
void
setBoxCrop(int boxCrop)
Sets the cropping box method 1=upper left 2=upper center 3=upper right 4=middle left 5=middle center 6=middle right 7=lower left 8=lower center 9=lower rightvoid
setBoxCropActive(boolean boxCropActive)
Sets whether cropping with predefined box is activevoid
setCropActive(boolean cropActive)
void
setCropExtendImage(boolean cropExtendImage)
void
setCropHeight(double cropHeight)
Sets the height of the crop boxvoid
setCropWidth(double cropWidth)
Sets the width of the crop boxvoid
setCropX(double cropX)
Sets the x coordinate of the crop boxvoid
setCropY(double cropY)
Sets the y coordinate of the crop boxvoid
setDownSampleForRemoveBG(boolean downSampleForRemoveBG)
Sets whether to always change the dpi valuevoid
setdPI(float dPI)
Sets the dpi value to change images tovoid
setdPIActive(boolean dPIActive)
Sets whether the dpi setting is activevoid
setFillBoxActive(boolean fillBoxActive)
Sets whether the fill box option is activevoid
setFillBoxHeight(int fillBoxHeight)
Sets the fill box pixel heightvoid
setFillBoxWidth(int fillBoxWidth)
Sets the fill box pixel widthvoid
setFitInBoxActive(boolean fitInBoxActive)
Sets whether fit in box is activevoid
setFitInBoxHeight(int fitInBoxHeight)
Sets the fit in box pixel heightvoid
setFitInBoxWidth(int fitInBoxWidth)
Sets the fit in box pixel widthvoid
setHeightInches(float heightInches)
Sets height in inchesvoid
setHeightInchesActive(boolean heightInchesActive)
Sets whether height in inches is activevoid
setHeightPixels(int heightPixels)
Sets the height in pixelsvoid
setHeightPixelsActive(boolean heightPixelsActive)
Sets whether height in pixels is activevoid
setHighQualityResample(boolean highQualityResample)
Deprecated.void
setLongestSizeInches(float longestSizeInches)
Sets the value for longest size in inchesvoid
setLongestSizeInchesActive(boolean longestSizeInchesActive)
Sets whether the longest size option in inches is activevoid
setLongestSizePixels(int longestSizePixels)
Sets the value for longest size in pixelsvoid
setLongestSizePixelsActive(boolean longestSizePixelsActive)
Sets whether the longest size option in pixels is activevoid
setMaxFileSizeInput(int maxFileSizeInput)
Sets the value for maximum input file sizevoid
setMaxFileSizeInputActive(boolean maxFileSizeInputActive)
Sets whether maximum input file size is activevoid
setMaxImageSize(int maxImageSize)
Sets the value for maximum image size for outputvoid
setMaxImageSizeActive(boolean maxImageSizeActive)
Sets whether the option maximum image size for output for output is activevoid
setMaxImageSizeInput(int maxImageSizeInput)
Sets the value for maximum image size for inputvoid
setMaxImageSizeInputActive(boolean maxImageSizeInputActive)
Sets whether the option maximum image size for input is activevoid
setMinPdfImagePixelSize(int minPdfImagePixelSize)
Sets the value for minimum image size in pixels for image in PDFvoid
setMinPdfImagePixelSizeActive(boolean minPdfImagePixelSizeActive)
Sets whether minimum image size for images in PDF is activevoid
setOnlyDownSample(boolean onlyDownSample)
Sets whether to do only downsampling, if neededvoid
setOnlyUpSample(boolean onlyUpSample)
Sets whether to do only upsampling, if neededvoid
setOrientationBasedOnExif(boolean orientationBasedOnExif)
Sets whether option to rotate images based on EXIF information is activevoid
setResampleActive(boolean resampleActive)
Sets whether resampling is activevoid
void
setRotateActive(boolean rotateActive)
void
setSetAlwaysDPI(boolean setAlwaysDPI)
Sets whether to always change the dpi valuevoid
setShortestSizeInches(float shortestSizeInches)
Sets the value for shortest size in inchesvoid
setShortestSizeInchesActive(boolean shortestSizeInchesActive)
Sets whether the shortest size option in inches is activevoid
setShortestSizePixels(int shortestSizePixels)
Sets the value for shortest size in pixelsvoid
setShortestSizePixelsActive(boolean shortestSizePixelsActive)
Sets whether the shortest size option in pixels is activevoid
setSoftCropActive(boolean softCropActive)
void
setWidthInches(float widthInches)
Sets the width in inchesvoid
setWidthInchesActive(boolean widthInchesActive)
Sets whether width in inches is activevoid
setWidthPixels(int widthPixels)
Sets the width in pixelsvoid
setWidthPixelsActive(boolean widthPixelsActive)
Sets whether width in pixels is active
-
Constructor Details
-
Size
public Size()Empty constructor -
Size
-
-
Method Details
-
isRotateActive
public boolean isRotateActive() -
setRotateActive
public void setRotateActive(boolean rotateActive) -
getRotate
-
setRotate
-
isCropActive
public boolean isCropActive() -
setCropActive
public void setCropActive(boolean cropActive) -
isSoftCropActive
public boolean isSoftCropActive() -
setSoftCropActive
public void setSoftCropActive(boolean softCropActive) -
isBoxCropActive
public boolean isBoxCropActive()Returns whether cropping with predefined box is active- Returns:
- Whether cropping with predefined box is active
-
setBoxCropActive
public void setBoxCropActive(boolean boxCropActive)Sets whether cropping with predefined box is active- Parameters:
boxCropActive
- Whether cropping with predefined box is active
-
getBoxCrop
public int getBoxCrop()Returns the cropping box method 1=upper left 2=upper center 3=upper right 4=middle left 5=middle center 6=middle right 7=lower left 8=lower center 9=lower right- Returns:
- The cropping box method
-
setBoxCrop
public void setBoxCrop(int boxCrop)Sets the cropping box method 1=upper left 2=upper center 3=upper right 4=middle left 5=middle center 6=middle right 7=lower left 8=lower center 9=lower right- Parameters:
boxCrop
- The cropping box method
-
getCropX
public double getCropX()Returns the x coordinate of the crop box- Returns:
- The x coordinate of the crop box
-
setCropX
public void setCropX(double cropX)Sets the x coordinate of the crop box- Parameters:
cropX
- The x coordinate of the crop box
-
getCropY
public double getCropY()Returns the y coordinate of the crop box- Returns:
- The y coordinate of the crop box
-
setCropY
public void setCropY(double cropY)Sets the y coordinate of the crop box- Parameters:
cropY
- The y coordinate of the crop box
-
getCropWidth
public double getCropWidth()Returns the width of the crop box- Returns:
- The width of the crop box
-
setCropWidth
public void setCropWidth(double cropWidth)Sets the width of the crop box- Parameters:
cropWidth
- The width of the crop box
-
getCropHeight
public double getCropHeight()Returns the height of the crop box- Returns:
- The height of the crop box
-
setCropHeight
public void setCropHeight(double cropHeight)Sets the height of the crop box- Parameters:
cropHeight
- The height of the crop box
-
isdPIActive
public boolean isdPIActive()Returns whether the dpi setting is active- Returns:
- Whether the dpi setting is active
-
setdPIActive
public void setdPIActive(boolean dPIActive)Sets whether the dpi setting is active- Parameters:
dPIActive
- Whether the dpi setting is active
-
isOnlyUpSample
public boolean isOnlyUpSample()Returns whether to do only upsampling, if needed- Returns:
- Whether to do only upsampling, if needed
-
setOnlyUpSample
public void setOnlyUpSample(boolean onlyUpSample)Sets whether to do only upsampling, if needed- Parameters:
onlyUpSample
- Whether to do only upsampling, if needed
-
isOnlyDownSample
public boolean isOnlyDownSample()Returns whether to do only downsampling, if needed- Returns:
- Whether to do only downsampling, if needed
-
setOnlyDownSample
public void setOnlyDownSample(boolean onlyDownSample)Sets whether to do only downsampling, if needed- Parameters:
onlyDownSample
- Whether to do only downsampling, if needed
-
getdPI
public float getdPI()Returns the dpi value to change images to- Returns:
- The dpi value to change images to
-
setdPI
public void setdPI(float dPI)Sets the dpi value to change images to- Parameters:
dPI
- The dpi value to change images to
-
isResampleActive
public boolean isResampleActive()Returns whether resampling is active- Returns:
- Whether resampling is active
-
setResampleActive
public void setResampleActive(boolean resampleActive)Sets whether resampling is active- Parameters:
resampleActive
- Whether resampling is active
-
isHighQualityResample
public boolean isHighQualityResample()Deprecated. -
setHighQualityResample
public void setHighQualityResample(boolean highQualityResample)Deprecated. -
isWidthInchesActive
public boolean isWidthInchesActive()Returns whether width in inches is active- Returns:
- Whether width in inches is active
-
setWidthInchesActive
public void setWidthInchesActive(boolean widthInchesActive)Sets whether width in inches is active- Parameters:
widthInchesActive
- Whether width in inches is active
-
getWidthInches
public float getWidthInches()Returns the width in inches- Returns:
- The width in inches
-
setWidthInches
public void setWidthInches(float widthInches)Sets the width in inches- Parameters:
widthInches
- The width in inches
-
isWidthPixelsActive
public boolean isWidthPixelsActive()Returns whether width in pixels is active- Returns:
- Whether width in pixels is active
-
setWidthPixelsActive
public void setWidthPixelsActive(boolean widthPixelsActive)Sets whether width in pixels is active- Parameters:
widthPixelsActive
- Whether width in pixels is active
-
getWidthPixels
public int getWidthPixels()Returns the width in pixels- Returns:
- The width in pixels
-
setWidthPixels
public void setWidthPixels(int widthPixels)Sets the width in pixels- Parameters:
widthPixels
- The width in pixels
-
isHeightInchesActive
public boolean isHeightInchesActive()Returns whether height in inches is active- Returns:
- Whether height in inches is active
-
setHeightInchesActive
public void setHeightInchesActive(boolean heightInchesActive)Sets whether height in inches is active- Parameters:
heightInchesActive
- Whether height in inches is active
-
getHeightInches
public float getHeightInches()Height in inches- Returns:
- Height in inches
-
setHeightInches
public void setHeightInches(float heightInches)Sets height in inches- Parameters:
heightInches
- Height in inches
-
isHeightPixelsActive
public boolean isHeightPixelsActive()Returns whether height in pixels is active- Returns:
- Whether height in pixels is active
-
setHeightPixelsActive
public void setHeightPixelsActive(boolean heightPixelsActive)Sets whether height in pixels is active- Parameters:
heightPixelsActive
- Whether height in pixels is active
-
getHeightPixels
public int getHeightPixels()Returns the height in pixels- Returns:
- The height in pixels
-
setHeightPixels
public void setHeightPixels(int heightPixels)Sets the height in pixels- Parameters:
heightPixels
- The height in pixels
-
isFitInBoxActive
public boolean isFitInBoxActive()Returns whether fit in box is active- Returns:
- Whether fit in box is active
-
setFitInBoxActive
public void setFitInBoxActive(boolean fitInBoxActive)Sets whether fit in box is active- Parameters:
fitInBoxActive
- Whether fit in box is active
-
getFitInBoxWidth
public int getFitInBoxWidth()Returns the fit in box pixel width- Returns:
- The fit in box pixel width
-
setFitInBoxWidth
public void setFitInBoxWidth(int fitInBoxWidth)Sets the fit in box pixel width- Parameters:
fitInBoxWidth
- The fit in box pixel width
-
getFitInBoxHeight
public int getFitInBoxHeight()Returns the fit in box pixel height- Returns:
- The fit in box pixel height
-
setFitInBoxHeight
public void setFitInBoxHeight(int fitInBoxHeight)Sets the fit in box pixel height- Parameters:
fitInBoxHeight
- The fit in box pixel height
-
isFillBoxActive
public boolean isFillBoxActive()Returns whether the fill box option is active- Returns:
- Whether the fill box option is active
-
setFillBoxActive
public void setFillBoxActive(boolean fillBoxActive)Sets whether the fill box option is active- Parameters:
fillBoxActive
- Whether the fill box option is active
-
getFillBoxWidth
public int getFillBoxWidth()Returns the fill box pixel width- Returns:
- The fill box pixel width
-
setFillBoxWidth
public void setFillBoxWidth(int fillBoxWidth)Sets the fill box pixel width- Parameters:
fillBoxWidth
- The fill box pixel width
-
getFillBoxHeight
public int getFillBoxHeight()Returns the fill box pixel height- Returns:
- The fill box pixel height
-
setFillBoxHeight
public void setFillBoxHeight(int fillBoxHeight)Sets the fill box pixel height- Parameters:
fillBoxHeight
- The fill box pixel height
-
isLongestSizeInchesActive
public boolean isLongestSizeInchesActive()Returns whether the longest size option in inches is active- Returns:
- Whether the longest size option in inches is active
-
setLongestSizeInchesActive
public void setLongestSizeInchesActive(boolean longestSizeInchesActive)Sets whether the longest size option in inches is active- Parameters:
longestSizeInchesActive
- Whether the longest size option in inches is active
-
getLongestSizeInches
public float getLongestSizeInches()Returns the value for longest size in inches- Returns:
- The value for longest size in inches
-
setLongestSizeInches
public void setLongestSizeInches(float longestSizeInches)Sets the value for longest size in inches- Parameters:
longestSizeInches
- The value for longest size in inches
-
isLongestSizePixelsActive
public boolean isLongestSizePixelsActive()Returns whether the longest size option in pixels is active- Returns:
- Whether the longest size option in pixels is active
-
setLongestSizePixelsActive
public void setLongestSizePixelsActive(boolean longestSizePixelsActive)Sets whether the longest size option in pixels is active- Parameters:
longestSizePixelsActive
- Whether the longest size option in pixels is active
-
getLongestSizePixels
public int getLongestSizePixels()Returns the value for longest size in pixels- Returns:
- The value for longest size in pixels
-
setLongestSizePixels
public void setLongestSizePixels(int longestSizePixels)Sets the value for longest size in pixels- Parameters:
longestSizePixels
- The value for longest size in pixels
-
isShortestSizeInchesActive
public boolean isShortestSizeInchesActive()Returns whether the shortest size option in inches is active- Returns:
- Whether the shortest size option in inches is active
-
setShortestSizeInchesActive
public void setShortestSizeInchesActive(boolean shortestSizeInchesActive)Sets whether the shortest size option in inches is active- Parameters:
shortestSizeInchesActive
- Whether the shortest size option in inches is active
-
getShortestSizeInches
public float getShortestSizeInches()Returns the value for shortest size in inches- Returns:
- The value for shortest size in inches
-
setShortestSizeInches
public void setShortestSizeInches(float shortestSizeInches)Sets the value for shortest size in inches- Parameters:
shortestSizeInches
- The value for shortest size in inches
-
isShortestSizePixelsActive
public boolean isShortestSizePixelsActive()Returns whether the shortest size option in pixels is active- Returns:
- Whether the shortest size option in pixels is active
-
setShortestSizePixelsActive
public void setShortestSizePixelsActive(boolean shortestSizePixelsActive)Sets whether the shortest size option in pixels is active- Parameters:
shortestSizePixelsActive
- Whether the shortest size option in pixels is active
-
getShortestSizePixels
public int getShortestSizePixels()Returns the value for shortest size in pixels- Returns:
- The value for shortest size in pixels
-
setShortestSizePixels
public void setShortestSizePixels(int shortestSizePixels)Sets the value for shortest size in pixels- Parameters:
shortestSizePixels
- The value for shortest size in pixels
-
isMaxImageSizeActive
public boolean isMaxImageSizeActive()Returns whether the option maximum image size for output is active- Returns:
- Whether the option maximum image size for output is active
-
setMaxImageSizeActive
public void setMaxImageSizeActive(boolean maxImageSizeActive)Sets whether the option maximum image size for output for output is active- Parameters:
maxImageSizeActive
- Whether the option maximum image size for output is active
-
getMaxImageSize
public int getMaxImageSize()Returns the value for maximum image size for output- Returns:
- The value for maximum image size for output
-
setMaxImageSize
public void setMaxImageSize(int maxImageSize)Sets the value for maximum image size for output- Parameters:
maxImageSize
- The value for maximum image size for output
-
isMaxImageSizeInputActive
public boolean isMaxImageSizeInputActive()Returns whether the option maximum image size for input is active- Returns:
- Whether the option maximum image size for input is active
-
setMaxImageSizeInputActive
public void setMaxImageSizeInputActive(boolean maxImageSizeInputActive)Sets whether the option maximum image size for input is active- Parameters:
maxImageSizeInputActive
- Whether the option maximum image size for input is active
-
getMaxImageSizeInput
public int getMaxImageSizeInput()Returns the value for maximum image size for input- Returns:
- The value for maximum image size for input
-
setMaxImageSizeInput
public void setMaxImageSizeInput(int maxImageSizeInput)Sets the value for maximum image size for input- Parameters:
maxImageSizeInput
- The value for maximum image size for input
-
isMinPdfImagePixelSizeActive
public boolean isMinPdfImagePixelSizeActive()Returns whether minimum image size for images in PDF is active- Returns:
- Whether minimum image size for images in PDF is active
-
setMinPdfImagePixelSizeActive
public void setMinPdfImagePixelSizeActive(boolean minPdfImagePixelSizeActive)Sets whether minimum image size for images in PDF is active- Parameters:
minPdfImagePixelSizeActive
- Whether minimum image size for images in PDF is active
-
getMinPdfImagePixelSize
public int getMinPdfImagePixelSize()Returns the value for minimum image size in pixels for image in PDF- Returns:
- The value for minimum image size in pixels for image in PDF
-
setMinPdfImagePixelSize
public void setMinPdfImagePixelSize(int minPdfImagePixelSize)Sets the value for minimum image size in pixels for image in PDF- Parameters:
minPdfImagePixelSize
- The value for minimum image size in pixels for image in PDF
-
isOrientationBasedOnExif
public boolean isOrientationBasedOnExif()Returns whether option to rotate images based on EXIF information is active- Returns:
- Whether option to rotate images based on EXIF information is active
-
setOrientationBasedOnExif
public void setOrientationBasedOnExif(boolean orientationBasedOnExif)Sets whether option to rotate images based on EXIF information is active- Parameters:
orientationBasedOnExif
- Whether option to rotate images based on EXIF information is active
-
isCropExtendImage
public boolean isCropExtendImage() -
setCropExtendImage
public void setCropExtendImage(boolean cropExtendImage) -
isMaxFileSizeInputActive
public boolean isMaxFileSizeInputActive()Returns whether maximum input file size is active- Returns:
- Whether maximum input file size is active
-
setMaxFileSizeInputActive
public void setMaxFileSizeInputActive(boolean maxFileSizeInputActive)Sets whether maximum input file size is active- Parameters:
maxFileSizeInputActive
- Whether maximum input file size is active
-
getMaxFileSizeInput
public int getMaxFileSizeInput()Returns the value for maximum input file size- Returns:
- The value for maximum input file size
-
setMaxFileSizeInput
public void setMaxFileSizeInput(int maxFileSizeInput)Sets the value for maximum input file size- Parameters:
maxFileSizeInput
- The value for maximum input file size
-
isSetAlwaysDPI
public boolean isSetAlwaysDPI()Returns whether to always change the dpi value- Returns:
- Whether to always change the dpi value
-
setSetAlwaysDPI
public void setSetAlwaysDPI(boolean setAlwaysDPI)Sets whether to always change the dpi value- Parameters:
setAlwaysDPI
- Whether to always change the dpi value
-
isDownSampleForRemoveBG
public boolean isDownSampleForRemoveBG()Returns whether to always change the dpi value- Returns:
- Whether to always change the dpi value
-
setDownSampleForRemoveBG
public void setDownSampleForRemoveBG(boolean downSampleForRemoveBG)Sets whether to always change the dpi value -
save
public void save(com.elpical.jclaro.database.entities.ClaroChannel aClaroChannel)
-