Package org.apache.fop.fo.properties
Class TableColLength
- java.lang.Object
-
- org.apache.fop.fo.properties.Property
-
- org.apache.fop.fo.properties.LengthProperty
-
- org.apache.fop.fo.properties.TableColLength
-
public class TableColLength extends LengthProperty
A table-column width specification, possibly including some number of proportional "column-units". The absolute size of a column-unit depends on the fixed and proportional sizes of all columns in the table, and on the overall size of the table. It can't be calculated until all columns have been specified and until the actual width of the table is known. Since this can be specified as a percent of its parent containing width, the calculation is done during layout. NOTE: this is only supposed to be allowed if table-layout=fixed.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.fop.fo.properties.LengthProperty
LengthProperty.Maker
-
-
Constructor Summary
Constructors Constructor Description TableColLength(double tcolUnits, FObj column)Construct an object with tcolUnits of proportional measure.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)doublegetNumericValue()Return the value as a numeric value.doublegetNumericValue(PercentBaseContext context)Return the value of this NumericdoublegetTableUnits()Override the method in LengthintgetValue()Return the value as a length.intgetValue(PercentBaseContext context)Returns the length in 1/1000ths of a point (millipoints)inthashCode()booleanisAbsolute()Return false because table-col-units are a relative numeric.java.lang.StringtoString()Convert this to a String-
Methods inherited from class org.apache.fop.fo.properties.LengthProperty
getDimension, getLength, getNumeric, getObject
-
Methods inherited from class org.apache.fop.fo.properties.Property
getCharacter, getColor, getCondLength, getEnum, getKeep, getLengthPair, getLengthRange, getList, getNCname, getNumber, getSpace, getSpecifiedValue, getString, isAuto, setSpecifiedValue
-
-
-
-
Constructor Detail
-
TableColLength
public TableColLength(double tcolUnits, FObj column)Construct an object with tcolUnits of proportional measure.- Parameters:
tcolUnits- number of table-column proportional unitscolumn- the column the column-units are defined on
-
-
Method Detail
-
getTableUnits
public double getTableUnits()
Override the method in Length- Returns:
- the number of specified proportional table-column units.
-
isAbsolute
public boolean isAbsolute()
Return false because table-col-units are a relative numeric. Return true if the numeric is an absolute value. Relative values are percentages and table-column-units. All other numerics are absolute.- Returns:
- true when the numeric is absolute.
-
getNumericValue
public double getNumericValue()
Return the value as a numeric value. Return the value of this Numeric- Returns:
- the computed value.
-
getNumericValue
public double getNumericValue(PercentBaseContext context)
Return the value of this Numeric- Parameters:
context- The context for the length calculation (for percentage based lengths)- Returns:
- the computed value.
-
getValue
public int getValue()
Return the value as a length. Returns the length in 1/1000ths of a point (millipoints)- Returns:
- the length in millipoints
-
getValue
public int getValue(PercentBaseContext context)
Returns the length in 1/1000ths of a point (millipoints)- Parameters:
context- The context for the length calculation (for percentage based lengths)- Returns:
- the length in millipoints
-
toString
public java.lang.String toString()
Convert this to a String
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-