aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/area/inline/InlineArea.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-01-25 10:55:48 +0000
committerJeremias Maerki <jeremias@apache.org>2005-01-25 10:55:48 +0000
commitc62eb56cc396af640a5323b1198b940d2b8afdb0 (patch)
tree44d97f476e33e3d68f76919783bcc91216740614 /src/java/org/apache/fop/area/inline/InlineArea.java
parent885db48aa4c07ce26f526752904fd9fd736b278b (diff)
downloadxmlgraphics-fop-c62eb56cc396af640a5323b1198b940d2b8afdb0.tar.gz
xmlgraphics-fop-c62eb56cc396af640a5323b1198b940d2b8afdb0.zip
First version of text-decoration support (no colors, yet, PDF rendering may not be optimal, yet, but the rest seems to work)
This change may kill what text-decoration support already was in the RTF renderer. This will need to be fixed later. Some javadoc and style touch-ups. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198314 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/area/inline/InlineArea.java')
-rw-r--r--src/java/org/apache/fop/area/inline/InlineArea.java20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/area/inline/InlineArea.java b/src/java/org/apache/fop/area/inline/InlineArea.java
index 2bf60edf3..c09105f40 100644
--- a/src/java/org/apache/fop/area/inline/InlineArea.java
+++ b/src/java/org/apache/fop/area/inline/InlineArea.java
@@ -1,5 +1,5 @@
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
package org.apache.fop.area.inline;
import org.apache.fop.area.Area;
+import org.apache.fop.area.Trait;
/**
* Inline Area
@@ -65,5 +66,22 @@ public class InlineArea extends Area {
public int getOffset() {
return verticalPosition;
}
+
+ public boolean hasUnderline() {
+ return getBooleanTrait(Trait.UNDERLINE);
+ }
+
+ public boolean hasOverline() {
+ return getBooleanTrait(Trait.OVERLINE);
+ }
+
+ public boolean hasLineThrough() {
+ return getBooleanTrait(Trait.LINETHROUGH);
+ }
+
+ public boolean isBlinking() {
+ return getBooleanTrait(Trait.BLINK);
+ }
+
}