first commit

This commit is contained in:
2025-07-28 13:56:49 +05:30
commit e9eb805edb
3438 changed files with 520990 additions and 0 deletions

View File

@@ -0,0 +1,402 @@
package net.sf.jasperreports.engine.fill;
import java.awt.Color;
import net.sf.jasperreports.engine.JRBox;
import net.sf.jasperreports.engine.JRLineBox;
import net.sf.jasperreports.engine.JRPrintHyperlinkParameters;
import net.sf.jasperreports.engine.JRPrintImage;
import net.sf.jasperreports.engine.JRRenderable;
import net.sf.jasperreports.engine.util.JRBoxUtil;
import net.sf.jasperreports.engine.util.LineBoxWrapper;
public class JRTemplatePrintImage extends JRTemplatePrintGraphicElement implements JRPrintImage {
private static final long serialVersionUID = 10200L;
private JRRenderable renderer = null;
private String anchorName = null;
private String hyperlinkReference = null;
private String hyperlinkAnchor = null;
private Integer hyperlinkPage = null;
private String hyperlinkTooltip;
private JRPrintHyperlinkParameters hyperlinkParameters;
protected int bookmarkLevel = 0;
public JRTemplatePrintImage(JRTemplateImage image) {
super(image);
}
public JRRenderable getRenderer() {
return this.renderer;
}
public void setRenderer(JRRenderable renderer) {
this.renderer = renderer;
}
public byte getScaleImage() {
return ((JRTemplateImage)this.template).getScaleImage();
}
public Byte getOwnScaleImage() {
return ((JRTemplateImage)this.template).getOwnScaleImage();
}
public void setScaleImage(byte scaleImage) {}
public void setScaleImage(Byte scaleImage) {}
public boolean isUsingCache() {
return ((JRTemplateImage)this.template).isUsingCache();
}
public void setUsingCache(boolean isUsingCache) {}
public byte getHorizontalAlignment() {
return ((JRTemplateImage)this.template).getHorizontalAlignment();
}
public Byte getOwnHorizontalAlignment() {
return ((JRTemplateImage)this.template).getOwnHorizontalAlignment();
}
public void setHorizontalAlignment(byte horizontalAlignment) {}
public void setHorizontalAlignment(Byte horizontalAlignment) {}
public byte getVerticalAlignment() {
return ((JRTemplateImage)this.template).getVerticalAlignment();
}
public Byte getOwnVerticalAlignment() {
return ((JRTemplateImage)this.template).getOwnVerticalAlignment();
}
public void setVerticalAlignment(byte verticalAlignment) {}
public void setVerticalAlignment(Byte verticalAlignment) {}
public boolean isLazy() {
return ((JRTemplateImage)this.template).isLazy();
}
public void setLazy(boolean isLazy) {}
public byte getOnErrorType() {
return ((JRTemplateImage)this.template).getOnErrorType();
}
public void setOnErrorType(byte onErrorType) {}
public JRBox getBox() {
return (JRBox)new LineBoxWrapper(getLineBox());
}
public JRLineBox getLineBox() {
return ((JRTemplateImage)this.template).getLineBox();
}
public void setBox(JRBox box) {
JRBoxUtil.setBoxToLineBox(box, getLineBox());
}
public String getAnchorName() {
return this.anchorName;
}
public void setAnchorName(String anchorName) {
this.anchorName = anchorName;
}
public byte getHyperlinkType() {
return ((JRTemplateImage)this.template).getHyperlinkType();
}
public void setHyperlinkType(byte hyperlinkType) {}
public byte getHyperlinkTarget() {
return ((JRTemplateImage)this.template).getHyperlinkTarget();
}
public void setHyperlinkTarget(byte hyperlinkTarget) {}
public String getHyperlinkReference() {
return this.hyperlinkReference;
}
public void setHyperlinkReference(String hyperlinkReference) {
this.hyperlinkReference = hyperlinkReference;
}
public String getHyperlinkAnchor() {
return this.hyperlinkAnchor;
}
public void setHyperlinkAnchor(String hyperlinkAnchor) {
this.hyperlinkAnchor = hyperlinkAnchor;
}
public Integer getHyperlinkPage() {
return this.hyperlinkPage;
}
public void setHyperlinkPage(Integer hyperlinkPage) {
this.hyperlinkPage = hyperlinkPage;
}
public int getBookmarkLevel() {
return this.bookmarkLevel;
}
public void setBookmarkLevel(int bookmarkLevel) {
this.bookmarkLevel = bookmarkLevel;
}
public byte getBorder() {
return getBox().getBorder();
}
public Byte getOwnBorder() {
return getBox().getOwnBorder();
}
public void setBorder(byte border) {
getBox().setBorder(border);
}
public void setBorder(Byte border) {
getBox().setBorder(border);
}
public Color getBorderColor() {
return getBox().getBorderColor();
}
public Color getOwnBorderColor() {
return getBox().getOwnBorderColor();
}
public void setBorderColor(Color borderColor) {
getBox().setBorderColor(borderColor);
}
public int getPadding() {
return getBox().getPadding();
}
public Integer getOwnPadding() {
return getBox().getOwnPadding();
}
public void setPadding(int padding) {
getBox().setPadding(padding);
}
public void setPadding(Integer padding) {
getBox().setPadding(padding);
}
public byte getTopBorder() {
return getBox().getTopBorder();
}
public Byte getOwnTopBorder() {
return getBox().getOwnTopBorder();
}
public void setTopBorder(byte topBorder) {
getBox().setTopBorder(topBorder);
}
public void setTopBorder(Byte topBorder) {
getBox().setTopBorder(topBorder);
}
public Color getTopBorderColor() {
return getBox().getTopBorderColor();
}
public Color getOwnTopBorderColor() {
return getBox().getOwnTopBorderColor();
}
public void setTopBorderColor(Color topBorderColor) {
getBox().setTopBorderColor(topBorderColor);
}
public int getTopPadding() {
return getBox().getTopPadding();
}
public Integer getOwnTopPadding() {
return getBox().getOwnTopPadding();
}
public void setTopPadding(int topPadding) {
getBox().setTopPadding(topPadding);
}
public void setTopPadding(Integer topPadding) {
getBox().setTopPadding(topPadding);
}
public byte getLeftBorder() {
return getBox().getLeftBorder();
}
public Byte getOwnLeftBorder() {
return getBox().getOwnLeftBorder();
}
public void setLeftBorder(byte leftBorder) {
getBox().setLeftBorder(leftBorder);
}
public void setLeftBorder(Byte leftBorder) {
getBox().setLeftBorder(leftBorder);
}
public Color getLeftBorderColor() {
return getBox().getLeftBorderColor();
}
public Color getOwnLeftBorderColor() {
return getBox().getOwnLeftBorderColor();
}
public void setLeftBorderColor(Color leftBorderColor) {
getBox().setLeftBorderColor(leftBorderColor);
}
public int getLeftPadding() {
return getBox().getLeftPadding();
}
public Integer getOwnLeftPadding() {
return getBox().getOwnLeftPadding();
}
public void setLeftPadding(int leftPadding) {
getBox().setLeftPadding(leftPadding);
}
public void setLeftPadding(Integer leftPadding) {
getBox().setLeftPadding(leftPadding);
}
public byte getBottomBorder() {
return getBox().getBottomBorder();
}
public Byte getOwnBottomBorder() {
return getBox().getOwnBottomBorder();
}
public void setBottomBorder(byte bottomBorder) {
getBox().setBottomBorder(bottomBorder);
}
public void setBottomBorder(Byte bottomBorder) {
getBox().setBottomBorder(bottomBorder);
}
public Color getBottomBorderColor() {
return getBox().getBottomBorderColor();
}
public Color getOwnBottomBorderColor() {
return getBox().getOwnBottomBorderColor();
}
public void setBottomBorderColor(Color bottomBorderColor) {
getBox().setBottomBorderColor(bottomBorderColor);
}
public int getBottomPadding() {
return getBox().getBottomPadding();
}
public Integer getOwnBottomPadding() {
return getBox().getOwnBottomPadding();
}
public void setBottomPadding(int bottomPadding) {
getBox().setBottomPadding(bottomPadding);
}
public void setBottomPadding(Integer bottomPadding) {
getBox().setBottomPadding(bottomPadding);
}
public byte getRightBorder() {
return getBox().getRightBorder();
}
public Byte getOwnRightBorder() {
return getBox().getOwnRightBorder();
}
public void setRightBorder(byte rightBorder) {
getBox().setRightBorder(rightBorder);
}
public void setRightBorder(Byte rightBorder) {
getBox().setRightBorder(rightBorder);
}
public Color getRightBorderColor() {
return getBox().getRightBorderColor();
}
public Color getOwnRightBorderColor() {
return getBox().getOwnRightBorderColor();
}
public void setRightBorderColor(Color rightBorderColor) {
getBox().setRightBorderColor(rightBorderColor);
}
public int getRightPadding() {
return getBox().getRightPadding();
}
public Integer getOwnRightPadding() {
return getBox().getOwnRightPadding();
}
public void setRightPadding(int rightPadding) {
getBox().setRightPadding(rightPadding);
}
public void setRightPadding(Integer rightPadding) {
getBox().setRightPadding(rightPadding);
}
public JRPrintHyperlinkParameters getHyperlinkParameters() {
return this.hyperlinkParameters;
}
public void setHyperlinkParameters(JRPrintHyperlinkParameters parameters) {
this.hyperlinkParameters = parameters;
}
public String getLinkType() {
return ((JRTemplateImage)this.template).getLinkType();
}
public void setLinkType(String type) {}
public String getHyperlinkTooltip() {
return this.hyperlinkTooltip;
}
public void setHyperlinkTooltip(String hyperlinkTooltip) {
this.hyperlinkTooltip = hyperlinkTooltip;
}
}