1234567891011121314151617181920212223242526272829303132 |
- /*
- * $Id$
- * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
- * For details on use and redistribution please refer to the
- * LICENSE file included with these sources.
- */
-
- package org.apache.fop.layout.inline;
-
- import org.apache.fop.render.Renderer;
- import org.apache.fop.layout.FontState;
-
- public class WordArea extends InlineArea {
-
- private String text;
-
- public WordArea(FontState fontState, float red, float green, float blue,
- String text, int width) {
- super(fontState, width, red, green, blue);
- this.text = text;
- this.contentRectangleWidth = width;
- }
-
- public void render(Renderer renderer) {
- renderer.renderWordArea(this);
- }
-
- public String getText() {
- return this.text;
- }
-
- }
|