Package org.pdfclown.objects

Examples of org.pdfclown.objects.PdfReal


    float pointY
    )
  {
    super(
      Operator,
      new PdfReal(pointX),
      new PdfReal(pointY)
      );
  }
View Full Code Here


    for(List<Point2D> path : value)
    {
      PdfArray pathObject = new PdfArray();
      for(Point2D point : path)
      {
        pathObject.add(new PdfReal(point.getX())); // x.
        pathObject.add(new PdfReal(pageHeight-point.getY())); // y.
      }
      pathsObject.add(pathObject);
    }

    getBaseDataObject().put(PdfName.InkList,pathsObject);
View Full Code Here

    boolean leadSet
    )
  {
    super(
      leadSet ? LeadOperator : SimpleOperator,
      new PdfReal(offsetX),
      new PdfReal(offsetY)
      );
  }
View Full Code Here

  {
    PdfArray quadPointsObject = new PdfArray();
    double pageHeight = getPage().getBox().getHeight();
    for(Rectangle2D box : value)
    {
      quadPointsObject.add(new PdfReal(box.getX())); // x1.
      quadPointsObject.add(new PdfReal(pageHeight-(box.getY()+box.getHeight()))); // y1.
      quadPointsObject.add(new PdfReal(box.getX()+box.getWidth())); // x2.
      quadPointsObject.add(quadPointsObject.get(1)); // y2.
      quadPointsObject.add(quadPointsObject.get(2)); // x3.
      quadPointsObject.add(new PdfReal(pageHeight-box.getY())); // y3.
      quadPointsObject.add(quadPointsObject.get(0)); // x4.
      quadPointsObject.add(quadPointsObject.get(5)); // y4.
    }

    getBaseDataObject().put(PdfName.QuadPoints,quadPointsObject);
View Full Code Here

    float b
    )
  {
    this(
      Arrays.asList(
        new PdfReal(normalizeComponent(r)),
        new PdfReal(normalizeComponent(g)),
        new PdfReal(normalizeComponent(b))
        )
      );
  }
View Full Code Here

    float... components
    )
  {// TODO:normalize parameters!
    List<PdfDirectObject> componentValues = new ArrayList<PdfDirectObject>();
    for(float component : components)
    {componentValues.add(new PdfReal((component)));}
    return componentValues;
  }
View Full Code Here

    float b
    )
  {
    this(
      Arrays.asList(
        new PdfReal(normalizeComponent(l)),//TODO:normalize using the actual color space ranges!!!
        new PdfReal(normalizeComponent(a)),
        new PdfReal(normalizeComponent(b))
        )
      );
  }
View Full Code Here

    )
  {
    if(value == null)
    {getBaseDataObject().remove(PdfName.D);}
    else
    {getBaseDataObject().put(PdfName.D,new PdfReal(value));}
  }
View Full Code Here

    )
  {
    if(value == null)
    {getBaseDataObject().remove(PdfName.SS);}
    else
    {getBaseDataObject().put(PdfName.SS,new PdfReal(value));}
  }
View Full Code Here

  // <dynamic>
  // <constructors>
  public SetTextRise(
    float value
    )
  {super(Operator, new PdfReal(value));}
View Full Code Here

TOP

Related Classes of org.pdfclown.objects.PdfReal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.