org.apache.poi.xslf.usermodel
Class TextAutofit

java.lang.Object
  extended by org.apache.poi.xslf.usermodel.TextAutofit

public class TextAutofit
extends java.lang.Object

Specifies alist of auto-fit types.

Autofit specofies that a shape should be auto-fit to fully contain the text described within it. Auto-fitting is when text within a shape is scaled in order to contain all the text inside

Author:
Yegor Kozlov

Field Summary
static TextAutofit NONE
          Specifies that text within the text body should not be auto-fit to the bounding box.
static TextAutofit NORMAL
          Specifies that text within the text body should be normally auto-fit to the bounding box.
static TextAutofit SHAPE
          Specifies that a shape should be auto-fit to fully contain the text described within it.
 
Constructor Summary
TextAutofit()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final TextAutofit NONE
Specifies that text within the text body should not be auto-fit to the bounding box. Auto-fitting is when text within a text box is scaled in order to remain inside the text box.


NORMAL

public static final TextAutofit NORMAL
Specifies that text within the text body should be normally auto-fit to the bounding box. Autofitting is when text within a text box is scaled in order to remain inside the text box.

Example: Consider the situation where a user is building a diagram and needs to have the text for each shape that they are using stay within the bounds of the shape. An easy way this might be done is by using NORMAL autofit


SHAPE

public static final TextAutofit SHAPE
Specifies that a shape should be auto-fit to fully contain the text described within it. Auto-fitting is when text within a shape is scaled in order to contain all the text inside.

Example: Consider the situation where a user is building a diagram and needs to have the text for each shape that they are using stay within the bounds of the shape. An easy way this might be done is by using SHAPE autofit

Constructor Detail

TextAutofit

public TextAutofit()