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.

PatternFormatting.java 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * ====================================================================
  3. * Licensed to the Apache Software Foundation (ASF) under one or more
  4. * contributor license agreements. See the NOTICE file distributed with
  5. * this work for additional information regarding copyright ownership.
  6. * The ASF licenses this file to You under the Apache License, Version 2.0
  7. * (the "License"); you may not use this file except in compliance with
  8. * the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. * ====================================================================
  18. */
  19. package org.apache.poi.ss.usermodel;
  20. /**
  21. * @author Yegor Kozlov
  22. */
  23. public interface PatternFormatting {
  24. /** No background */
  25. public final static short NO_FILL = 0 ;
  26. /** Solidly filled */
  27. public final static short SOLID_FOREGROUND = 1 ;
  28. /** Small fine dots */
  29. public final static short FINE_DOTS = 2 ;
  30. /** Wide dots */
  31. public final static short ALT_BARS = 3 ;
  32. /** Sparse dots */
  33. public final static short SPARSE_DOTS = 4 ;
  34. /** Thick horizontal bands */
  35. public final static short THICK_HORZ_BANDS = 5 ;
  36. /** Thick vertical bands */
  37. public final static short THICK_VERT_BANDS = 6 ;
  38. /** Thick backward facing diagonals */
  39. public final static short THICK_BACKWARD_DIAG = 7 ;
  40. /** Thick forward facing diagonals */
  41. public final static short THICK_FORWARD_DIAG = 8 ;
  42. /** Large spots */
  43. public final static short BIG_SPOTS = 9 ;
  44. /** Brick-like layout */
  45. public final static short BRICKS = 10 ;
  46. /** Thin horizontal bands */
  47. public final static short THIN_HORZ_BANDS = 11 ;
  48. /** Thin vertical bands */
  49. public final static short THIN_VERT_BANDS = 12 ;
  50. /** Thin backward diagonal */
  51. public final static short THIN_BACKWARD_DIAG = 13 ;
  52. /** Thin forward diagonal */
  53. public final static short THIN_FORWARD_DIAG = 14 ;
  54. /** Squares */
  55. public final static short SQUARES = 15 ;
  56. /** Diamonds */
  57. public final static short DIAMONDS = 16 ;
  58. /** Less Dots */
  59. public final static short LESS_DOTS = 17 ;
  60. /** Least Dots */
  61. public final static short LEAST_DOTS = 18 ;
  62. short getFillBackgroundColor();
  63. short getFillForegroundColor();
  64. Color getFillBackgroundColorColor();
  65. Color getFillForegroundColorColor();
  66. short getFillPattern();
  67. void setFillBackgroundColor(short bg);
  68. void setFillForegroundColor(short fg);
  69. void setFillBackgroundColor(Color bg);
  70. void setFillForegroundColor(Color fg);
  71. void setFillPattern(short fp);
  72. }