com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class IconFit



  • public final class IconFit
    extends Object

    Describes how the widget annotation's icon shall be displayed within its annotation rectangle.

    • Method Detail

      • getScalingReason

        public int getScalingReason()

        Gets scaling reason.

        Returns:
        ScalingReason value
        See Also:
        ScalingReason
      • setScalingReason

        public void setScalingReason(int value)

        Sets scaling reason.

        Parameters:
        value - ScalingReason value
        See Also:
        ScalingReason
      • getScalingMode

        public int getScalingMode()

        The type of scaling that shall be used.

        Returns:
        ScalingMode value
        See Also:
        ScalingMode
      • setScalingMode

        public void setScalingMode(int value)

        The type of scaling that shall be used.

        Parameters:
        value - ScalingMode value
        See Also:
        ScalingMode
      • getLeftoverLeft

        public double getLeftoverLeft()

        Gets space to allocate at the left of the icon.

        Returns:
        space to allocate at the left of the icon.
      • setLeftoverLeft

        public void setLeftoverLeft(double value)

        Sets space to allocate at the left of the icon.

        Parameters:
        value - space to allocate at the left of the icon.
      • getLeftoverBottom

        public double getLeftoverBottom()

        Gets space to allocate at the bottom of the icon.

        Returns:
        space to allocate at the bottom
      • setLeftoverBottom

        public void setLeftoverBottom(double value)

        Sets space to allocate at the bottom of the icon.

        Parameters:
        value - space to allocate at the bottom
      • isSpreadOnBorder

        public boolean isSpreadOnBorder()

        If true, indicates that the button appearance shall be scaled to fit fully within the bounds of the annotation without taking into consideration the line width of the border.

        Returns:
        boolean value
      • setSpreadOnBorder

        public void setSpreadOnBorder(boolean value)

        If true, indicates that the button appearance shall be scaled to fit fully within the bounds of the annotation without taking into consideration the line width of the border.

        Parameters:
        value - boolean value
      • nameToScalingReason

        public static int nameToScalingReason(String reason)

        Converts name of scaling reason into ScalingReason object.

        Parameters:
        reason - Name of scaling reason.
        Returns:
        Scaling reason object.
      • scalingReasonToName

        public static String scalingReasonToName(int reason)

        Converts scaling reason obejct to name.

        Parameters:
        reason - Scaling reason object to be converted.
        Returns:
        Name of scaling reasong.
      • nameToScalingMode

        public static int nameToScalingMode(String mode)

        Converts scaling mode name into ScalingMode object.

        Parameters:
        mode - Scaling mode name.
        Returns:
        Scaling mode object.
      • scalingModeToName

        public static String scalingModeToName(int mode)

        Converts scaling mode object into name.

        Parameters:
        mode - Scaling mode object.
        Returns:
        Scaling mode name.