Package org.pdfclown.objects

Examples of org.pdfclown.objects.PdfReal


  public void setStartPoint(
    Point2D value
    )
  {
    PdfArray coordinatesObject = (PdfArray)getBaseDataObject().get(PdfName.L);
    coordinatesObject.set(0,new PdfReal(value.getX()));
    coordinatesObject.set(1,new PdfReal(getPage().getBox().getHeight()-value.getY()));
  }
View Full Code Here


  {
    PdfArray verticesObject = new PdfArray();
    double pageHeight = getPage().getBox().getHeight();
    for(Point2D vertex : value)
    {
      verticesObject.add(new PdfReal(vertex.getX())); // x.
      verticesObject.add(new PdfReal(pageHeight-vertex.getY())); // y.
    }

    getBaseDataObject().put(PdfName.Vertices,verticesObject);
  }
View Full Code Here

          componentIndex < componentCount;
          componentIndex++
          )
        {
          components.add(
            new PdfReal((baseComponentValues[componentValueIndex++] & 0xff) / 255f)
            );
        }
      }
      baseColor = baseSpace.getColor(components, null);
    }
View Full Code Here

        int index = 0,
          length = outputValues.length;
        index < length;
        index++
        )
      {outputs.add(new PdfReal(outputValues[index]));}
    }
    return outputs;
  }
View Full Code Here

      if(alignmentObject == null)
      {
        alignmentObject = new PdfArray(
          new PdfDirectObject[]
          {
            new PdfReal(0.5f),
            new PdfReal(0.5f)
          }
          );
        getBaseDataObject().put(PdfName.A, alignmentObject);
      }
View Full Code Here

      if(alignmentObject == null)
      {
        alignmentObject = new PdfArray(
          new PdfDirectObject[]
          {
            new PdfReal(0.5f),
            new PdfReal(0.5f)
          }
          );
        getBaseDataObject().put(PdfName.A, alignmentObject);
      }
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.