PDF4Java Reference Documentation
com.o2sol.pdf4java.annotations Package / PDFAnnotationBorder Class / setColor Method
A com.o2sol.pdf4java.graphics.colors.PDFColor object specifying the color with which to stroke the annotation's border.
In This Topic
    setColor Method
    In This Topic
    Sets the border color.
    The border color must be RGB, CMYK or Gray.
    Syntax
    public void setColor( 
       PDFColor value
    )

    Parameters

    value
    A com.o2sol.pdf4java.graphics.colors.PDFColor object specifying the color with which to stroke the annotation's border.
    Exceptions
    ExceptionDescription
    Thrown when the property is set to a color other than Gray, RGB or CMYK.
    See Also