You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by pb...@apache.org on 2002/12/06 11:06:44 UTC

cvs commit: xml-fop/src/org/apache/fop/datatypes TextDecorations.java

pbwest      2002/12/06 02:06:44

  Modified:    src/org/apache/fop/datatypes Tag: FOP_0-20-0_Alt-Design
                        TextDecorations.java
  Log:
  Allow for color to be held with the decorations.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.8   +29 -6     xml-fop/src/org/apache/fop/datatypes/Attic/TextDecorations.java
  
  Index: TextDecorations.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/datatypes/Attic/TextDecorations.java,v
  retrieving revision 1.1.2.7
  retrieving revision 1.1.2.8
  diff -u -r1.1.2.7 -r1.1.2.8
  --- TextDecorations.java	19 Oct 2002 03:27:08 -0000	1.1.2.7
  +++ TextDecorations.java	6 Dec 2002 10:06:44 -0000	1.1.2.8
  @@ -32,11 +32,12 @@
       private static final String tag = "$Name$";
       private static final String revision = "$Revision$";
   
  -    /**
  -     * The decorations specified by this object
  -     */
  +    /** The decorations specified by this object. */
       private byte decorations;
   
  +    /** The color of these text decorations. */
  +    private ColorType color;
  +
       /**
        * @param property the <tt>int</tt> index of the property on which
        * this value is being defined.
  @@ -62,12 +63,34 @@
       }
   
       /**
  +     * Get the set of decorations.
        * @return <tt>byte</tt> decorations value
        */
       public byte getDecorations() {
           return decorations;
       }
   
  +    /**
  +     * Get the color associated with this set of decorations.
  +     * @return the color.
  +     */
  +    public ColorType getColor() {
  +        return color;
  +    }
  +
  +    /**
  +     * Set the color associated with this set of decorations.
  +     * @param the color.
  +     */
  +    public void setColor(ColorType color) {
  +        this.color = color;
  +    }
  +
  +    /**
  +     * Apply the decoration masks of a <tt>TextDecorator</tt> object to
  +     * these decorations.
  +     * @param the <tt>TextDecorator</tt>.
  +     */
       public byte maskDecorations(TextDecorator decorator) {
           decorations |= decorator.onMask;
           decorations &= ( ~ decorator.offMask );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org