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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. public interface PatternFormatting {
  21. /** No background */
  22. public static final short NO_FILL = 0 ;
  23. /** Solidly filled */
  24. public static final short SOLID_FOREGROUND = 1 ;
  25. /** Small fine dots */
  26. public static final short FINE_DOTS = 2 ;
  27. /** Wide dots */
  28. public static final short ALT_BARS = 3 ;
  29. /** Sparse dots */
  30. public static final short SPARSE_DOTS = 4 ;
  31. /** Thick horizontal bands */
  32. public static final short THICK_HORZ_BANDS = 5 ;
  33. /** Thick vertical bands */
  34. public static final short THICK_VERT_BANDS = 6 ;
  35. /** Thick backward facing diagonals */
  36. public static final short THICK_BACKWARD_DIAG = 7 ;
  37. /** Thick forward facing diagonals */
  38. public static final short THICK_FORWARD_DIAG = 8 ;
  39. /** Large spots */
  40. public static final short BIG_SPOTS = 9 ;
  41. /** Brick-like layout */
  42. public static final short BRICKS = 10 ;
  43. /** Thin horizontal bands */
  44. public static final short THIN_HORZ_BANDS = 11 ;
  45. /** Thin vertical bands */
  46. public static final short THIN_VERT_BANDS = 12 ;
  47. /** Thin backward diagonal */
  48. public static final short THIN_BACKWARD_DIAG = 13 ;
  49. /** Thin forward diagonal */
  50. public static final short THIN_FORWARD_DIAG = 14 ;
  51. /** Squares */
  52. public static final short SQUARES = 15 ;
  53. /** Diamonds */
  54. public static final short DIAMONDS = 16 ;
  55. /** Less Dots */
  56. public static final short LESS_DOTS = 17 ;
  57. /** Least Dots */
  58. public static final short LEAST_DOTS = 18 ;
  59. short getFillBackgroundColor();
  60. short getFillForegroundColor();
  61. Color getFillBackgroundColorColor();
  62. Color getFillForegroundColorColor();
  63. short getFillPattern();
  64. void setFillBackgroundColor(short bg);
  65. void setFillForegroundColor(short fg);
  66. void setFillBackgroundColor(Color bg);
  67. void setFillForegroundColor(Color fg);
  68. void setFillPattern(short fp);
  69. }