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

void jxl::biff::XFRecord::setXFBorder ( Border  b,
BorderLineStyle  ls,
Colour  c 
) [inline, protected, inherited]

Sets the border for this cell This method should only be called from its writable subclass CellXFRecord

Parameters:
b the border
ls the border line style

Definition at line 1056 of file XFRecord.java.

References jxl::format::Colour::BLACK, jxl::format::Border::BOTTOM, jxl::biff::XFRecord::bottomBorder, jxl::biff::XFRecord::bottomBorderColour, jxl::biff::XFRecord::initialized, jxl::format::Border::LEFT, jxl::biff::XFRecord::leftBorder, jxl::biff::XFRecord::leftBorderColour, jxl::format::Colour::PALETTE_BLACK, jxl::format::Border::RIGHT, jxl::biff::XFRecord::rightBorder, jxl::biff::XFRecord::rightBorderColour, jxl::format::Border::TOP, jxl::biff::XFRecord::topBorder, jxl::biff::XFRecord::topBorderColour, jxl::format::Colour::UNKNOWN, and jxl::biff::XFRecord::usedAttributes.

  {
    Assert.verify(!initialized);
    
    if (c == Colour.BLACK || c == Colour.UNKNOWN) 
    {
      c = Colour.PALETTE_BLACK;
    }

    if (b == Border.LEFT)
    {
      leftBorder = ls;
      leftBorderColour = c;
    }
    else if (b == Border.RIGHT)
    {
      rightBorder = ls;
      rightBorderColour = c;
    }
    else if (b == Border.TOP)
    {
      topBorder = ls;
      topBorderColour = c;
    }
    else if (b == Border.BOTTOM)
    {
      bottomBorder = ls;
      bottomBorderColour = c;
    }

    usedAttributes |= USE_BORDER;

    return;
  }


Generated by  Doxygen 1.6.0   Back to index