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.

BorderFormatting.java 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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. * High level representation for Border Formatting component
  22. * of Conditional Formatting settings
  23. */
  24. public interface BorderFormatting {
  25. /** @since POI 4.0.0 */
  26. BorderStyle getBorderBottom();
  27. /** @since POI 4.0.0 */
  28. BorderStyle getBorderDiagonal();
  29. /** @since POI 4.0.0 */
  30. BorderStyle getBorderLeft();
  31. /** @since POI 4.0.0 */
  32. BorderStyle getBorderRight();
  33. /** @since POI 4.0.0 */
  34. BorderStyle getBorderTop();
  35. /**
  36. * Only valid for range borders, such as table styles
  37. * @since 4.0.0
  38. * @return border style
  39. */
  40. BorderStyle getBorderVertical();
  41. /**
  42. * Only valid for range borders, such as table styles
  43. * @since 4.0.0
  44. * @return border style
  45. */
  46. BorderStyle getBorderHorizontal();
  47. short getBottomBorderColor();
  48. Color getBottomBorderColorColor();
  49. short getDiagonalBorderColor();
  50. Color getDiagonalBorderColorColor();
  51. short getLeftBorderColor();
  52. Color getLeftBorderColorColor();
  53. short getRightBorderColor();
  54. Color getRightBorderColorColor();
  55. short getTopBorderColor();
  56. Color getTopBorderColorColor();
  57. /**
  58. * Range internal borders. Only relevant for range styles, such as table formatting
  59. * @since 3.17 beta 1
  60. * @return color index
  61. */
  62. short getVerticalBorderColor();
  63. /**
  64. * Range internal borders. Only relevant for range styles, such as table formatting
  65. * @since 3.17 beta 1
  66. * @return color
  67. */
  68. Color getVerticalBorderColorColor();
  69. /**
  70. * Range internal borders. Only relevant for range styles, such as table formatting
  71. * @since 3.17 beta 1
  72. * @return color index
  73. */
  74. short getHorizontalBorderColor();
  75. /**
  76. * Range internal borders. Only relevant for range styles, such as table formatting
  77. * @since 3.17 beta 1
  78. * @return color
  79. */
  80. Color getHorizontalBorderColorColor();
  81. /**
  82. * Set bottom border.
  83. *
  84. * @param border The style of border to set.
  85. */
  86. void setBorderBottom(BorderStyle border);
  87. /**
  88. * Set diagonal border.
  89. *
  90. * @param border The style of border to set.
  91. */
  92. void setBorderDiagonal(BorderStyle border);
  93. /**
  94. * Set left border.
  95. *
  96. * @param border The style of border to set.
  97. */
  98. void setBorderLeft(BorderStyle border);
  99. /**
  100. * Set right border.
  101. *
  102. * @param border The style of border to set.
  103. */
  104. void setBorderRight(BorderStyle border);
  105. /**
  106. * Set top border.
  107. *
  108. * @param border The style of border to set.
  109. */
  110. void setBorderTop(BorderStyle border);
  111. /**
  112. * Set range internal horizontal borders.
  113. *
  114. * @since 3.17 beta 1
  115. * @param border The style of border to set.
  116. */
  117. void setBorderHorizontal(BorderStyle border);
  118. /**
  119. * Set range internal vertical borders.
  120. *
  121. * @since 3.17 beta 1
  122. * @param border The style of border to set.
  123. */
  124. void setBorderVertical(BorderStyle border);
  125. void setBottomBorderColor(short color);
  126. void setBottomBorderColor(Color color);
  127. void setDiagonalBorderColor(short color);
  128. void setDiagonalBorderColor(Color color);
  129. void setLeftBorderColor(short color);
  130. void setLeftBorderColor(Color color);
  131. void setRightBorderColor(short color);
  132. void setRightBorderColor(Color color);
  133. void setTopBorderColor(short color);
  134. void setTopBorderColor(Color color);
  135. /**
  136. * Range internal border color, such as table styles
  137. * @since 3.17 beta 1
  138. * @param color index
  139. */
  140. void setHorizontalBorderColor(short color);
  141. /**
  142. * Range internal border color, such as table styles
  143. * @since 3.17 beta 1
  144. * @param color index
  145. */
  146. void setHorizontalBorderColor(Color color);
  147. /**
  148. * Range internal border color, such as table styles
  149. * @since 3.17 beta 1
  150. * @param color index
  151. */
  152. void setVerticalBorderColor(short color);
  153. /**
  154. * Range internal border color, such as table styles
  155. * @since 3.17 beta 1
  156. * @param color index
  157. */
  158. void setVerticalBorderColor(Color color);
  159. }