return abstractBorderWidth.getValue(context, fobj);
}
/* Now try the lowest-level shorthand, e.g. "border-top". */
rawPropertyType = AbstractBorder.rawPropertyType(otherDirection);
final AbstractBorder abstractBorder = (AbstractBorder) getProperty(
rawPropertyType);
if (abstractBorder != null) {
abstractBorderWidth = abstractBorder.getBorderWidth();
if (abstractBorderWidth != null) {
return abstractBorderWidth.getValue(context, fobj);
}
}
/* Now try the next least-precise shorthand, that is, "border-width". */
final PdBorderWidth borderWidth = (PdBorderWidth) getProperty(
FoProperty.BORDER_WIDTH);
if (borderWidth != null) {
return borderWidth.getValue(context, direction, fobj);
}
/* Now try the least-precise shorthand, that is, "border". */
final AbstractBorder border = (AbstractBorder) getProperty(
FoProperty.BORDER);
if (border != null) {
abstractBorderWidth = border.getBorderWidth();
}
if (abstractBorderWidth != null) {
return abstractBorderWidth.getValue(context, fobj);
}