Package org.apache.fop.fo.properties
Class CommonTextDecoration
- java.lang.Object
-
- org.apache.fop.fo.properties.CommonTextDecoration
-
public class CommonTextDecoration extends java.lang.ObjectStores all information concerning text-decoration.
-
-
Field Summary
Fields Modifier and Type Field Description private static intBLINKprivate intdecorationprivate static intLINE_THROUGHprivate java.awt.ColoroverColorprivate static intOVERLINEprivate java.awt.ColorthroughColorprivate java.awt.ColorunderColorprivate static intUNDERLINE
-
Constructor Summary
Constructors Constructor Description CommonTextDecoration()Creates a new CommonTextDecoration object with default values.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static CommonTextDecorationcalcTextDecoration(PropertyList pList)static CommonTextDecorationcreateFromPropertyList(PropertyList pList)Creates a CommonTextDecoration object from a property list.java.awt.ColorgetLineThroughColor()java.awt.ColorgetOverlineColor()java.awt.ColorgetUnderlineColor()booleanhasLineThrough()booleanhasOverline()booleanhasUnderline()booleanisBlinking()
-
-
-
Field Detail
-
UNDERLINE
private static final int UNDERLINE
- See Also:
- Constant Field Values
-
OVERLINE
private static final int OVERLINE
- See Also:
- Constant Field Values
-
LINE_THROUGH
private static final int LINE_THROUGH
- See Also:
- Constant Field Values
-
BLINK
private static final int BLINK
- See Also:
- Constant Field Values
-
decoration
private int decoration
-
underColor
private java.awt.Color underColor
-
overColor
private java.awt.Color overColor
-
throughColor
private java.awt.Color throughColor
-
-
Method Detail
-
createFromPropertyList
public static CommonTextDecoration createFromPropertyList(PropertyList pList) throws PropertyException
Creates a CommonTextDecoration object from a property list.- Parameters:
pList- the property list to build the object for- Returns:
- a CommonTextDecoration object or null if the obj would only have default values
- Throws:
PropertyException- if there's a problem while processing the property
-
calcTextDecoration
private static CommonTextDecoration calcTextDecoration(PropertyList pList) throws PropertyException
- Throws:
PropertyException
-
hasUnderline
public boolean hasUnderline()
- Returns:
- true if underline is active
-
hasOverline
public boolean hasOverline()
- Returns:
- true if overline is active
-
hasLineThrough
public boolean hasLineThrough()
- Returns:
- true if line-through is active
-
isBlinking
public boolean isBlinking()
- Returns:
- true if blink is active
-
getUnderlineColor
public java.awt.Color getUnderlineColor()
- Returns:
- the color of the underline mark
-
getOverlineColor
public java.awt.Color getOverlineColor()
- Returns:
- the color of the overline mark
-
getLineThroughColor
public java.awt.Color getLineThroughColor()
- Returns:
- the color of the line-through mark
-
-