1 51 package org.apache.fop.datatypes; 52 53 import org.apache.fop.fo.expr.Numeric; 54 55 66 public class TableColLength extends Length { 67 68 71 double tcolUnits; 72 73 76 public TableColLength(double tcolUnits) { 77 this.tcolUnits = tcolUnits; 78 } 79 80 81 82 86 public double getTableUnits() { 87 return tcolUnits; 88 } 89 90 93 public void resolveTableUnit(double mpointsPerUnit) { 94 setComputedValue((int)(tcolUnits * mpointsPerUnit)); 95 } 96 97 105 106 public String toString() { 107 return (Double.toString(tcolUnits) + " table-column-units"); 108 } 109 110 public Numeric asNumeric() { 111 return new Numeric(this); 112 } 113 } 114 | Popular Tags |