1/*
2 *  Licensed to the Apache Software Foundation (ASF) under one or more
3 *  contributor license agreements.  See the NOTICE file distributed with
4 *  this work for additional information regarding copyright ownership.
5 *  The ASF licenses this file to You under the Apache License, Version 2.0
6 *  (the "License"); you may not use this file except in compliance with
7 *  the License.  You may obtain a copy of the License at
8 *
9 *     http://www.apache.org/licenses/LICENSE-2.0
10 *
11 *  Unless required by applicable law or agreed to in writing, software
12 *  distributed under the License is distributed on an "AS IS" BASIS,
13 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 *  See the License for the specific language governing permissions and
15 *  limitations under the License.
16 */
17/**
18 * @author Ilya S. Okomin
19 * @version $Revision$
20 */
21package org.apache.harmony.awt.gl;
22
23import java.awt.Graphics2D;
24import java.awt.font.GlyphVector;
25
26public abstract class TextRenderer {
27
28    /**
29     * Draws string on specified Graphics at desired position.
30     *
31     * @param g specified Graphics2D object
32     * @param str String object to draw
33     * @param x start X position to draw
34     * @param y start Y position to draw
35     */
36    public abstract void drawString(Graphics2D g, String str, float x, float y);
37
38    /**
39     * Draws string on specified Graphics at desired position.
40     *
41     * @param g specified Graphics2D object
42     * @param str String object to draw
43     * @param x start X position to draw
44     * @param y start Y position to draw
45     */
46    public void drawString(Graphics2D g, String str, int x, int y){
47        drawString(g, str, (float)x, (float)y);
48    }
49
50    /**
51     * Draws GlyphVector on specified Graphics at desired position.
52     *
53     * @param g specified Graphics2D object
54     * @param glyphVector GlyphVector object to draw
55     * @param x start X position to draw
56     * @param y start Y position to draw
57     */
58    public abstract void drawGlyphVector(Graphics2D g, GlyphVector glyphVector, float x, float y);
59}
60