Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

DifferentialStyleProvider.java 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. ==================================================================== */
  15. package org.apache.poi.ss.usermodel;
  16. /**
  17. * Interface for classes providing differential style definitions, such as conditional format rules
  18. * and table/pivot table styles.
  19. *
  20. * @since 3.17 beta 1
  21. */
  22. public interface DifferentialStyleProvider {
  23. /**
  24. * @return - border formatting object if defined, {@code null} otherwise
  25. */
  26. BorderFormatting getBorderFormatting();
  27. /**
  28. * @return - font formatting object if defined, {@code null} otherwise
  29. */
  30. FontFormatting getFontFormatting();
  31. /**
  32. *
  33. * @return number format defined for this rule, or null if the cell default should be used
  34. */
  35. ExcelNumberFormat getNumberFormat();
  36. /**
  37. * @return - pattern formatting object if defined, {@code null} otherwise
  38. */
  39. PatternFormatting getPatternFormatting();
  40. /**
  41. * This is the number of rows or columns in a band or stripe.
  42. * For styles that represent stripes, it must be > 1, for all others it is 0.
  43. * Not the greatest overloading by the OOXML spec.
  44. * @return number of rows/columns in a stripe for stripe styles, 0 for all others
  45. */
  46. int getStripeSize();
  47. }