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.

VerticalAlignment.java 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. * This enumeration value indicates the type of vertical alignment for a cell, i.e.,
  18. * whether it is aligned top, bottom, vertically centered, justified or distributed.
  19. */
  20. public enum VerticalAlignment {
  21. /**
  22. * The vertical alignment is aligned-to-top.
  23. */
  24. TOP,
  25. /**
  26. * The vertical alignment is centered across the height of the cell.
  27. */
  28. CENTER,
  29. /**
  30. * The vertical alignment is aligned-to-bottom.
  31. */
  32. BOTTOM,
  33. /**
  34. * <p>
  35. * When text direction is horizontal: the vertical alignment of lines of text is distributed vertically,
  36. * where each line of text inside the cell is evenly distributed across the height of the cell,
  37. * with flush top and bottom margins.
  38. * </p>
  39. * <p>
  40. * When text direction is vertical: similar behavior as horizontal justification.
  41. * The alignment is justified (flush top and bottom in this case). For each line of text, each
  42. * line of the wrapped text in a cell is aligned to the top and bottom (except the last line).
  43. * If no single line of text wraps in the cell, then the text is not justified.
  44. * </p>
  45. */
  46. JUSTIFY,
  47. /**
  48. * <p>
  49. * When text direction is horizontal: the vertical alignment of lines of text is distributed vertically,
  50. * where each line of text inside the cell is evenly distributed across the height of the cell,
  51. * with flush top
  52. * </p>
  53. * <p>
  54. * When text direction is vertical: behaves exactly as distributed horizontal alignment.
  55. * The first words in a line of text (appearing at the top of the cell) are flush
  56. * with the top edge of the cell, and the last words of a line of text are flush with the bottom edge of the cell,
  57. * and the line of text is distributed evenly from top to bottom.
  58. * </p>
  59. */
  60. DISTRIBUTED
  61. }