001    /*
002     * Copyright 2002 - 2007 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: GraphicsObject.java,v 8afef6dd0d58 2007/09/14 08:29:58 maxberger $ */
018    
019    package net.sourceforge.jeuclid.layout;
020    
021    import java.awt.Graphics2D;
022    
023    /**
024     * @version $Revision: 8afef6dd0d58 $
025     */
026    public interface GraphicsObject {
027    
028        /**
029         * Actually draw the object.
030         * 
031         * @param x
032         *            X-offset of surrounding element.
033         * @param y
034         *            Y-Offset of baseline of surrounding element.
035         * @param g
036         *            Graphics Context.
037         */
038        void paint(float x, float y, Graphics2D g);
039    
040    }