public class PDFourColours extends java.lang.Object implements COSObjectable
Constructor and Description |
---|
PDFourColours() |
PDFourColours(COSArray array) |
Modifier and Type | Method and 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.
|
private final COSArray array
public PDFourColours()
public PDFourColours(COSArray array)
public PDGamma getBeforeColour()
public void setBeforeColour(PDGamma colour)
colour
- the colour for the before edgepublic PDGamma getAfterColour()
public void setAfterColour(PDGamma colour)
colour
- the colour for the after edgepublic PDGamma getStartColour()
public void setStartColour(PDGamma colour)
colour
- the colour for the start edgepublic PDGamma getEndColour()
public void setEndColour(PDGamma colour)
colour
- the colour for the end edgepublic COSBase getCOSObject()
getCOSObject
in interface COSObjectable
private PDGamma getColourByIndex(int index)
index
- edge indexprivate void setColourByIndex(int index, PDGamma colour)
index
- the edge indexcolour
- the colour