Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

AFPImageInfo.java 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 java.awt.Point;
  20. import java.awt.geom.Rectangle2D;
  21. import java.util.Map;
  22. import org.apache.xmlgraphics.image.loader.Image;
  23. import org.apache.xmlgraphics.image.loader.ImageInfo;
  24. /**
  25. * The AFP image information
  26. */
  27. public class AFPImageInfo {
  28. /** the image uri */
  29. protected final String uri;
  30. /** the current pos */
  31. protected final Rectangle2D pos;
  32. /** the origin */
  33. protected final Point origin;
  34. /** the foreign attributes */
  35. protected final Map foreignAttributes;
  36. /** the image info */
  37. protected final ImageInfo info;
  38. /** the image */
  39. protected final Image img;
  40. /**
  41. * Main constructor
  42. *
  43. * @param uri the image uri
  44. * @param pos the image content area
  45. * @param origin the current position
  46. * @param info the image info
  47. * @param img the image
  48. * @param foreignAttributes the foreign attributes
  49. */
  50. public AFPImageInfo(String uri, Rectangle2D pos, Point origin,
  51. ImageInfo info, Image img, Map foreignAttributes) {
  52. this.uri = uri;
  53. this.pos = pos;
  54. this.origin = origin;
  55. this.info = info;
  56. this.img = img;
  57. this.foreignAttributes = foreignAttributes;
  58. }
  59. }