package org.apache.fop.datatypes;
import org.apache.fop.fo.Property;
-import org.apache.fop.fo.Constants;
/**
* A "progression-dimension" quantity.
*/
public void setComponent(int cmpId, Property cmpnValue,
boolean bIsDefault) {
- if (cmpId == Constants.CP_MINIMUM) {
+ if (cmpId == CP_MINIMUM) {
setMinimum(cmpnValue, bIsDefault);
- } else if (cmpId == Constants.CP_OPTIMUM) {
+ } else if (cmpId == CP_OPTIMUM) {
setOptimum(cmpnValue, bIsDefault);
- } else if (cmpId == Constants.CP_MAXIMUM) {
+ } else if (cmpId == CP_MAXIMUM) {
setMaximum(cmpnValue, bIsDefault);
}
}
* @see org.apache.fop.datatypes.CompoundDatatype#getComponent(int)
*/
public Property getComponent(int cmpId) {
- if (cmpId == Constants.CP_MINIMUM) {
+ if (cmpId == CP_MINIMUM) {
return getMinimum();
- } else if (cmpId == Constants.CP_OPTIMUM) {
+ } else if (cmpId == CP_OPTIMUM) {
return getOptimum();
- } else if (cmpId == Constants.CP_MAXIMUM) {
+ } else if (cmpId == CP_MAXIMUM) {
return getMaximum();
} else {
return null; // SHOULDN'T HAPPEN
package org.apache.fop.datatypes;
import org.apache.fop.fo.Property;
-import org.apache.fop.fo.Constants;
/**
* a space quantity in XSL (space-before, space-after)
*/
public void setComponent(int cmpId, Property cmpnValue,
boolean bIsDefault) {
- if (cmpId == Constants.CP_PRECEDENCE) {
+ if (cmpId == CP_PRECEDENCE) {
setPrecedence(cmpnValue, bIsDefault);
- } else if (cmpId == Constants.CP_CONDITIONALITY) {
+ } else if (cmpId == CP_CONDITIONALITY) {
setConditionality(cmpnValue, bIsDefault);
} else {
super.setComponent(cmpId, cmpnValue, bIsDefault);
* @see org.apache.fop.datatypes.CompoundDatatype#getComponent(int)
*/
public Property getComponent(int cmpId) {
- if (cmpId == Constants.CP_PRECEDENCE) {
+ if (cmpId == CP_PRECEDENCE) {
return getPrecedence();
- } else if (cmpId == Constants.CP_CONDITIONALITY) {
+ } else if (cmpId == CP_CONDITIONALITY) {
return getConditionality();
} else {
return super.getComponent(cmpId);