|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fo.properties.Property
org.apache.fop.fo.properties.LengthProperty
org.apache.fop.fo.properties.TableColLength
public class TableColLength
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 |
Field Summary |
---|
Fields inherited from class org.apache.fop.fo.properties.Property |
---|
log |
Constructor Summary | |
---|---|
TableColLength(double tcolUnits,
FObj column)
Construct an object with tcolUnits of proportional measure. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
double |
getNumericValue()
Return the value as a numeric value. |
double |
getNumericValue(PercentBaseContext context)
Return the value of this Numeric |
double |
getTableUnits()
Override the method in Length |
int |
getValue()
Return the value as a length. |
int |
getValue(PercentBaseContext context)
Returns the length in 1/1000ths of a point (millipoints) |
int |
hashCode()
|
boolean |
isAbsolute()
Return false because table-col-units are a relative numeric. |
java.lang.String |
toString()
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.fop.datatypes.Numeric |
---|
getEnum |
Constructor Detail |
---|
public TableColLength(double tcolUnits, FObj column)
tcolUnits
- number of table-column proportional unitscolumn
- the column the column-units are defined onMethod Detail |
---|
public double getTableUnits()
public boolean isAbsolute()
public double getNumericValue()
public double getNumericValue(PercentBaseContext context)
context
- The context for the length calculation (for percentage based lengths)
public int getValue()
public int getValue(PercentBaseContext context)
context
- The context for the length calculation (for percentage based lengths)
public java.lang.String toString()
toString
in class Property
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |