Package org.apache.fop.fo.properties
Class CommonTextDecoration
- java.lang.Object
-
- org.apache.fop.fo.properties.CommonTextDecoration
-
public class CommonTextDecoration extends java.lang.Object
Stores all information concerning text-decoration.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
BLINK
private int
decoration
private static int
LINE_THROUGH
private java.awt.Color
overColor
private static int
OVERLINE
private java.awt.Color
throughColor
private java.awt.Color
underColor
private static int
UNDERLINE
-
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 CommonTextDecoration
calcTextDecoration(PropertyList pList)
static CommonTextDecoration
createFromPropertyList(PropertyList pList)
Creates a CommonTextDecoration object from a property list.java.awt.Color
getLineThroughColor()
java.awt.Color
getOverlineColor()
java.awt.Color
getUnderlineColor()
boolean
hasLineThrough()
boolean
hasOverline()
boolean
hasUnderline()
boolean
isBlinking()
-
-
-
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
-
-