Class PDFourColours
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf.PDFourColours
-
- All Implemented Interfaces:
COSObjectable
public class PDFourColours extends java.lang.Object implements COSObjectable
An object for four colours.
-
-
Constructor Summary
Constructors Constructor Description PDFourColours()
PDFourColours(COSArray array)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PDGamma
getAfterColour()
Gets the colour for the after edge.PDGamma
getBeforeColour()
Gets the colour for the before edge.private PDGamma
getColourByIndex(int index)
Gets the colour by edge index.COSBase
getCOSObject()
Convert this standard java object to a COS object.PDGamma
getEndColour()
Gets the colour for the end edge.PDGamma
getStartColour()
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 Detail
-
array
private final COSArray array
-
-
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 interfaceCOSObjectable
- 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 indexcolour
- the colour
-
-