TiffDirectory td = contents.directories.get(index); Image bi = td.getTiffImage(tiffReader.getByteOrder(), null); Object width = td.getFieldValue(new TagInfo("", 256, TiffFieldTypeConstants.FIELD_TYPE_SHORT) {/**/}); Object height = td.getFieldValue(new TagInfo("", 257, TiffFieldTypeConstants.FIELD_TYPE_SHORT) {/**/}); int newWidth = w; int newHeight = (int) ((newWidth * ((Number)height).doubleValue()) / (((Number)width).doubleValue()));
private TagInfo createTagInfo(TagXml tagXml) throws JasperException { String teiClassName = tagXml.getTeiClass(); TagExtraInfo tei = null; if (teiClassName != null && !teiClassName.isEmpty()) { try { Class<?> teiClass = ctxt.getClassLoader().loadClass(teiClassName); tei = (TagExtraInfo) teiClass.getConstructor().newInstance(); } catch (Exception e) { err.jspError(e, "jsp.error.teiclass.instantiation", teiClassName); } } List<TagAttributeInfo> attributeInfos = tagXml.getAttributes(); List<TagVariableInfo> variableInfos = tagXml.getVariables(); return new TagInfo(tagXml.getName(), tagXml.getTagClass(), tagXml.getBodyContent(), tagXml.getInfo(), this, tei, attributeInfos.toArray(new TagAttributeInfo[attributeInfos.size()]), tagXml.getDisplayName(), tagXml.getSmallIcon(), tagXml.getLargeIcon(), variableInfos.toArray(new TagVariableInfo[variableInfos.size()]), tagXml.hasDynamicAttributes()); }
variableVector.copyInto(tagVariableInfos); TagInfo taginfo = new TagInfo(tagName, tagClassName, bodycontent,
private TagInfo createTagInfo(TagXml tagXml) throws JasperException { String teiClassName = tagXml.getTeiClass(); TagExtraInfo tei = null; if (teiClassName != null && !teiClassName.isEmpty()) { try { Class<?> teiClass = ctxt.getClassLoader().loadClass(teiClassName); tei = (TagExtraInfo) teiClass.newInstance(); } catch (Exception e) { err.jspError(e, "jsp.error.teiclass.instantiation", teiClassName); } } List<TagAttributeInfo> attributeInfos = tagXml.getAttributes(); List<TagVariableInfo> variableInfos = tagXml.getVariables(); return new TagInfo(tagXml.getName(), tagXml.getTagClass(), tagXml.getBodyContent(), tagXml.getInfo(), this, tei, attributeInfos.toArray(new TagAttributeInfo[attributeInfos.size()]), tagXml.getDisplayName(), tagXml.getSmallIcon(), tagXml.getLargeIcon(), variableInfos.toArray(new TagVariableInfo[variableInfos.size()]), tagXml.hasDynamicAttributes()); }
= variableVector.toArray(new TagVariableInfo[0]); TagInfo taginfo = new TagInfo(tagName, tagClassName, bodycontent,
return new TagInfo(tagInfo.getTagName(), tagInfo.getTagClassName(), tagInfo.getBodyContent(), tagInfo.getInfoString(), this, tei, attributeInfos.toArray(new TagAttributeInfo[0]), tagInfo.getDisplayName(), tagInfo.getSmallIcon(), tagInfo.getLargeIcon(),
= variableVector.toArray(new TagVariableInfo[0]); TagInfo taginfo = new TagInfo(tagName, tagClassName, bodycontent,
= variableVector.toArray(new TagVariableInfo[0]); TagInfo taginfo = new TagInfo(tagName, tagClassName, bodycontent,
variableVector.copyInto(tagVariableInfos); TagInfo taginfo = new TagInfo(tagName, tagClassName, bodycontent, info, this, tei, tagAttributeInfo, displayName, smallIcon, largeIcon, tagVariableInfos, dynamicAttributes);
variableVector.copyInto(tagVariableInfos); TagInfo taginfo = new TagInfo(tagName, tagClassName, bodycontent, info, this, tei, tagAttributeInfo, displayName, smallIcon, largeIcon, tagVariableInfos, dynamicAttributes);
return new TagInfo(tagInfo.getTagName(), tagInfo.getTagClassName(), tagBodyContent, tagInfo.getInfoString(), this, tei, attributeInfos.toArray(new TagAttributeInfo[0]), tagInfo.getDisplayName(), tagInfo.getSmallIcon(), tagInfo.getLargeIcon(),
return new TagInfo(tagInfo.getTagName(), tagInfo.getTagClassName(), tagBodyContent, tagInfo.getInfoString(), this, tei, attributeInfos.toArray(new TagAttributeInfo[0]), tagInfo.getDisplayName(), tagInfo.getSmallIcon(), tagInfo.getLargeIcon(),
String bodyContent = decl.getBodycontent(); if (tagName != null && tagClass != null && bodyContent != null) return new TagInfo(tagName, tagClass, bodyContent, decl.getInfo(), libInfo, tei, attrInfos); return null;
this.tags = new TagInfo[otherTags.length]; for (int i=0; i<otherTags.length; i++) { this.tags[i] = new TagInfo( otherTags[i].getTagName(), otherTags[i].getTagClassName(),
this.tags = new TagInfo[otherTags.length]; for (int i=0; i<otherTags.length; i++) { this.tags[i] = new TagInfo( otherTags[i].getTagName(), otherTags[i].getTagClassName(),
this.tags = new TagInfo[otherTags.length]; for (int i=0; i<otherTags.length; i++) { this.tags[i] = new TagInfo( otherTags[i].getTagName(), otherTags[i].getTagClassName(),
this.tags = new TagInfo[otherTags.length]; for (int i=0; i<otherTags.length; i++) { this.tags[i] = new TagInfo( otherTags[i].getTagName(), otherTags[i].getTagClassName(),
this.tags = new TagInfo[otherTags.length]; for (int i=0; i<otherTags.length; i++) { this.tags[i] = new TagInfo( otherTags[i].getTagName(), otherTags[i].getTagClassName(),
this.tags = new TagInfo[otherTags.length]; for (int i=0; i<otherTags.length; i++) { this.tags[i] = new TagInfo( otherTags[i].getTagName(), otherTags[i].getTagClassName(),
this.tags = new TagInfo[otherTags.length]; for (int i=0; i<otherTags.length; i++) { this.tags[i] = new TagInfo( otherTags[i].getTagName(), otherTags[i].getTagClassName(),