jxl.format
Interface CellFormat
- CellFormat
- WritableCellFormat
public interface CellFormat
Interface for cell formats
getAlignment
public Alignment getAlignment()
Gets the horizontal cell alignment
getBackgroundColour
public Colour getBackgroundColour()
Gets the background colour used by this cell
getBorder
public BorderLineStyle getBorder(Border border)
Gets the line style for the given cell border
If a border type of ALL or NONE is specified, then a line style of
NONE is returned
border
- the cell border we are interested in
- the line style of the specified border
getBorderColour
public Colour getBorderColour(Border border)
Gets the colour for the given cell border
If a border type of ALL or NONE is specified, then a line style of
NONE is returned
If the specified cell does not have an associated line style, then
the colour the line would be is still returned
border
- the cell border we are interested in
- the line style of the specified border
getBorderLine
public BorderLineStyle getBorderLine(Border border)
Gets the line style for the given cell border
If a border type of ALL or NONE is specified, then a line style of
NONE is returned
border
- the cell border we are interested in
- the line style of the specified border
getFont
public Font getFont()
Gets the font information used by this format
getFormat
public Format getFormat()
Gets the format used by this format
getIndentation
public int getIndentation()
Gets the indentation of the cell text
getOrientation
public Orientation getOrientation()
Gets the orientation
getPattern
public Pattern getPattern()
Gets the pattern used by this cell format
getVerticalAlignment
public VerticalAlignment getVerticalAlignment()
Gets the vertical cell alignment
getWrap
public boolean getWrap()
Gets whether or not the contents of this cell are wrapped
- TRUE if this cell's contents are wrapped, FALSE otherwise
hasBorders
public boolean hasBorders()
Determines if this cell format has any borders at all. Used to
set the new borders when merging a group of cells
- TRUE if this cell has any borders, FALSE otherwise
isLocked
public boolean isLocked()
Accessor for whether a particular cell is locked
- TRUE if this cell is locked, FALSE otherwise
isShrinkToFit
public boolean isShrinkToFit()
Gets the shrink to fit flag
- TRUE if this format is shrink to fit, FALSE otherise