Package org.apache.batik.ext.awt.geom

Examples of org.apache.batik.ext.awt.geom.PathLength.lengthOfPath()


            float textLength,
            int lengthAdjustMode) {

  GeneralPath newPath = new GeneralPath();
  PathLength pl = new PathLength(path);
  float pathLength = pl.lengthOfPath();
  float glyphsLength = (float) glyphs.getVisualBounds().getWidth();

  // return from the ugly cases
  if (path == null ||
      glyphs == null ||
View Full Code Here


  // return from the ugly cases
  if (path == null ||
      glyphs == null ||
      glyphs.getNumGlyphs() == 0 ||
      pl.lengthOfPath() == 0f ||
      glyphsLength == 0f) {
      return newPath;
  }

  // work out the expansion/contraction per character
View Full Code Here

    /**
     * Returns the total length of the path.
     */
    public float getTotalLength() {
        PathLength pl = getPathLengthObj();
        return pl.lengthOfPath();
    }

    /**
     * Returns the point at the given distance along the path.
     */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.