Package org.apache.fop.datatypes

Examples of org.apache.fop.datatypes.TableColLength


  pclen = new PercentLength(pcValue, pcBase);
        if (valType == PC_LENGTH)
    return pclen;
      }
      if ((valType & TCOL_LENGTH) != 0) {
  return new TableColLength((int)absValue, pclen, tcolValue);
      }
      return new MixedLength((int)absValue, pclen);
    }
    else {
      // or throw exception???
View Full Code Here


                pclen = new PercentLength(pcValue, pcBase);
                if (valType == PC_LENGTH)
                    return pclen;
            }
            if ((valType & TCOL_LENGTH) != 0) {
                return new TableColLength((int)absValue, pclen, tcolValue);
            }
            return new MixedLength((int)absValue, pclen);
        } else {
            // or throw exception???
            // can't make Length if dimension != 1
View Full Code Here

        }
        if (!pInfo.getPropertyList().getElement().equals("table-column")) {
            throw new PropertyException("proportional-column-width function may only be used on table-column FO");
        }
        // Check if table-layout is "fixed"...
        return new LengthProperty(new TableColLength(d.doubleValue()));
    }
View Full Code Here

        }
        if (!pInfo.getPropertyList().getElement().equals("table-column")) {
            throw new PropertyException("proportional-column-width function may only be used on table-column FO");
        }
        // Check if table-layout is "fixed"...
        return new LengthProperty(new TableColLength(d.doubleValue()));
    }
View Full Code Here

            }
            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) {
                return (Length)len.get(0);
            } else {
                return new MixedLength(len);
View Full Code Here

    }
    if (!pInfo.getPropertyList().getElement().equals("table-column")) {
      throw new PropertyException("proportional-column-width function may only be used on table-column FO");
    }
    // Check if table-layout is "fixed"...
    return new LengthProperty(new TableColLength(d.doubleValue()));
  }
View Full Code Here

  pclen = new PercentLength(pcValue, pcBase);
        if (valType == PC_LENGTH)
    return pclen;
      }
      if ((valType & TCOL_LENGTH) != 0) {
  return new TableColLength((int)absValue, pclen, tcolValue);
      }
      return new MixedLength((int)absValue, pclen);
    }
    else {
      // or throw exception???
View Full Code Here

            }
            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) {
    return (Length)len.elementAt(0);
      }
      else {
View Full Code Here

TOP

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

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.