123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /*
- * $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.area.inline;
-
- import org.apache.fop.area.Area;
- import org.apache.fop.area.Property;
- import org.apache.fop.render.Renderer;
-
- import java.util.List;
- import java.util.ArrayList;
-
- /**
- * Inline Area
- * This area is for all inline areas that can be placed
- * in a line area.
- * Extensions of this class should render themselves with the
- * requested renderer.
- */
- public class InlineArea extends Area {
- int width;
- int height;
- // position within the line area, either top or baseline
- int verticalPosition;
- // width, height, vertical alignment
-
- // store properties in array list, need better solution
- ArrayList props = null;
-
- // inline areas are expected to implement this method
- // to render themselves
- public void render(Renderer renderer) {
-
- }
-
- public void setWidth(int w) {
- width = w;
- }
-
- public int getWidth() {
- return width;
- }
-
- public void setOffset(int v) {
- verticalPosition = v;
- }
-
- public int getOffset() {
- return verticalPosition;
- }
-
- public void addProperty(Property prop) {
- if (props == null) {
- props = new ArrayList();
- }
- props.add(prop);
- }
-
- public List getPropertyList() {
- return props;
- }
- }
|