diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-05-03 07:21:02 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-05-03 07:21:02 +0000 |
commit | 6e9e6775bd5c5d16550ba64b7666eda6ed382d44 (patch) | |
tree | b0ce141fdbd4d4499ea1ed4994fa9c5bb4b46bd2 /src/java/org/apache/fop/fo/flow/Block.java | |
parent | 3fd99265691afe51eeccd10ecf704148eaaca669 (diff) | |
download | xmlgraphics-fop-6e9e6775bd5c5d16550ba64b7666eda6ed382d44.tar.gz xmlgraphics-fop-6e9e6775bd5c5d16550ba64b7666eda6ed382d44.zip |
Bugzilla #38946:
First step for improved color handling. FOP's own ColorType was replaced with java.awt.Color throughout the codebase.
Submitted by: Max Berger <max.at.berger.name>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@399185 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/flow/Block.java')
-rw-r--r-- | src/java/org/apache/fop/fo/flow/Block.java | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/java/org/apache/fop/fo/flow/Block.java b/src/java/org/apache/fop/fo/flow/Block.java index 790087cb1..f4e600c81 100644 --- a/src/java/org/apache/fop/fo/flow/Block.java +++ b/src/java/org/apache/fop/fo/flow/Block.java @@ -1,5 +1,5 @@ /* - * Copyright 1999-2005 The Apache Software Foundation. + * Copyright 1999-2006 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. @@ -14,14 +14,15 @@ * limitations under the License. */ -/* $Id: Block.java,v 1.14 2004/04/02 13:50:52 cbowditch Exp $ */ +/* $Id$ */ package org.apache.fop.fo.flow; +import java.awt.Color; + import org.xml.sax.Locator; import org.apache.fop.apps.FOPException; -import org.apache.fop.datatypes.ColorType; import org.apache.fop.datatypes.Length; import org.apache.fop.datatypes.Numeric; import org.apache.fop.fo.CharIterator; @@ -73,7 +74,7 @@ public class Block extends FObjMixed { private CommonRelativePosition commonRelativePosition; private int breakAfter; private int breakBefore; - private ColorType color; + private Color color; private Length textDepth; private Length textAltitude; private int hyphenationKeep; @@ -100,9 +101,6 @@ public class Block extends FObjMixed { private int wrapOption; // End of property values - // this may be helpful on other FOs too - private boolean anythingLaidOut = false; - /** * @param parent FONode that is the parent of this object * @@ -125,7 +123,7 @@ public class Block extends FObjMixed { breakAfter = pList.get(PR_BREAK_AFTER).getEnum(); breakBefore = pList.get(PR_BREAK_BEFORE).getEnum(); - color = pList.get(PR_COLOR).getColorType(); + color = pList.get(PR_COLOR).getColor(); textDepth = pList.get(PR_TEXT_DEPTH).getLength(); textAltitude = pList.get(PR_TEXT_ALTITUDE).getLength(); hyphenationKeep = pList.get(PR_HYPHENATION_KEEP).getEnum(); @@ -244,7 +242,7 @@ public class Block extends FObjMixed { /** * @return the "color" property. */ - public ColorType getColor() { + public Color getColor() { return color; } |