Class PDFourColours
java.lang.Object
org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf.PDFourColours
- All Implemented Interfaces:
COSObjectable
An object for four colours.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the colour for the after edge.Gets the colour for the before edge.private PDGamma
getColourByIndex
(int index) Gets the colour by edge index.Convert this standard java object to a COS object.Gets the colour for the end edge.Gets the colour for the start edge.void
setAfterColour
(PDGamma colour) Sets the colour for the after edge.void
setBeforeColour
(PDGamma colour) Sets the colour for the before edge.private void
setColourByIndex
(int index, PDGamma colour) Sets the colour by edge index.void
setEndColour
(PDGamma colour) Sets the colour for the end edge.void
setStartColour
(PDGamma colour) Sets the colour for the start edge.
-
Field Details
-
array
-
-
Constructor Details
-
PDFourColours
public PDFourColours() -
PDFourColours
-
-
Method Details
-
getBeforeColour
Gets the colour for the before edge.- Returns:
- the colour for the before edge
-
setBeforeColour
Sets the colour for the before edge.- Parameters:
colour
- the colour for the before edge
-
getAfterColour
Gets the colour for the after edge.- Returns:
- the colour for the after edge
-
setAfterColour
Sets the colour for the after edge.- Parameters:
colour
- the colour for the after edge
-
getStartColour
Gets the colour for the start edge.- Returns:
- the colour for the start edge
-
setStartColour
Sets the colour for the start edge.- Parameters:
colour
- the colour for the start edge
-
getEndColour
Gets the colour for the end edge.- Returns:
- the colour for the end edge
-
setEndColour
Sets the colour for the end edge.- Parameters:
colour
- the colour for the end edge
-
getCOSObject
Convert this standard java object to a COS object.- Specified by:
getCOSObject
in interfaceCOSObjectable
- Returns:
- The cos object that matches this Java object.
-
getColourByIndex
Gets the colour by edge index.- Parameters:
index
- edge index- Returns:
- the colour
-
setColourByIndex
Sets the colour by edge index.- Parameters:
index
- the edge indexcolour
- the colour
-