Logo Search packages:      
Sourcecode: jexcelapi version File versions  Download package

BorderLineStyle jxl::biff::XFRecord::getBorderLine ( Border  border  )  [inline, inherited]

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

Implements jxl::format::CellFormat.

Definition at line 1113 of file XFRecord.java.

References jxl::format::Border::ALL, jxl::format::Border::BOTTOM, jxl::biff::XFRecord::bottomBorder, jxl::biff::XFRecord::formatInfoInitialized, jxl::biff::XFRecord::initializeFormatInformation(), jxl::format::Border::LEFT, jxl::biff::XFRecord::leftBorder, jxl::format::BorderLineStyle::NONE, jxl::format::Border::NONE, jxl::format::Border::RIGHT, jxl::biff::XFRecord::rightBorder, jxl::format::Border::TOP, and jxl::biff::XFRecord::topBorder.

Referenced by jxl::write::biff::SheetWriter::checkMergedBorders(), and jxl::biff::XFRecord::getBorder().

  {
    // Don't bother with the short cut records
    if (border == Border.NONE ||
        border == Border.ALL)
    {
      return BorderLineStyle.NONE;
    }

    if (!formatInfoInitialized)
    {
      initializeFormatInformation();
    }

    if (border == Border.LEFT)
    {
      return leftBorder;
    }
    else if (border == Border.RIGHT)
    {
      return rightBorder;
    }
    else if (border == Border.TOP)
    {
      return topBorder;
    }
    else if (border == Border.BOTTOM)
    {
      return bottomBorder;
    }

    return BorderLineStyle.NONE;
  }


Generated by  Doxygen 1.6.0   Back to index