1 28 package net.sf.jasperreports.engine.fill; 29 30 import java.awt.Color ; 31 32 import net.sf.jasperreports.engine.JRAnchor; 33 import net.sf.jasperreports.engine.JRBox; 34 import net.sf.jasperreports.engine.JRConstants; 35 import net.sf.jasperreports.engine.JRPrintHyperlinkParameters; 36 import net.sf.jasperreports.engine.JRPrintImage; 37 import net.sf.jasperreports.engine.JRRenderable; 38 39 40 44 public class JRTemplatePrintImage extends JRTemplatePrintGraphicElement implements JRPrintImage 45 { 46 47 48 51 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 52 53 56 private JRRenderable renderer = null; 57 private String anchorName = null; 58 private String hyperlinkReference = null; 59 private String hyperlinkAnchor = null; 60 private Integer hyperlinkPage = null; 61 private String hyperlinkTooltip; 62 private JRPrintHyperlinkParameters hyperlinkParameters; 63 64 68 protected int bookmarkLevel = JRAnchor.NO_BOOKMARK; 69 70 71 74 public JRTemplatePrintImage(JRTemplateImage image) 75 { 76 super(image); 77 } 78 79 82 public JRRenderable getRenderer() 83 { 84 return this.renderer; 85 } 86 87 90 public void setRenderer(JRRenderable renderer) 91 { 92 this.renderer = renderer; 93 } 94 95 98 public byte getScaleImage() 99 { 100 return ((JRTemplateImage)this.template).getScaleImage(); 101 } 102 103 106 public Byte getOwnScaleImage() 107 { 108 return ((JRTemplateImage)this.template).getOwnScaleImage(); 109 } 110 111 114 public void setScaleImage(byte scaleImage) 115 { 116 } 117 118 121 public void setScaleImage(Byte scaleImage) 122 { 123 } 124 125 128 public byte getHorizontalAlignment() 129 { 130 return ((JRTemplateImage)this.template).getHorizontalAlignment(); 131 } 132 133 136 public Byte getOwnHorizontalAlignment() 137 { 138 return ((JRTemplateImage)this.template).getOwnHorizontalAlignment(); 139 } 140 141 144 public void setHorizontalAlignment(byte horizontalAlignment) 145 { 146 } 147 148 151 public void setHorizontalAlignment(Byte horizontalAlignment) 152 { 153 } 154 155 158 public byte getVerticalAlignment() 159 { 160 return ((JRTemplateImage)this.template).getVerticalAlignment(); 161 } 162 163 166 public Byte getOwnVerticalAlignment() 167 { 168 return ((JRTemplateImage)this.template).getOwnVerticalAlignment(); 169 } 170 171 174 public void setVerticalAlignment(byte verticalAlignment) 175 { 176 } 177 178 181 public void setVerticalAlignment(Byte verticalAlignment) 182 { 183 } 184 185 188 public boolean isLazy() 189 { 190 return ((JRTemplateImage)this.template).isLazy(); 191 } 192 193 196 public void setLazy(boolean isLazy) 197 { 198 } 199 200 203 public byte getOnErrorType() 204 { 205 return ((JRTemplateImage)this.template).getOnErrorType(); 206 } 207 208 211 public void setOnErrorType(byte onErrorType) 212 { 213 } 214 215 218 public JRBox getBox() 219 { 220 return ((JRTemplateImage)template).getBox(); 221 } 222 223 226 public void setBox(JRBox box) 227 { 228 } 229 230 233 public String getAnchorName() 234 { 235 return this.anchorName; 236 } 237 238 241 public void setAnchorName(String anchorName) 242 { 243 this.anchorName = anchorName; 244 } 245 246 249 public byte getHyperlinkType() 250 { 251 return ((JRTemplateImage)this.template).getHyperlinkType(); 252 } 253 254 257 public void setHyperlinkType(byte hyperlinkType) 258 { 259 } 260 261 264 public byte getHyperlinkTarget() 265 { 266 return ((JRTemplateImage)this.template).getHyperlinkTarget(); 267 } 268 269 272 public void setHyperlinkTarget(byte hyperlinkTarget) 273 { 274 } 275 276 279 public String getHyperlinkReference() 280 { 281 return this.hyperlinkReference; 282 } 283 284 287 public void setHyperlinkReference(String hyperlinkReference) 288 { 289 this.hyperlinkReference = hyperlinkReference; 290 } 291 292 295 public String getHyperlinkAnchor() 296 { 297 return this.hyperlinkAnchor; 298 } 299 300 303 public void setHyperlinkAnchor(String hyperlinkAnchor) 304 { 305 this.hyperlinkAnchor = hyperlinkAnchor; 306 } 307 308 311 public Integer getHyperlinkPage() 312 { 313 return this.hyperlinkPage; 314 } 315 316 319 public void setHyperlinkPage(Integer hyperlinkPage) 320 { 321 this.hyperlinkPage = hyperlinkPage; 322 } 323 324 325 public int getBookmarkLevel() 326 { 327 return bookmarkLevel; 328 } 329 330 331 public void setBookmarkLevel(int bookmarkLevel) 332 { 333 this.bookmarkLevel = bookmarkLevel; 334 } 335 336 337 340 public byte getBorder() 341 { 342 return ((JRTemplateImage)template).getBorder(); 343 } 344 345 public Byte getOwnBorder() 346 { 347 return ((JRTemplateImage)template).getOwnBorder(); 348 } 349 350 353 public void setBorder(byte border) 354 { 355 } 356 357 360 public Color getBorderColor() 361 { 362 return ((JRTemplateImage)template).getBorderColor(); 363 } 364 365 public Color getOwnBorderColor() 366 { 367 return ((JRTemplateImage)template).getOwnBorderColor(); 368 } 369 370 373 public void setBorderColor(Color borderColor) 374 { 375 } 376 377 380 public int getPadding() 381 { 382 return ((JRTemplateImage)template).getPadding(); 383 } 384 385 public Integer getOwnPadding() 386 { 387 return ((JRTemplateImage)template).getOwnPadding(); 388 } 389 390 393 public void setPadding(int padding) 394 { 395 } 396 397 400 public byte getTopBorder() 401 { 402 return ((JRTemplateImage)template).getTopBorder(); 403 } 404 405 408 public Byte getOwnTopBorder() 409 { 410 return ((JRTemplateImage)template).getOwnTopBorder(); 411 } 412 413 416 public void setTopBorder(byte topBorder) 417 { 418 } 419 420 423 public Color getTopBorderColor() 424 { 425 return ((JRTemplateImage)template).getTopBorderColor(); 426 } 427 428 431 public Color getOwnTopBorderColor() 432 { 433 return ((JRTemplateImage)template).getOwnTopBorderColor(); 434 } 435 436 439 public void setTopBorderColor(Color topBorderColor) 440 { 441 } 442 443 446 public int getTopPadding() 447 { 448 return ((JRTemplateImage)template).getTopPadding(); 449 } 450 451 454 public Integer getOwnTopPadding() 455 { 456 return ((JRTemplateImage)template).getOwnTopPadding(); 457 } 458 459 462 public void setTopPadding(int topPadding) 463 { 464 } 465 466 469 public byte getLeftBorder() 470 { 471 return ((JRTemplateImage)template).getLeftBorder(); 472 } 473 474 477 public Byte getOwnLeftBorder() 478 { 479 return ((JRTemplateImage)template).getOwnLeftBorder(); 480 } 481 482 485 public void setLeftBorder(byte leftBorder) 486 { 487 } 488 489 492 public Color getLeftBorderColor() 493 { 494 return ((JRTemplateImage)template).getLeftBorderColor(); 495 } 496 497 500 public Color getOwnLeftBorderColor() 501 { 502 return ((JRTemplateImage)template).getOwnLeftBorderColor(); 503 } 504 505 508 public void setLeftBorderColor(Color leftBorderColor) 509 { 510 } 511 512 515 public int getLeftPadding() 516 { 517 return ((JRTemplateImage)template).getLeftPadding(); 518 } 519 520 523 public Integer getOwnLeftPadding() 524 { 525 return ((JRTemplateImage)template).getOwnLeftPadding(); 526 } 527 528 531 public void setLeftPadding(int leftPadding) 532 { 533 } 534 535 538 public byte getBottomBorder() 539 { 540 return ((JRTemplateImage)template).getBottomBorder(); 541 } 542 543 546 public Byte getOwnBottomBorder() 547 { 548 return ((JRTemplateImage)template).getOwnBottomBorder(); 549 } 550 551 554 public void setBottomBorder(byte bottomBorder) 555 { 556 } 557 558 561 public Color getBottomBorderColor() 562 { 563 return ((JRTemplateImage)template).getBottomBorderColor(); 564 } 565 566 569 public Color getOwnBottomBorderColor() 570 { 571 return ((JRTemplateImage)template).getOwnBottomBorderColor(); 572 } 573 574 577 public void setBottomBorderColor(Color bottomBorderColor) 578 { 579 } 580 581 584 public int getBottomPadding() 585 { 586 return ((JRTemplateImage)template).getBottomPadding(); 587 } 588 589 592 public Integer getOwnBottomPadding() 593 { 594 return ((JRTemplateImage)template).getOwnBottomPadding(); 595 } 596 597 600 public void setBottomPadding(int bottomPadding) 601 { 602 } 603 604 607 public byte getRightBorder() 608 { 609 return ((JRTemplateImage)template).getRightBorder(); 610 } 611 612 615 public Byte getOwnRightBorder() 616 { 617 return ((JRTemplateImage)template).getOwnRightBorder(); 618 } 619 620 623 public void setRightBorder(byte rightBorder) 624 { 625 } 626 627 630 public Color getRightBorderColor() 631 { 632 return ((JRTemplateImage)template).getRightBorderColor(); 633 } 634 635 638 public Color getOwnRightBorderColor() 639 { 640 return ((JRTemplateImage)template).getOwnRightBorderColor(); 641 } 642 643 646 public void setRightBorderColor(Color rightBorderColor) 647 { 648 } 649 650 653 public int getRightPadding() 654 { 655 return ((JRTemplateImage)template).getRightPadding(); 656 } 657 658 661 public Integer getOwnRightPadding() 662 { 663 return ((JRTemplateImage)template).getOwnRightPadding(); 664 } 665 666 669 public void setRightPadding(int rightPadding) 670 { 671 } 672 673 676 public void setBorder(Byte border) 677 { 678 } 679 680 683 public void setPadding(Integer padding) 684 { 685 } 686 687 690 public void setTopBorder(Byte topBorder) 691 { 692 } 693 694 697 public void setTopPadding(Integer topPadding) 698 { 699 } 700 701 704 public void setLeftBorder(Byte leftBorder) 705 { 706 } 707 708 711 public void setLeftPadding(Integer leftPadding) 712 { 713 } 714 715 718 public void setBottomBorder(Byte bottomBorder) 719 { 720 } 721 722 725 public void setBottomPadding(Integer bottomPadding) 726 { 727 } 728 729 732 public void setRightBorder(Byte rightBorder) 733 { 734 } 735 736 739 public void setRightPadding(Integer rightPadding) 740 { 741 } 742 743 744 public JRPrintHyperlinkParameters getHyperlinkParameters() 745 { 746 return hyperlinkParameters; 747 } 748 749 750 public void setHyperlinkParameters(JRPrintHyperlinkParameters parameters) 751 { 752 this.hyperlinkParameters = parameters; 753 } 754 755 756 public String getLinkType() 757 { 758 return ((JRTemplateImage) this.template).getLinkType(); 759 } 760 761 public void setLinkType(String type) 762 { 763 } 764 765 766 public String getHyperlinkTooltip() 767 { 768 return hyperlinkTooltip; 769 } 770 771 772 public void setHyperlinkTooltip(String hyperlinkTooltip) 773 { 774 this.hyperlinkTooltip = hyperlinkTooltip; 775 } 776 777 } 778 | Popular Tags |