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.

AFPCustomizable.java 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. /* $Id$ */
  18. package org.apache.fop.render.afp;
  19. import org.apache.fop.afp.AFPResourceLevelDefaults;
  20. /**
  21. * Interface used to customize the AFP renderer or document handler.
  22. */
  23. public interface AFPCustomizable {
  24. /**
  25. * Sets the number of bits used per pixel
  26. *
  27. * @param bitsPerPixel
  28. * number of bits per pixel
  29. */
  30. void setBitsPerPixel(int bitsPerPixel);
  31. /**
  32. * Sets whether images are color or not
  33. *
  34. * @param colorImages
  35. * color image output
  36. */
  37. void setColorImages(boolean colorImages);
  38. /**
  39. * Sets whether images are supported natively or not
  40. *
  41. * @param nativeImages
  42. * native image support
  43. */
  44. void setNativeImagesSupported(boolean nativeImages);
  45. /**
  46. * Sets the output/device resolution
  47. *
  48. * @param resolution
  49. * the output resolution (dpi)
  50. */
  51. void setResolution(int resolution);
  52. /**
  53. * Returns the output/device resolution.
  54. *
  55. * @return the resolution in dpi
  56. */
  57. int getResolution();
  58. /**
  59. * Sets the default resource group file path
  60. * @param filePath the default resource group file path
  61. */
  62. void setDefaultResourceGroupFilePath(String filePath);
  63. /**
  64. * Sets the resource level defaults. The object passed in provides information which resource
  65. * level shall be used by default for various kinds of resources.
  66. * @param defaults the resource level defaults
  67. */
  68. void setResourceLevelDefaults(AFPResourceLevelDefaults defaults);
  69. }