Package org.pdfclown.objects

Examples of org.pdfclown.objects.PdfReal


          ).getBaseDataObject()
        );
      // ItalicAngle.
      fontDescriptor.put(
        PdfName.ItalicAngle,
        new PdfReal(metrics.italicAngle)
        );
      // Ascent.
      fontDescriptor.put(
        PdfName.Ascent,
        new PdfReal(
          metrics.ascender == 0
            ? metrics.sTypoAscender * metrics.unitNorm
            : metrics.ascender * metrics.unitNorm
          )
        );
      // Descent.
      fontDescriptor.put(
        PdfName.Descent,
        new PdfReal(
          metrics.descender == 0
            ? metrics.sTypoDescender * metrics.unitNorm
            : metrics.descender * metrics.unitNorm
          )
        );
      // Leading.
      fontDescriptor.put(
        PdfName.Leading,
        new PdfReal(metrics.sTypoLineGap * metrics.unitNorm)
        );
      // CapHeight.
      fontDescriptor.put(
        PdfName.CapHeight,
        new PdfReal(metrics.sCapHeight * metrics.unitNorm)
        );
      // StemV.
      /*
        NOTE: '100' is just a rule-of-thumb value, 'cause I've still to solve the
        'cvt' table puzzle (such a harsh headache!) for TrueType fonts...
View Full Code Here


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

      // Create default media box!
      mediaBox = new Rectangle(0,0,0,0).getBaseDataObject();
      // Assign the media box to the document!
      ((PdfDictionary)getBaseDataObject().resolve(PdfName.Pages)).put(PdfName.MediaBox,mediaBox);
    }
    mediaBox.set(2,new PdfReal(value.getWidth()));
    mediaBox.set(3,new PdfReal(value.getHeight()));
  }
View Full Code Here

    @see #getDuration()
  */
  public void setDuration(
    float value
    )
  {getBaseDataObject().put(PdfName.Dur,new PdfReal(value));}
View Full Code Here

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

    float k
    )
  {
    this(
      Arrays.asList(
        new PdfReal(normalizeComponent(c)),
        new PdfReal(normalizeComponent(m)),
        new PdfReal(normalizeComponent(y)),
        new PdfReal(normalizeComponent(k))
        )
      );
  }
View Full Code Here

      page
      );

    getBaseDataObject().put(
      PdfName.L,
      new PdfArray(new PdfDirectObject[]{new PdfReal(0),new PdfReal(0),new PdfReal(0),new PdfReal(0)})
      );
    setStartPoint(startPoint);
    setEndPoint(endPoint);
  }
View Full Code Here

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

  */
  public void setLeaderLineExtensionLength(
    double value
    )
  {
    getBaseDataObject().put(PdfName.LLE, new PdfReal(value));
    /*
      NOTE: If leader line extension entry is present, leader line MUST be too.
    */
    if(!getBaseDataObject().containsKey(PdfName.LL))
    {setLeaderLineLength(DefaultLeaderLineLength);}
View Full Code Here

    @see #getLeaderLineLength()
  */
  public void setLeaderLineLength(
    double value
    )
  {getBaseDataObject().put(PdfName.LL,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.