1 16 17 package org.apache.poi.hssf.usermodel; 18 19 24 public class HSSFTextbox 25 extends HSSFSimpleShape 26 { 27 public final static short OBJECT_TYPE_TEXT = 6; 28 29 int marginLeft, marginRight, marginTop, marginBottom; 30 31 HSSFRichTextString string = new HSSFRichTextString(""); 32 33 38 public HSSFTextbox( HSSFShape parent, HSSFAnchor anchor ) 39 { 40 super( parent, anchor ); 41 setShapeType(OBJECT_TYPE_TEXT); 42 } 43 44 47 public HSSFRichTextString getString() 48 { 49 return string; 50 } 51 52 55 public void setString( HSSFRichTextString string ) 56 { 57 this.string = string; 58 } 59 60 63 public int getMarginLeft() 64 { 65 return marginLeft; 66 } 67 68 71 public void setMarginLeft( int marginLeft ) 72 { 73 this.marginLeft = marginLeft; 74 } 75 76 79 public int getMarginRight() 80 { 81 return marginRight; 82 } 83 84 87 public void setMarginRight( int marginRight ) 88 { 89 this.marginRight = marginRight; 90 } 91 92 95 public int getMarginTop() 96 { 97 return marginTop; 98 } 99 100 103 public void setMarginTop( int marginTop ) 104 { 105 this.marginTop = marginTop; 106 } 107 108 111 public int getMarginBottom() 112 { 113 return marginBottom; 114 } 115 116 119 public void setMarginBottom( int marginBottom ) 120 { 121 this.marginBottom = marginBottom; 122 } 123 } 124 | Popular Tags |