Class ChangeOrientation

  • All Implemented Interfaces:
    CleanUpHandler, Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, QuickInfoSupporter, SizeOfHandler, ImageTransformer<BufferedImageContainer>, FlowContextHandler, Serializable, Comparable

    public class ChangeOrientation
    extends AbstractJAITransformer
    Ensures that the image has the specified orientation.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -orientation <PORTRAIT|LANDSCAPE> (property: orientation)
        The page orientation to ensure.
        default: LANDSCAPE
     
    -angle-landscape-to-portrait <double> (property: angleLandscapeToPortrait)
        The angle, in degrees, to rotate the image by (landscape -> portrait).
        default: 90.0
        minimum: 0.0
        maximum: 360.0
     
    -angle-portrait-to-landscape <double> (property: anglePortraitToLandscape)
        The angle, in degrees, to rotate the image by (portrait -> landscape).
        default: 90.0
        minimum: 0.0
        maximum: 360.0
     
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Orientation

        protected PageOrientation m_Orientation
        the orientation for the image.
      • m_AnglePortraitToLandscape

        protected double m_AnglePortraitToLandscape
        the rotation angle for portrait to landscape.
      • m_AngleLandscapeToPortrait

        protected double m_AngleLandscapeToPortrait
        the rotation angle for landscape to portrait.
    • Constructor Detail

      • ChangeOrientation

        public ChangeOrientation()
    • Method Detail

      • setOrientation

        public void setOrientation​(PageOrientation value)
        Sets the page orientation.
        Parameters:
        value - the orientation
      • getOrientation

        public PageOrientation getOrientation()
        Returns the page orientation.
        Returns:
        the orientation
      • orientationTipText

        public String orientationTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setAngleLandscapeToPortrait

        public void setAngleLandscapeToPortrait​(double value)
        Sets the rotation angle (landscape -> portrait).
        Parameters:
        value - the angle (0-360)
      • getAngleLandscapeToPortrait

        public double getAngleLandscapeToPortrait()
        Returns the rotation angle (landscape -> portrait).
        Returns:
        the angle
      • angleLandscapeToPortraitTipText

        public String angleLandscapeToPortraitTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setAnglePortraitToLandscape

        public void setAnglePortraitToLandscape​(double value)
        Sets the rotation angle (portrait -> landscape).
        Parameters:
        value - the angle (0-360)
      • getAnglePortraitToLandscape

        public double getAnglePortraitToLandscape()
        Returns the rotation angle (portrait -> landscape).
        Returns:
        the angle
      • anglePortraitToLandscapeTipText

        public String anglePortraitToLandscapeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui