Class PDFourColours

  • All Implemented Interfaces:
    COSObjectable

    public class PDFourColours
    extends java.lang.Object
    implements COSObjectable
    An object for four colours.
    • Field Detail

    • Constructor Detail

      • PDFourColours

        public PDFourColours()
      • PDFourColours

        public PDFourColours​(COSArray array)
    • Method Detail

      • getBeforeColour

        public PDGamma getBeforeColour()
        Gets the colour for the before edge.
        Returns:
        the colour for the before edge
      • setBeforeColour

        public void setBeforeColour​(PDGamma colour)
        Sets the colour for the before edge.
        Parameters:
        colour - the colour for the before edge
      • getAfterColour

        public PDGamma getAfterColour()
        Gets the colour for the after edge.
        Returns:
        the colour for the after edge
      • setAfterColour

        public void setAfterColour​(PDGamma colour)
        Sets the colour for the after edge.
        Parameters:
        colour - the colour for the after edge
      • getStartColour

        public PDGamma getStartColour()
        Gets the colour for the start edge.
        Returns:
        the colour for the start edge
      • setStartColour

        public void setStartColour​(PDGamma colour)
        Sets the colour for the start edge.
        Parameters:
        colour - the colour for the start edge
      • getEndColour

        public PDGamma getEndColour()
        Gets the colour for the end edge.
        Returns:
        the colour for the end edge
      • setEndColour

        public void setEndColour​(PDGamma colour)
        Sets the colour for the end edge.
        Parameters:
        colour - the colour for the end edge
      • getCOSObject

        public COSBase getCOSObject()
        Convert this standard java object to a COS object.
        Specified by:
        getCOSObject in interface COSObjectable
        Returns:
        The cos object that matches this Java object.
      • getColourByIndex

        private PDGamma getColourByIndex​(int index)
        Gets the colour by edge index.
        Parameters:
        index - edge index
        Returns:
        the colour
      • setColourByIndex

        private void setColourByIndex​(int index,
                                      PDGamma colour)
        Sets the colour by edge index.
        Parameters:
        index - the edge index
        colour - the colour