@Test public void radialShadingGettersWithDomainExtendDefaultValuesTest() { float[] coordsArray = {0f, 0f, 0f, 0.5f, 0.5f, 10f}; float[] defaultDomainArray = {0f, 1f}; boolean[] defaultExtendArray = {false, false}; PdfDictionary radialShadingDictionary = initShadingDictionary(coordsArray, null, null, ShadingType.RADIAL); Radial radial = new Radial(radialShadingDictionary); Assert.assertArrayEquals(coordsArray, radial.getCoords().toFloatArray(), 0f); Assert.assertArrayEquals(defaultDomainArray, radial.getDomain().toFloatArray(), 0f); Assert.assertArrayEquals(defaultExtendArray, radial.getExtend().toBooleanArray()); Assert.assertEquals(ShadingType.RADIAL, radial.getShadingType()); }
public int getShadingType() { return (int) getPdfObject().getAsInt(PdfName.ShadingType); }
PdfShading extends PdfObjectWrapper<PdfDictionary> { public int getShadingType() { return (int) getPdfObject().getAsInt(PdfName.ShadingType); } }
PdfShading extends PdfObjectWrapper<PdfDictionary> { public int getShadingType() { return (int) getPdfObject().getAsInt(PdfName.ShadingType); } protected  PdfShading(PdfDictionary pdfObject); protected  PdfShading(PdfDictionary pdfObject, int type, PdfColorSpace colorSpace); }
PdfShading extends PdfObjectWrapper<PdfDictionary> { public int getShadingType() { return (int) getPdfObject().getAsInt(PdfName.ShadingType); } protected  PdfShading(PdfDictionary pdfObject); protected  PdfShading(PdfDictionary pdfObject, int type, PdfColorSpace colorSpace); static PdfShading makeShading(PdfDictionary shadingDictionary); int getShadingType(); PdfObject getColorSpace(); PdfObject getFunction(); void setFunction(PdfFunction function); void setFunction(PdfFunction[] functions); @Override void flush(); }
PdfShading extends PdfObjectWrapper<PdfDictionary> { public int getShadingType() { return (int) getPdfObject().getAsInt(PdfName.ShadingType); } protected  PdfShading(PdfDictionary pdfObject); protected  PdfShading(PdfDictionary pdfObject, int type, PdfColorSpace colorSpace); static PdfShading makeShading(PdfDictionary shadingDictionary); int getShadingType(); PdfObject getColorSpace(); PdfObject getFunction(); void setFunction(PdfFunction function); void setFunction(PdfFunction[] functions); @Override void flush();  }