All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pdfjet.FileAttachment Maven / Gradle / Ivy

/*    */ package com.pdfjet;
/*    */ 
/*    */ import java.util.List;
/*    */ 
/*    */ public class FileAttachment
/*    */ {
/* 39 */   protected int objNumber = -1;
/* 40 */   protected PDF pdf = null;
/* 41 */   protected EmbeddedFile embeddedFile = null;
/* 42 */   protected String icon = "PushPin";
/* 43 */   protected String title = "";
/* 44 */   protected String contents = "Right mouse click or double click on the icon to save the attached file.";
/* 45 */   protected float x = 0.0F;
/* 46 */   protected float y = 0.0F;
/* 47 */   protected float h = 24.0F;
/*    */ 
/*    */   public FileAttachment(PDF paramPDF, EmbeddedFile paramEmbeddedFile)
/*    */   {
/* 51 */     this.pdf = paramPDF;
/* 52 */     this.embeddedFile = paramEmbeddedFile;
/*    */   }
/*    */ 
/*    */   public void setLocation(float paramFloat1, float paramFloat2)
/*    */   {
/* 57 */     this.x = paramFloat1;
/* 58 */     this.y = paramFloat2;
/*    */   }
/*    */ 
/*    */   public void setIconPushPin()
/*    */   {
/* 63 */     this.icon = "PushPin";
/*    */   }
/*    */ 
/*    */   public void setIconPaperclip()
/*    */   {
/* 68 */     this.icon = "Paperclip";
/*    */   }
/*    */ 
/*    */   public void setIconSize(float paramFloat)
/*    */   {
/* 73 */     this.h = paramFloat;
/*    */   }
/*    */ 
/*    */   public void setTitle(String paramString)
/*    */   {
/* 78 */     this.title = paramString;
/*    */   }
/*    */ 
/*    */   public void setDescription(String paramString)
/*    */   {
/* 83 */     this.contents = paramString;
/*    */   }
/*    */ 
/*    */   public void drawOn(Page paramPage) throws Exception
/*    */   {
/* 88 */     Annotation localAnnotation = new Annotation(null, null, this.x, paramPage.height - this.y, this.x + this.h, paramPage.height - (this.y + this.h), null, null, null);
/*    */ 
/* 98 */     localAnnotation.fileAttachment = this;
/* 99 */     paramPage.annots.add(localAnnotation);
/*    */   }
/*    */ }

/* Location:           E:\EGGWIFI\Customer\trunk\src\Workspace\Customer\Customer Maven Webapp\src\main\webapp\WEB-INF\lib\PDFjet.jar
 * Qualified Name:     com.pdfjet.FileAttachment
 * JD-Core Version:    0.6.2
 */




© 2015 - 2024 Weber Informatics LLC | Privacy Policy