Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

TextState.java 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* $Id$
  2. * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
  3. * For details on use and redistribution please refer to the
  4. * LICENSE file included with these sources.
  5. */
  6. package org.apache.fop.layout;
  7. import org.apache.fop.apps.FOPException;
  8. /**
  9. * This class holds information about text-decoration
  10. *
  11. */
  12. public class TextState {
  13. protected boolean underlined;
  14. protected boolean overlined;
  15. protected boolean linethrough;
  16. public TextState() throws FOPException {
  17. }
  18. /**
  19. * @return true if text should be underlined
  20. */
  21. public boolean getUnderlined() {
  22. return underlined;
  23. }
  24. /**
  25. * set text as underlined
  26. */
  27. public void setUnderlined(boolean ul) {
  28. this.underlined = ul;
  29. }
  30. /**
  31. * @return true if text should be overlined
  32. */
  33. public boolean getOverlined() {
  34. return overlined;
  35. }
  36. public void setOverlined(boolean ol) {
  37. this.overlined = ol;
  38. }
  39. public boolean getLineThrough() {
  40. return linethrough;
  41. }
  42. public void setLineThrough(boolean lt) {
  43. this.linethrough = lt;
  44. }
  45. }