|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.datatypes.LengthBase
public class LengthBase
Models a length which can be used as a factor in a percentage length calculation
Field Summary | |
---|---|
static int |
ALIGNMENT_ADJUST
constant for a alignment adjust percent-based length |
static int |
CONTAINING_BLOCK_HEIGHT
constant for a containing block percent-based length |
static int |
CONTAINING_BLOCK_WIDTH
constant for a containing block percent-based length |
static int |
CONTAINING_REFAREA_WIDTH
constant for a containing refarea percent-based length |
static int |
CUSTOM_BASE
constant for a custom percent-based length |
protected FObj |
fobj
The FO for which this property is to be calculated. |
static int |
FONTSIZE
constant for a font-size percent-based length |
static int |
IMAGE_BACKGROUND_POSITION_HORIZONTAL
constant for a image background position horizontal percent-based length |
static int |
IMAGE_BACKGROUND_POSITION_VERTICAL
constant for a image background position vertical percent-based length |
static int |
IMAGE_INTRINSIC_HEIGHT
constant for a image intrinsic percent-based length |
static int |
IMAGE_INTRINSIC_WIDTH
constant for a image intrinsic percent-based length |
static int |
INH_FONTSIZE
constant for an inh font-size percent-based length |
protected static org.apache.commons.logging.Log |
log
logging instance |
static int |
PARENT_AREA_WIDTH
constant for a containing box percent-based length |
static int |
TABLE_UNITS
constant for a table-unit-based length |
Constructor Summary | |
---|---|
LengthBase(PropertyList plist,
int baseType)
Constructor |
Method Summary | |
---|---|
Length |
getBaseLength()
|
int |
getBaseLength(PercentBaseContext context)
|
double |
getBaseValue()
|
int |
getDimension()
Determines whether a numeric property is created or one with a percentage base. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CUSTOM_BASE
public static final int FONTSIZE
public static final int INH_FONTSIZE
public static final int PARENT_AREA_WIDTH
public static final int CONTAINING_REFAREA_WIDTH
public static final int CONTAINING_BLOCK_WIDTH
public static final int CONTAINING_BLOCK_HEIGHT
public static final int IMAGE_INTRINSIC_WIDTH
public static final int IMAGE_INTRINSIC_HEIGHT
public static final int IMAGE_BACKGROUND_POSITION_HORIZONTAL
public static final int IMAGE_BACKGROUND_POSITION_VERTICAL
public static final int TABLE_UNITS
public static final int ALIGNMENT_ADJUST
protected static org.apache.commons.logging.Log log
protected FObj fobj
Constructor Detail |
---|
public LengthBase(PropertyList plist, int baseType) throws PropertyException
plist
- property list for thisbaseType
- a constant defining the type of teh percent base
PropertyException
- In case an problem occurs while evaluating valuesMethod Detail |
---|
public int getDimension()
PercentBase
getDimension
in interface PercentBase
public double getBaseValue()
getBaseValue
in interface PercentBase
public int getBaseLength(PercentBaseContext context) throws PropertyException
getBaseLength
in interface PercentBase
context
- The context for percentage evaluation
PropertyException
- if a problem occurs during evaluation of this
value.public java.lang.String toString()
toString
in class java.lang.Object
public Length getBaseLength()
Length
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |