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.

TextAutofit.java 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.xssf.usermodel;
  20. /**
  21. * Specifies a list of auto-fit types.
  22. * <p>
  23. * Autofit specifies that a shape should be auto-fit to fully contain the text described within it.
  24. * Auto-fitting is when text within a shape is scaled in order to contain all the text inside
  25. * </p>
  26. */
  27. public enum TextAutofit {
  28. /**
  29. * Specifies that text within the text body should not be auto-fit to the bounding box.
  30. * Auto-fitting is when text within a text box is scaled in order to remain inside
  31. * the text box.
  32. */
  33. NONE,
  34. /**
  35. * Specifies that text within the text body should be normally auto-fit to the bounding box.
  36. * Autofitting is when text within a text box is scaled in order to remain inside the text box.
  37. *
  38. * <p>
  39. * <em>Example:</em> Consider the situation where a user is building a diagram and needs
  40. * to have the text for each shape that they are using stay within the bounds of the shape.
  41. * An easy way this might be done is by using NORMAL autofit
  42. * </p>
  43. */
  44. NORMAL,
  45. /**
  46. * Specifies that a shape should be auto-fit to fully contain the text described within it.
  47. * Auto-fitting is when text within a shape is scaled in order to contain all the text inside.
  48. *
  49. * <p>
  50. * <em>Example:</em> Consider the situation where a user is building a diagram and needs to have
  51. * the text for each shape that they are using stay within the bounds of the shape.
  52. * An easy way this might be done is by using SHAPE autofit
  53. * </p>
  54. */
  55. SHAPE
  56. }