Save This Page
Home » cocoon-2.1.11-src » org.apache.cocoon.poi » hssf » usermodel » [javadoc | source]
org.apache.cocoon.poi.hssf.usermodel
public class: HSSFCellStyle [javadoc | source]
java.lang.Object
   org.apache.cocoon.poi.hssf.usermodel.HSSFCellStyle

All Implemented Interfaces:
    HSSFColorConstants

High level representation of the style of a cell in a sheet of a workbook.
Field Summary
public static final  short ALIGN_GENERAL    general (normal) horizontal alignment 
public static final  short ALIGN_LEFT    left-justified horizontal alignment 
public static final  short ALIGN_CENTER    center horizontal alignment 
public static final  short ALIGN_RIGHT    right-justified horizontal alignment 
public static final  short ALIGN_FILL    fill? horizontal alignment 
public static final  short ALIGN_JUSTIFY    justified horizontal alignment 
public static final  short ALIGN_CENTER_SELECTION    center-selection? horizontal alignment 
public static final  short VERTICAL_TOP    top-aligned vertical alignment 
public static final  short VERTICAL_CENTER    center-aligned vertical alignment 
public static final  short VERTICAL_BOTTOM    bottom-aligned vertical alignment 
public static final  short VERTICAL_JUSTIFY    vertically justified vertical alignment 
public static final  short BORDER_NONE    No border 
public static final  short BORDER_THIN    Thin border 
public static final  short BORDER_MEDIUM    Medium border 
public static final  short BORDER_DASHED    dash border 
public static final  short BORDER_DOTTED    dot border 
public static final  short BORDER_THICK    Thick border 
public static final  short BORDER_DOUBLE    double-line border 
public static final  short BORDER_HAIR    hair-line border 
public static final  short BORDER_MEDIUM_DASHED    Medium dashed border 
public static final  short BORDER_DASH_DOT    dash-dot border 
public static final  short BORDER_MEDIUM_DASH_DOT    medium dash-dot border 
public static final  short BORDER_DASH_DOT_DOT    dash-dot-dot border 
public static final  short BORDER_MEDIUM_DASH_DOT_DOT    medium dash-dot-dot border 
public static final  short BORDER_SLANTED_DASH_DOT    slanted dash-dot border 
Constructor:
 protected HSSFCellStyle(short index,
    ExtendedFormatRecord rec) 
    Creates new HSSFCellStyle why would you want to do this??
Method from org.apache.cocoon.poi.hssf.usermodel.HSSFCellStyle Summary:
getAlignment,   getBorderBottom,   getBorderLeft,   getBorderRight,   getBorderTop,   getBottomBorderColor,   getDataFormat,   getFillBackgroundColor,   getFillForegroundColor,   getFillPattern,   getHidden,   getIndention,   getIndex,   getLeftBorderColor,   getLocked,   getRightBorderColor,   getRotation,   getTopBorderColor,   getVerticalAlignment,   getWrapText,   setAlignment,   setBorderBottom,   setBorderLeft,   setBorderRight,   setBorderTop,   setBottomBorderColor,   setDataFormat,   setFillBackgroundColor,   setFillForegroundColor,   setFillPattern,   setFont,   setHidden,   setIndention,   setLeftBorderColor,   setLocked,   setRightBorderColor,   setRotation,   setTopBorderColor,   setVerticalAlignment,   setWrapText
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.poi.hssf.usermodel.HSSFCellStyle Detail:
 public short getAlignment() 
    get the type of horizontal alignment for the cell
 public short getBorderBottom() 
    get the type of border to use for the bottom border of the cell
 public short getBorderLeft() 
    get the type of border to use for the left border of the cell
 public short getBorderRight() 
    get the type of border to use for the right border of the cell
 public short getBorderTop() 
    get the type of border to use for the top border of the cell
 public short getBottomBorderColor() 
    get the color to use for the left border
 public short getDataFormat() 
    get the index of the built in format
 public short getFillBackgroundColor() 
    get the background fill color
 public short getFillForegroundColor() 
    get the foreground fill color
 public short getFillPattern() 
    get the fill pattern (??) - set to 1 to fill with foreground color
 public boolean getHidden() 
    get whether the cell's using this style are to be hidden
 public short getIndention() 
    get the number of spaces to indent the text in the cell
 public short getIndex() 
    get the index within the HSSFWorkbook (sequence within the collection of ExtnededFormat objects)
 public short getLeftBorderColor() 
    get the color to use for the left border
 public boolean getLocked() 
    get whether the cell's using this style are to be locked
 public short getRightBorderColor() 
    get the color to use for the left border
 public short getRotation() 
    get the degree of rotation for the text in the cell
 public short getTopBorderColor() 
    get the color to use for the top border
 public short getVerticalAlignment() 
    get the type of vertical alignment for the cell
 public boolean getWrapText() 
    get whether the text should be wrapped
 public  void setAlignment(short align) 
    set the type of horizontal alignment for the cell
 public  void setBorderBottom(short border) 
    set the type of border to use for the bottom border of the cell
 public  void setBorderLeft(short border) 
    set the type of border to use for the left border of the cell
 public  void setBorderRight(short border) 
    set the type of border to use for the right border of the cell
 public  void setBorderTop(short border) 
    set the type of border to use for the top border of the cell
 public  void setBottomBorderColor(short color) 
    set the color to use for the bottom border
 public  void setDataFormat(short fmt) 
    set the data format (only builtin formats are supported)
 public  void setFillBackgroundColor(short bg) 
    set the background fill color
 public  void setFillForegroundColor(short bg) 
    set the foreground fill color
 public  void setFillPattern(short fp) 
    setting to one fills the cell with the foreground color... No idea about other values
 public  void setFont(HSSFFont font) 
    set the font for this style
 public  void setHidden(boolean hidden) 
    set the cell's using this style to be hidden
 public  void setIndention(short indent) 
    set the number of spaces to indent the text in the cell
 public  void setLeftBorderColor(short color) 
    set the color to use for the left border
 public  void setLocked(boolean locked) 
    set the cell's using this style to be locked
 public  void setRightBorderColor(short color) 
    set the color to use for the right border
 public  void setRotation(short rotation) 
    set the degree of rotation for the text in the cell
 public  void setTopBorderColor(short color) 
    set the color to use for the top border
 public  void setVerticalAlignment(short align) 
    set the type of vertical alignment for the cell
 public  void setWrapText(boolean wrapped) 
    set whether the text should be wrapped