public SquareCircleAnnotationValidator(PreflightContext ctx, PDAnnotationSquareCircle annotation) { super(ctx, annotation.getCOSObject()); this.pdSquareCircle = annotation; this.pdAnnot = this.pdSquareCircle; }
/** * This will set the rectangle difference rectangle. Giving the difference between the * annotations rectangle and where the drawing occurs. (To take account of any effects applied * through the BE entry for example) * * @param rd the rectangle difference * */ public void setRectDifference(PDRectangle rd) { getCOSObject().setItem(COSName.RD, rd); }
/** * This will set the border effect dictionary, specifying effects to be applied when drawing the * line. This is supported by PDF 1.5 and higher. * * @param be The border effect dictionary to set. * */ public void setBorderEffect(PDBorderEffectDictionary be) { getCOSObject().setItem(COSName.BE, be); }
/** * This will set interior color of the drawn area color is in DeviceRGB colorspace. * * @param ic color in the DeviceRGB color space. * */ public void setInteriorColor(PDColor ic) { getCOSObject().setItem(COSName.IC, ic.toCOSArray()); }
/** * This will retrieve the border effect dictionary, specifying effects to be applied used in * drawing the line. * * @return The border effect dictionary */ public PDBorderEffectDictionary getBorderEffect() { COSBase base = getCOSObject().getDictionaryObject(COSName.BE); if (base instanceof COSDictionary) { return new PDBorderEffectDictionary((COSDictionary) base); } return null; }
/** * This will get the differences between the annotations "outer" rectangle defined by * /Rect and the border. * * @return the differences. If the entry hasn't been set am empty array is returned. */ public float[] getRectDifferences() { COSBase margin = getCOSObject().getItem(COSName.RD); if (margin instanceof COSArray) { return ((COSArray) margin).toFloatArray(); } return new float[]{}; }
/** * This will get the rectangle difference rectangle. Giving the difference between the * annotations rectangle and where the drawing occurs. (To take account of any effects applied * through the BE entry for example) * * @return the rectangle difference */ public PDRectangle getRectDifference() { COSBase base = getCOSObject().getDictionaryObject(COSName.RD); if (base instanceof COSArray) { return new PDRectangle((COSArray) base); } return null; }
/** * This will set the difference between the annotations "outer" rectangle defined by * /Rect and the border. * * @param differenceLeft left difference from the annotations /Rect entry * @param differenceTop top difference from the annotations /Rect entry * @param differenceRight right difference from the annotations /Rect entry * @param differenceBottom bottom difference from the annotations /Rect entry * */ public void setRectDifferences(float differenceLeft, float differenceTop, float differenceRight, float differenceBottom) { COSArray margins = new COSArray(); margins.add(new COSFloat(differenceLeft)); margins.add(new COSFloat(differenceTop)); margins.add(new COSFloat(differenceRight)); margins.add(new COSFloat(differenceBottom)); getCOSObject().setItem(COSName.RD, margins); }
/** * This will set the sub type (and hence appearance, AP taking precedence) For this annotation. See the SUB_TYPE_XXX * constants for valid values. * * @param subType The subtype of the annotation */ public void setSubtype(String subType) { getCOSObject().setName(COSName.SUBTYPE, subType); }
/** * This will set the rectangle difference rectangle. Giving the difference between the annotations rectangle and * where the drawing occurs. (To take account of any effects applied through the BE entry forexample) * * @param rd the rectangle difference * */ public void setRectDifference(PDRectangle rd) { getCOSObject().setItem(COSName.RD, rd); }
/** * This will set the sub type (and hence appearance, AP taking precedence) For this annotation. See the SUB_TYPE_XXX * constants for valid values. * * @param subType The subtype of the annotation */ public void setSubtype(String subType) { getCOSObject().setName(COSName.SUBTYPE, subType); }
/** * This will set the border effect dictionary, specifying effects to be applied when drawing the line. * * @param be The border effect dictionary to set. * */ public void setBorderEffect(PDBorderEffectDictionary be) { getCOSObject().setItem(COSName.BE, be); }
/** * This will set the rectangle difference rectangle. Giving the difference between the annotations rectangle and * where the drawing occurs. (To take account of any effects applied through the BE entry forexample) * * @param rd the rectangle difference * */ public void setRectDifference(PDRectangle rd) { getCOSObject().setItem(COSName.RD, rd); }
/** * This will retrieve the sub type (and hence appearance, AP taking precedence) For this annotation. * * @return The subtype of this annotation, see the SUB_TYPE_XXX constants. */ @Override public String getSubtype() { return getCOSObject().getNameAsString(COSName.SUBTYPE); }
/** * This will set the border effect dictionary, specifying effects to be applied when drawing the line. * * @param be The border effect dictionary to set. * */ public void setBorderEffect(PDBorderEffectDictionary be) { getCOSObject().setItem(COSName.BE, be); }
/** * This will retrieve the sub type (and hence appearance, AP taking precedence) For this annotation. * * @return The subtype of this annotation, see the SUB_TYPE_XXX constants. */ @Override public String getSubtype() { return getCOSObject().getNameAsString(COSName.SUBTYPE); }
/** * This will set the border style dictionary, specifying the width and dash pattern used in drawing the line. * * @param bs the border style dictionary to set. TODO not all annotations may have a BS entry * */ @Override public void setBorderStyle(PDBorderStyleDictionary bs) { this.getCOSObject().setItem(COSName.BS, bs); }
/** * This will set the border style dictionary, specifying the width and dash pattern used in drawing the line. * * @param bs the border style dictionary to set. TODO not all annotations may have a BS entry * */ @Override public void setBorderStyle(PDBorderStyleDictionary bs) { this.getCOSObject().setItem(COSName.BS, bs); }
/** * This will set interior color of the drawn area color is in DeviceRGB colo rspace. * * @param ic color in the DeviceRGB color space. * */ public void setInteriorColor(PDColor ic) { getCOSObject().setItem(COSName.IC, ic.toCOSArray()); }
/** * This will set interior color of the drawn area color is in DeviceRGB colo rspace. * * @param ic color in the DeviceRGB color space. * */ public void setInteriorColor(PDColor ic) { getCOSObject().setItem(COSName.IC, ic.toCOSArray()); }