PageRenderTime 18ms CodeModel.GetById 12ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/src/org/mt4j/components/visibleComponents/font/IFontCharacter.java

http://mt4j.googlecode.com/
Java | 67 lines | 10 code | 10 blank | 47 comment | 0 complexity | 0d527d14fffbe525df4dec9d5f3ae3c9 MD5 | raw file
 1/***********************************************************************
 2 * mt4j Copyright (c) 2008 - 2009, C.Ruff, Fraunhofer-Gesellschaft All rights reserved.
 3 *  
 4 *   This program is free software: you can redistribute it and/or modify
 5 *   it under the terms of the GNU General Public License as published by
 6 *   the Free Software Foundation, either version 3 of the License, or
 7 *   (at your option) any later version.
 8 *
 9 *   This program is distributed in the hope that it will be useful,
10 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
11 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 *   GNU General Public License for more details.
13 *
14 *   You should have received a copy of the GNU General Public License
15 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 *
17 ***********************************************************************/
18package org.mt4j.components.visibleComponents.font;
19
20import javax.media.opengl.GL;
21
22import processing.core.PGraphics;
23
24/**
25 * The Interface IFontCharacter.
26 * @author Christopher Ruff
27 */
28public interface IFontCharacter {
29	
30	/**
31	 * Draw component.
32	 * 
33	 * @param g the graphics
34	 */
35	public void drawComponent(PGraphics g);
36
37	/**
38	 * Draw component.
39	 * 
40	 * @param gl the gl
41	 */
42	public void drawComponent(GL gl);
43	
44	/**
45	 * Gets the unicode.
46	 * 
47	 * @return the unicode
48	 */
49	public String getUnicode();
50	
51	
52	/**
53	 * The horizontal advancement distance specifies, how many units
54	 * to the right we have to move before drawing the NEXT character.
55	 * 
56	 * @return the horizontal dist
57	 * 
58	 * the distance advancement
59	 */
60	public int getHorizontalDist();
61	
62	
63	/**
64	 * Destroys the character and its used resources.
65	 */
66	public void destroy();
67}