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.

FObject.java 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * FObject.java
  3. * Created: Sun Jan 27 01:35:24 2002
  4. *
  5. *
  6. * Copyright 1999-2003 The Apache Software Foundation.
  7. *
  8. * Licensed under the Apache License, Version 2.0 (the "License");
  9. * you may not use this file except in compliance with the License.
  10. * You may obtain a copy of the License at
  11. *
  12. * http://www.apache.org/licenses/LICENSE-2.0
  13. *
  14. * Unless required by applicable law or agreed to in writing, software
  15. * distributed under the License is distributed on an "AS IS" BASIS,
  16. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. * See the License for the specific language governing permissions and
  18. * limitations under the License.
  19. *
  20. *
  21. * @author <a href="mailto:pbwest@powerup.com.au">Peter B. West</a>
  22. * @version $Revision$ $Name$
  23. */
  24. package org.apache.fop.fo;
  25. /**
  26. * Base class for all Flow Objects
  27. */
  28. public class FObject {
  29. private static final String tag = "$Name$";
  30. private static final String revision = "$Revision$";
  31. private int foIndex;
  32. public FObject(int foIndex) {
  33. this.foIndex = foIndex;
  34. }
  35. public FObject(String foName) {
  36. foIndex = FObjects.getFoIndex(foName);
  37. }
  38. }// FObject