Class CmsOriginalFormatRestriction

    • Constructor Summary

      Constructor Description
      CmsOriginalFormatRestriction​(java.lang.String name, java.lang.String label)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void adjustCroppingParam​(CmsCroppingParamBean croppingParam)
      Adjust the given cropping parameter bean to this format restriction.
      int getHeight​(int orgHeight, int orgWidth)
      Returns the preset height for this format restriction.
      java.lang.String getLabel()
      Returns the label for the format.
      java.lang.String getName()
      Returns the format name.
      int getWidth​(int orgHeight, int orgWidth)
      Returns the preset width for this format restriction.
      boolean isCroppingEnabled()
      Returns if this format allows cropping.
      boolean isFixedRatio()
      Returns if this format has a fixed height/width ratio.
      boolean isHeightEditable()
      Returns if height is editable.
      boolean isWidthEditable()
      Returns if width is editable.
      boolean matchesCroppingParam​(CmsCroppingParamBean croppingParam)
      Checks whether the given cropping parameter matches these restrictions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait