Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

PDFColorSpace.java 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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.pdf;
  19. /**
  20. * PDF Color space.
  21. */
  22. public interface PDFColorSpace {
  23. /**
  24. * Get the number of color components for this colorspace
  25. * @return the number of components
  26. */
  27. int getNumComponents();
  28. /** @return the name of the color space */
  29. String getName();
  30. /**
  31. * @return true if the color space is a device-dependent color space (like DeviceRGB,
  32. * DeviceCMYK and DeviceGray)
  33. */
  34. boolean isDeviceColorSpace();
  35. /** @return true if the color space is an RGB color space */
  36. boolean isRGBColorSpace();
  37. /** @return true if the color space is an CMYK color space */
  38. boolean isCMYKColorSpace();
  39. /** @return true if the color space is an Gray color space */
  40. boolean isGrayColorSpace();
  41. }