jxl.format
Interface CellFormat

All Known Subinterfaces:
CellFormat
All Known Implementing Classes:
XFRecord

public interface CellFormat

Interface for cell formats


Method Summary
 Alignment getAlignment()
          Gets the horizontal cell alignment
 Colour getBackgroundColour()
          Gets the background colour used by this cell
 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
 Font getFont()
          Gets the font information used by this format
 Format getFormat()
          Gets the format used by this format
 Orientation getOrientation()
          Gets the orientation
 Pattern getPattern()
          Gets the pattern used by this cell format
 VerticalAlignment getVerticalAlignment()
          Gets the vertical cell alignment
 boolean getWrap()
          Gets whether or not the contents of this cell are wrapped
 boolean hasBorders()
          Determines if this cell format has any borders at all.
 boolean isShrinkToFit()
          Gets the shrink to fit flag
 

Method Detail

getFormat

public Format getFormat()
Gets the format used by this format
Returns:
the format

getFont

public Font getFont()
Gets the font information used by this format
Returns:
the font

getWrap

public boolean getWrap()
Gets whether or not the contents of this cell are wrapped
Returns:
TRUE if this cell's contents are wrapped, FALSE otherwise

getAlignment

public Alignment getAlignment()
Gets the horizontal cell alignment
Returns:
the alignment

getVerticalAlignment

public VerticalAlignment getVerticalAlignment()
Gets the vertical cell alignment
Returns:
the alignment

getOrientation

public Orientation getOrientation()
Gets the orientation
Returns:
the orientation

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
Parameters:
border - the cell border we are interested in
Returns:
the line style of the specified border

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
Returns:
TRUE if this cell has any borders, FALSE otherwise

getBackgroundColour

public Colour getBackgroundColour()
Gets the background colour used by this cell
Returns:
the foreground colour

getPattern

public Pattern getPattern()
Gets the pattern used by this cell format
Returns:
the background pattern

isShrinkToFit

public boolean isShrinkToFit()
Gets the shrink to fit flag
Returns:
TRUE if this format is shrink to fit, FALSE otherise