Class HSSFTextbox

  • Direct Known Subclasses:
    HSSFComment

    public class HSSFTextbox
    extends HSSFSimpleShape
    A textbox is a shape that may hold a rich text string.
    Author:
    Glen Stampoultzis (glens at apache.org)
    • Constructor Detail

      • HSSFTextbox

        public HSSFTextbox​(HSSFShape parent,
                           HSSFAnchor anchor)
        Construct a new textbox with the given parent and anchor.
        Parameters:
        parent -
        anchor - One of HSSFClientAnchor or HSSFChildAnchor
    • Method Detail

      • getString

        public HSSFRichTextString getString()
        Returns:
        the rich text string for this textbox.
      • setString

        public void setString​(HSSFRichTextString string)
        Parameters:
        string - Sets the rich text string used by this object.
      • getMarginLeft

        public int getMarginLeft()
        Returns:
        Returns the left margin within the textbox.
      • setMarginLeft

        public void setMarginLeft​(int marginLeft)
        Sets the left margin within the textbox.
      • getMarginRight

        public int getMarginRight()
        Returns:
        returns the right margin within the textbox.
      • setMarginRight

        public void setMarginRight​(int marginRight)
        Sets the right margin within the textbox.
      • getMarginTop

        public int getMarginTop()
        Returns:
        returns the top margin within the textbox.
      • setMarginTop

        public void setMarginTop​(int marginTop)
        Sets the top margin within the textbox.
      • getMarginBottom

        public int getMarginBottom()
        Gets the bottom margin within the textbox.
      • setMarginBottom

        public void setMarginBottom​(int marginBottom)
        Sets the bottom margin within the textbox.