You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WordArea.java 1009B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * $Id$
  3. * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
  4. * For details on use and redistribution please refer to the
  5. * LICENSE file included with these sources.
  6. */
  7. package org.apache.fop.layout.inline;
  8. import org.apache.fop.render.Renderer;
  9. import org.apache.fop.layout.FontState;
  10. public class WordArea extends InlineArea {
  11. private String text;
  12. // Textdecoration
  13. protected boolean underlined = false;
  14. protected boolean overlined = false;
  15. protected boolean lineThrough = false;
  16. public WordArea(FontState fontState, float red, float green, float blue,
  17. String text, int width) {
  18. super(fontState, width, red, green, blue);
  19. this.text = text;
  20. this.contentRectangleWidth = width;
  21. }
  22. public String getText() {
  23. return this.text;
  24. }
  25. public void setUnderlined(boolean ul) {
  26. this.underlined = ul;
  27. }
  28. public boolean getUnderlined() {
  29. return this.underlined;
  30. }
  31. }