/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. ***********************************************************************/
  18. package org.mt4j.components.visibleComponents.font;
  19. import javax.media.opengl.GL;
  20. import processing.core.PGraphics;
  21. /**
  22. * The Interface IFontCharacter.
  23. * @author Christopher Ruff
  24. */
  25. public interface IFontCharacter {
  26. /**
  27. * Draw component.
  28. *
  29. * @param g the graphics
  30. */
  31. public void drawComponent(PGraphics g);
  32. /**
  33. * Draw component.
  34. *
  35. * @param gl the gl
  36. */
  37. public void drawComponent(GL gl);
  38. /**
  39. * Gets the unicode.
  40. *
  41. * @return the unicode
  42. */
  43. public String getUnicode();
  44. /**
  45. * The horizontal advancement distance specifies, how many units
  46. * to the right we have to move before drawing the NEXT character.
  47. *
  48. * @return the horizontal dist
  49. *
  50. * the distance advancement
  51. */
  52. public int getHorizontalDist();
  53. /**
  54. * Destroys the character and its used resources.
  55. */
  56. public void destroy();
  57. }