選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

AFPRendererConfigOption.java 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. package org.apache.fop.render.afp;
  18. import java.net.URI;
  19. import org.apache.fop.afp.AFPResourceLevelDefaults;
  20. import org.apache.fop.render.RendererConfigOption;
  21. /**
  22. * An enumeration of the configuration options available for the AFP renderer.
  23. */
  24. public enum AFPRendererConfigOption implements RendererConfigOption {
  25. DEFAULT_RESOURCE_LEVELS("default-resource-levels", AFPResourceLevelDefaults.class),
  26. IMAGES("images", null),
  27. IMAGES_JPEG("jpeg", null),
  28. IMAGES_DITHERING_QUALITY("dithering-quality", Float.class),
  29. IMAGES_FS45("fs45", Boolean.class),
  30. IMAGES_MAPPING_OPTION("mapping_option", Byte.class),
  31. IMAGES_MODE("mode", Boolean.class),
  32. IMAGES_NATIVE("native", Boolean.class),
  33. IMAGES_WRAP_PSEG("pseg", Boolean.class),
  34. JPEG_ALLOW_JPEG_EMBEDDING("allow-embedding", Boolean.class),
  35. JPEG_BITMAP_ENCODING_QUALITY("bitmap-encoding-quality", Float.class),
  36. RENDERER_RESOLUTION("renderer-resolution", Integer.class),
  37. RESOURCE_GROUP_URI("resource-group-file", URI.class),
  38. SHADING("shading", AFPShadingMode.class),
  39. LINE_WIDTH_CORRECTION("line-width-correction", Float.class),
  40. GOCA("goca", Boolean.class),
  41. GOCA_TEXT("text", Boolean.class);
  42. private final String name;
  43. private final Class<?> type;
  44. private AFPRendererConfigOption(String name, Class<?> type) {
  45. this.name = name;
  46. this.type = type;
  47. }
  48. /** {@inheritDoc}}*/
  49. public String getName() {
  50. return name;
  51. }
  52. public Class<?> getType() {
  53. return type;
  54. }
  55. }