Package org.apache.fop.datatypes

Examples of org.apache.fop.datatypes.PercentLength


  public Length asLength() {
    if (dim == 1) {
      if (valType == ABS_LENGTH) {
  return new Length((int)absValue);
      }
      PercentLength pclen = null;
      if ((valType & PC_LENGTH)!=0)  {
  pclen = new PercentLength(pcValue, pcBase);
        if (valType == PC_LENGTH)
    return pclen;
      }
      if ((valType & TCOL_LENGTH) != 0) {
  return new TableColLength((int)absValue, pclen, tcolValue);
View Full Code Here


    public Length asLength() {
        if (dim == 1) {
            if (valType == ABS_LENGTH) {
                return new Length((int)absValue);
            }
            PercentLength pclen = null;
            if ((valType & PC_LENGTH) != 0) {
                pclen = new PercentLength(pcValue, pcBase);
                if (valType == PC_LENGTH)
                    return pclen;
            }
            if ((valType & TCOL_LENGTH) != 0) {
                return new TableColLength((int)absValue, pclen, tcolValue);
View Full Code Here

            ArrayList len = new ArrayList(3);
            if ((valType & ABS_LENGTH) != 0) {
                len.add(new FixedLength((int)absValue));
            }
            if ((valType & PC_LENGTH) != 0) {
                len.add(new PercentLength(pcValue, pcBase));
            }
            if ((valType & TCOL_LENGTH) != 0) {
                len.add(new TableColLength(tcolValue));
            }
            if (len.size() == 1) {
View Full Code Here

  public Length asLength() {
    if (dim == 1) {
      if (valType == ABS_LENGTH) {
  return new Length((int)absValue);
      }
      PercentLength pclen = null;
      if ((valType & PC_LENGTH)!=0)  {
  pclen = new PercentLength(pcValue, pcBase);
        if (valType == PC_LENGTH)
    return pclen;
      }
      if ((valType & TCOL_LENGTH) != 0) {
  return new TableColLength((int)absValue, pclen, tcolValue);
View Full Code Here

      Vector len = new Vector(3);
            if ((valType & ABS_LENGTH) != 0) {
                len.add(new FixedLength((int)absValue));
            }
            if ((valType & PC_LENGTH) != 0) {
                len.add(new PercentLength(pcValue, pcBase));
            }
            if ((valType & TCOL_LENGTH) != 0) {
                len.add(new TableColLength(tcolValue));
            }
      if (len.size() == 1) {
View Full Code Here

TOP

Related Classes of org.apache.fop.datatypes.PercentLength

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.