|
fop 0.95 | |||||||||
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.PercentLength
public class PercentLength
a percent specified length quantity in XSL
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 | |
---|---|
PercentLength(double factor,
PercentBase lbase)
Main constructor. |
Method Summary | |
---|---|
PercentBase |
getBaseLength()
|
double |
getNumericValue()
Return the value of this Numeric |
double |
getNumericValue(PercentBaseContext context)
Return the value of this Numeric |
protected double |
getPercentage()
Used during property resolution to check for negative percentages |
java.lang.String |
getString()
This method expects to be overridden by subclasses. |
int |
getValue()
Return the length of this PercentLength. |
int |
getValue(PercentBaseContext context)
Returns the length in 1/1000ths of a point (millipoints) |
boolean |
isAbsolute()
Return false because percent-length are always relative. |
java.lang.String |
toString()
|
Methods inherited from class org.apache.fop.fo.properties.LengthProperty |
---|
getDimension, getLength, getNumeric, getObject, getTableUnits |
Methods inherited from class org.apache.fop.fo.properties.Property |
---|
getCharacter, getColor, getCondLength, getEnum, getKeep, getLengthPair, getLengthRange, getList, getNCname, getNumber, getSpace, getSpecifiedValue, isAuto, setSpecifiedValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.fop.datatypes.Numeric |
---|
getEnum |
Constructor Detail |
---|
public PercentLength(double factor, PercentBase lbase)
factor
- the percentage factor, expressed as a decimal (e.g. use
.95 to represent 95%)lbase
- base property to which the factor should be appliedMethod Detail |
---|
public PercentBase getBaseLength()
protected double getPercentage()
public boolean isAbsolute()
public double getNumericValue()
public double getNumericValue(PercentBaseContext context)
context
- The context for the length calculation (for percentage based lengths)
public java.lang.String getString()
getString
in class Property
public int getValue()
public int getValue(PercentBaseContext context)
context
- The context for the length calculation (for percentage based lengths)
public java.lang.String toString()
Property
toString
in class Property
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |