001    /*
002     * Copyright 2009 - 2009 JEuclid, http://jeuclid.sf.net
003     * 
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     *      http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    
017    /* $Id: TextContentModifier.java,v 923658a2b249 2009/09/11 09:57:31 max $ */
018    
019    package net.sourceforge.jeuclid.elements.support.text;
020    
021    import java.text.AttributedCharacterIterator;
022    
023    import net.sourceforge.jeuclid.LayoutContext;
024    
025    /**
026     * 
027     * @version $Revision: 923658a2b249 $
028     */
029    public interface TextContentModifier {
030    
031        /**
032         * modified the given Characters to match what is required for this element.
033         * 
034         * @param aci
035         *            {@link AttributedCharacterIterator} based on the text
036         *            contents.
037         * @param layoutContext
038         *            current layout context.
039         * @return a new {@link AttributedCharacterIterator} which is to be used
040         *         instead.
041         */
042        AttributedCharacterIterator modifyTextContent(
043                AttributedCharacterIterator aci, LayoutContext layoutContext);
044    
045    }