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.

PDFPathPaint.java 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright 1999-2004 The Apache Software Foundation.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /* $Id$ */
  17. package org.apache.fop.pdf;
  18. /**
  19. * Base class for PDF painting operations.
  20. *
  21. */
  22. public abstract class PDFPathPaint extends PDFObject {
  23. /**
  24. * The color space for this paint
  25. */
  26. protected PDFColorSpace colorSpace;
  27. /**
  28. * Get the PDF string for setting the path paint.
  29. *
  30. * @param fillNotStroke if true fill otherwise stroke
  31. * @return the PDF instruction string
  32. */
  33. public String getColorSpaceOut(boolean fillNotStroke) {
  34. return ("");
  35. }
  36. /**
  37. * Set the color space for this paint.
  38. *
  39. * @param theColorSpace the color space value
  40. */
  41. public void setColorSpace(int theColorSpace) {
  42. this.colorSpace.setColorSpace(theColorSpace);
  43. }
  44. /**
  45. * Get the current color space value for this paint.
  46. *
  47. * @return the color space value
  48. */
  49. public int getColorSpace() {
  50. return this.colorSpace.getColorSpace();
  51. }
  52. }