/** * This will retrieve the set of quadpoints which encompass the areas of this annotation. * * @return An array of floats representing the quad points. */ public float[] getQuadPoints() { COSBase base = getCOSObject().getDictionaryObject(COSName.QUADPOINTS); if (base instanceof COSArray) { return ((COSArray) base).toFloatArray(); } // Should never happen as this is a required item return null; } }
/** * This will set the set of quadpoints which encompass the areas of this annotation. * * @param quadPoints an array representing the set of area covered */ public final void setQuadPoints(float[] quadPoints) { COSArray newQuadPoints = new COSArray(); newQuadPoints.setFloatArray(quadPoints); getCOSObject().setItem(COSName.QUADPOINTS, newQuadPoints); }
/** * 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 final void setSubtype(String subType) { getCOSObject().setName(COSName.SUBTYPE, subType); }
/** * 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 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. */ public String getSubtype() { return getCOSObject().getNameAsString(COSName.SUBTYPE); }
/** * 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 retrieve the set of quadpoints which encompass the areas of this annotation. * * @return An array of floats representing the quad points. */ public float[] getQuadPoints() { COSBase base = getCOSObject().getDictionaryObject(COSName.QUADPOINTS); if (base instanceof COSArray) { return ((COSArray) base).toFloatArray(); } // Should never happen as this is a required item return null; }
/** * This will retrieve the set of quadpoints which encompass the areas of this annotation. * * @return An array of floats representing the quad points. */ public float[] getQuadPoints() { COSArray quadPoints = (COSArray) getCOSObject().getDictionaryObject(COSName.QUADPOINTS); if (quadPoints != null) { return quadPoints.toFloatArray(); } else { return null; // Should never happen as this is a required item } }
/** * This will set the set of quadpoints which encompass the areas of this annotation. * * @param quadPoints an array representing the set of area covered */ public void setQuadPoints(float[] quadPoints) { COSArray newQuadPoints = new COSArray(); newQuadPoints.setFloatArray(quadPoints); getCOSObject().setItem(COSName.QUADPOINTS, newQuadPoints); }
/** * This will set the set of quadpoints which encompass the areas of this annotation. * * @param quadPoints an array representing the set of area covered */ public final void setQuadPoints(float[] quadPoints) { COSArray newQuadPoints = new COSArray(); newQuadPoints.setFloatArray(quadPoints); getCOSObject().setItem(COSName.QUADPOINTS, newQuadPoints); }