Class MetadataPieceInfoBackgroundContent


  • public class MetadataPieceInfoBackgroundContent
    extends Object
    Properties listed in the Adobe piece info.
    • Constructor Detail

      • MetadataPieceInfoBackgroundContent

        public MetadataPieceInfoBackgroundContent()
    • Method Detail

      • getAbsoluteScaling

        @Nullable
        public @Nullable Boolean getAbsoluteScaling()
        When set to true the page shall be scaled relative to it's own original dimensions, when set to false, it shall be scaled relative to the page dimensions.
        Returns:
        absoluteScaling
      • setAbsoluteScaling

        public void setAbsoluteScaling​(Boolean absoluteScaling)
      • getAlignment

        @Nullable
        public @Nullable MetadataPieceInfoBackgroundContent.AlignmentEnum getAlignment()
        Uses one of multiple preset positions in order to position the background on the page. * custom = Disable the use of a preset position. * top\\_left = Positions the background in the top left corner. * top\\_center = Positions the background in the centre on the top margin. * top\\_right = Positions the background in the top right corner. * center\\_left = Positions the background at the centre of the page, to the left. * center\\_center = Positions the background at the centre of the page. * center\\_right = Positions the background at the centre of the page, to the right. * bottom\\_left = Positions the background in the bottom left corner. * bottom\\_center = Positions the background in the centre on the bottom margin. * bottom\\_right = Positions the background in the bottom right corner.
        Returns:
        alignment
      • getColor

        @Nullable
        public @Nullable String getColor()
        The color of a unicolor background.
        Returns:
        color
      • setColor

        public void setColor​(String color)
      • getHorizOffset

        @Nullable
        public @Nullable Float getHorizOffset()
        The horizontal offset in relation to the backgrounds bas position.
        Returns:
        horizOffset
      • setHorizOffset

        public void setHorizOffset​(Float horizOffset)
      • getOpacity

        @Nullable
        public @Nullable Float getOpacity()
        The opacity of the background, as a percentage in the range 0.0 (fully transparent) to 1.0 (fully opaque). minimum: 0 maximum: 1
        Returns:
        opacity
      • setOpacity

        public void setOpacity​(Float opacity)
      • getRotation

        @Nullable
        public @Nullable Integer getRotation()
        The rotation of the background. minimum: 0 maximum: 360
        Returns:
        rotation
      • setRotation

        public void setRotation​(Integer rotation)
      • getScale

        @Nullable
        public @Nullable Float getScale()
        The scaling of the background. minimum: 0
        Returns:
        scale
      • setScale

        public void setScale​(Float scale)
      • getUnit

        @Nullable
        public @Nullable String getUnit()
        The Adobe unit used to display offsets in readers. (millimeters, pica, point etc).
        Returns:
        unit
      • setUnit

        public void setUnit​(String unit)
      • getVertOffset

        @Nullable
        public @Nullable Float getVertOffset()
        The vertical offset in relation to the backgrounds bas position.
        Returns:
        vertOffset
      • setVertOffset

        public void setVertOffset​(Float vertOffset)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object