PageRenderTime 38ms CodeModel.GetById 30ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/src/org/mt4j/components/visibleComponents/font/fontFactories/IFontFactory.java

http://mt4j.googlecode.com/
Java | 112 lines | 32 code | 14 blank | 66 comment | 0 complexity | e934ea751f9f88b973ec9009131a8795 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.fontFactories;
 19
 20import org.mt4j.components.visibleComponents.font.IFont;
 21import org.mt4j.util.MTColor;
 22
 23import processing.core.PApplet;
 24
 25/**
 26 * A factory for creating IFont objects.
 27 * @author Christopher Ruff
 28 */
 29public interface IFontFactory {
 30	
 31	/**
 32	 * Creates a new IFont object.
 33	 * 
 34	 * @param pa the pa
 35	 * @param fontName the svg font file name
 36	 * @param fontSize the font size
 37	 * @param fillColor the fill color
 38	 * @param strokeColor the stroke color
 39	 * 
 40	 * @return the iFont
 41	 * 
 42	 * @deprecated font system only allows a single font color now
 43	 */
 44	public IFont createFont(
 45			PApplet pa, 
 46			String fontName, 
 47			int fontSize, 
 48			MTColor fillColor, 
 49			MTColor strokeColor);
 50	
 51	
 52	
 53	/**
 54	 * Creates a new IFont object.
 55	 *
 56	 * @param pa the pa
 57	 * @param fontName the svg font file name
 58	 * @param fontSize the font size
 59	 * @param fillColor the fill color
 60	 * @param strokeColor the stroke color
 61	 * @param antiAliased the anti aliased
 62	 * @return the iFont
 63	 * 
 64	 * @deprecated font system only allows a single font color now
 65	 */
 66	public IFont createFont(
 67			PApplet pa, 
 68			String fontName, 
 69			int fontSize, 
 70			MTColor fillColor, 
 71			MTColor strokeColor,
 72			boolean antiAliased
 73			);
 74	
 75	
 76	
 77	/**
 78	 * Creates a new IFont object.
 79	 *
 80	 * @param pa the pa
 81	 * @param fontName the font name
 82	 * @param fontSize the font size
 83	 * @param color the color
 84	 * @return the i font
 85	 */
 86	public IFont createFont(
 87			PApplet pa, 
 88			String fontName, 
 89			int fontSize, 
 90			MTColor color);
 91	
 92	/**
 93	 * Creates a new IFont object.
 94	 *
 95	 * @param pa the pa
 96	 * @param fontName the font name
 97	 * @param fontSize the font size
 98	 * @param color the color
 99	 * @param antiAliased the anti aliased
100	 * @return the i font
101	 */
102	public IFont createFont(
103			PApplet pa, 
104			String fontName, 
105			int fontSize, 
106			MTColor color,
107			boolean antiAliased);
108
109
110
111	public IFont getCopy(IFont font);
112}