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

com.pdfjet.Point Maven / Gradle / Ivy

/*     */ package com.pdfjet;
/*     */ 
/*     */ public class Point
/*     */   implements Drawable
/*     */ {
/*     */   public static final int INVISIBLE = -1;
/*     */   public static final int CIRCLE = 0;
/*     */   public static final int DIAMOND = 1;
/*     */   public static final int BOX = 2;
/*     */   public static final int PLUS = 3;
/*     */   public static final int H_DASH = 4;
/*     */   public static final int V_DASH = 5;
/*     */   public static final int MULTIPLY = 6;
/*     */   public static final int STAR = 7;
/*     */   public static final int X_MARK = 8;
/*     */   public static final int UP_ARROW = 9;
/*     */   public static final int DOWN_ARROW = 10;
/*     */   public static final int LEFT_ARROW = 11;
/*     */   public static final int RIGHT_ARROW = 12;
/*     */   public static final boolean CONTROL_POINT = true;
/*     */   protected float x;
/*     */   protected float y;
/*  60 */   protected float r = 2.0F;
/*  61 */   protected int shape = 0;
/*  62 */   protected int color = 0;
/*  63 */   protected int align = 2097152;
/*  64 */   protected float lineWidth = 0.3F;
/*  65 */   protected String linePattern = "[] 0";
/*  66 */   protected boolean fillShape = false;
/*  67 */   protected boolean isControlPoint = false;
/*  68 */   protected boolean isStartOfPath = false;
/*     */   private String text;
/*     */   private int textColor;
/*     */   private int textDirection;
/*     */   private String uri;
/*     */   private float box_x;
/*     */   private float box_y;
/*     */ 
/*     */   public Point()
/*     */   {
/*     */   }
/*     */ 
/*     */   public Point(double paramDouble1, double paramDouble2)
/*     */   {
/*  91 */     this((float)paramDouble1, (float)paramDouble2);
/*     */   }
/*     */ 
/*     */   public Point(float paramFloat1, float paramFloat2)
/*     */   {
/* 102 */     this.x = paramFloat1;
/* 103 */     this.y = paramFloat2;
/*     */   }
/*     */ 
/*     */   public Point(double paramDouble1, double paramDouble2, boolean paramBoolean)
/*     */   {
/* 115 */     this((float)paramDouble1, (float)paramDouble2, paramBoolean);
/*     */   }
/*     */ 
/*     */   public Point(float paramFloat1, float paramFloat2, boolean paramBoolean)
/*     */   {
/* 127 */     this.x = paramFloat1;
/* 128 */     this.y = paramFloat2;
/* 129 */     this.isControlPoint = paramBoolean;
/*     */   }
/*     */ 
/*     */   public void setPosition(double paramDouble1, double paramDouble2)
/*     */   {
/* 140 */     setPosition((float)paramDouble1, (float)paramDouble2);
/*     */   }
/*     */ 
/*     */   public void setPosition(float paramFloat1, float paramFloat2)
/*     */   {
/* 151 */     setLocation(paramFloat1, paramFloat2);
/*     */   }
/*     */ 
/*     */   public void setLocation(float paramFloat1, float paramFloat2)
/*     */   {
/* 162 */     this.x = paramFloat1;
/* 163 */     this.y = paramFloat2;
/*     */   }
/*     */ 
/*     */   public void setX(double paramDouble)
/*     */   {
/* 173 */     this.x = ((float)paramDouble);
/*     */   }
/*     */ 
/*     */   public void setX(float paramFloat)
/*     */   {
/* 183 */     this.x = paramFloat;
/*     */   }
/*     */ 
/*     */   public float getX()
/*     */   {
/* 193 */     return this.x;
/*     */   }
/*     */ 
/*     */   public void setY(double paramDouble)
/*     */   {
/* 203 */     this.y = ((float)paramDouble);
/*     */   }
/*     */ 
/*     */   public void setY(float paramFloat)
/*     */   {
/* 213 */     this.y = paramFloat;
/*     */   }
/*     */ 
/*     */   public float getY()
/*     */   {
/* 223 */     return this.y;
/*     */   }
/*     */ 
/*     */   public void setRadius(double paramDouble)
/*     */   {
/* 233 */     this.r = ((float)paramDouble);
/*     */   }
/*     */ 
/*     */   public void setRadius(float paramFloat)
/*     */   {
/* 243 */     this.r = paramFloat;
/*     */   }
/*     */ 
/*     */   public float getRadius()
/*     */   {
/* 253 */     return this.r;
/*     */   }
/*     */ 
/*     */   public void setShape(int paramInt)
/*     */   {
/* 279 */     this.shape = paramInt;
/*     */   }
/*     */ 
/*     */   public int getShape()
/*     */   {
/* 289 */     return this.shape;
/*     */   }
/*     */ 
/*     */   public void setFillShape(boolean paramBoolean)
/*     */   {
/* 299 */     this.fillShape = paramBoolean;
/*     */   }
/*     */ 
/*     */   public boolean getFillShape()
/*     */   {
/* 309 */     return this.fillShape;
/*     */   }
/*     */ 
/*     */   public void setColor(int paramInt)
/*     */   {
/* 319 */     this.color = paramInt;
/*     */   }
/*     */ 
/*     */   public int getColor()
/*     */   {
/* 329 */     return this.color;
/*     */   }
/*     */ 
/*     */   public void setLineWidth(double paramDouble)
/*     */   {
/* 339 */     this.lineWidth = ((float)paramDouble);
/*     */   }
/*     */ 
/*     */   public void setLineWidth(float paramFloat)
/*     */   {
/* 349 */     this.lineWidth = paramFloat;
/*     */   }
/*     */ 
/*     */   public float getLineWidth()
/*     */   {
/* 359 */     return this.lineWidth;
/*     */   }
/*     */ 
/*     */   public void setLinePattern(String paramString)
/*     */   {
/* 388 */     this.linePattern = paramString;
/*     */   }
/*     */ 
/*     */   public String getLinePattern()
/*     */   {
/* 398 */     return this.linePattern;
/*     */   }
/*     */ 
/*     */   @Deprecated
/*     */   public void setDrawLineTo(boolean paramBoolean)
/*     */   {
/* 411 */     this.isStartOfPath = paramBoolean;
/*     */   }
/*     */ 
/*     */   public void setStartOfPath()
/*     */   {
/* 420 */     this.isStartOfPath = true;
/*     */   }
/*     */ 
/*     */   public void setURIAction(String paramString)
/*     */   {
/* 430 */     this.uri = paramString;
/*     */   }
/*     */ 
/*     */   public String getURIAction()
/*     */   {
/* 440 */     return this.uri;
/*     */   }
/*     */ 
/*     */   public void setText(String paramString)
/*     */   {
/* 450 */     this.text = paramString;
/*     */   }
/*     */ 
/*     */   public String getText()
/*     */   {
/* 460 */     return this.text;
/*     */   }
/*     */ 
/*     */   public void setTextColor(int paramInt)
/*     */   {
/* 470 */     this.textColor = paramInt;
/*     */   }
/*     */ 
/*     */   public int getTextColor()
/*     */   {
/* 480 */     return this.textColor;
/*     */   }
/*     */ 
/*     */   public void setTextDirection(int paramInt)
/*     */   {
/* 490 */     this.textDirection = paramInt;
/*     */   }
/*     */ 
/*     */   public int getTextDirection()
/*     */   {
/* 500 */     return this.textDirection;
/*     */   }
/*     */ 
/*     */   public void setAlignment(int paramInt)
/*     */   {
/* 510 */     this.align = paramInt;
/*     */   }
/*     */ 
/*     */   public int getAlignment()
/*     */   {
/* 520 */     return this.align;
/*     */   }
/*     */ 
/*     */   public void placeIn(Box paramBox)
/*     */     throws Exception
/*     */   {
/* 530 */     placeIn(paramBox, 0.0F, 0.0F);
/*     */   }
/*     */ 
/*     */   public void placeIn(Box paramBox, double paramDouble1, double paramDouble2)
/*     */     throws Exception
/*     */   {
/* 545 */     placeIn(paramBox, (float)paramDouble1, (float)paramDouble2);
/*     */   }
/*     */ 
/*     */   public void placeIn(Box paramBox, float paramFloat1, float paramFloat2)
/*     */     throws Exception
/*     */   {
/* 560 */     this.box_x = (paramBox.x + paramFloat1);
/* 561 */     this.box_y = (paramBox.y + paramFloat2);
/*     */   }
/*     */ 
/*     */   public float[] drawOn(Page paramPage)
/*     */     throws Exception
/*     */   {
/* 573 */     paramPage.setPenWidth(this.lineWidth);
/* 574 */     paramPage.setLinePattern(this.linePattern);
/*     */ 
/* 576 */     if (this.fillShape) {
/* 577 */       paramPage.setBrushColor(this.color);
/*     */     }
/*     */     else {
/* 580 */       paramPage.setPenColor(this.color);
/*     */     }
/*     */ 
/* 583 */     this.x += this.box_x;
/* 584 */     this.y += this.box_y;
/* 585 */     paramPage.drawPoint(this);
/* 586 */     this.x -= this.box_x;
/* 587 */     this.y -= this.box_y;
/*     */ 
/* 589 */     return new float[] { this.x + this.box_x + this.r, this.y + this.box_y + this.r };
/*     */   }
/*     */ }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy