Overview | Package | Class | Tree | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## application.workbooks.workbook.style.border
Class SsBorderAttribute

    java.lang.Object
      application.workbooks.workbook.style.border.BaseBorderAttribute
          application.workbooks.workbook.style.border.SsBorderAttribute

All Implemented Interfaces:
  BorderAndShadingConstants

public class SsBorderAttribute
extends BaseBorderAttribute
implements BorderAndShadingConstants

该类定义了电子表格的边框属性设置。

Field Summary

Fields inherited from interface application.constants.BorderAndShadingConstants
`ALL_BORDERS, APPLY_CELL, APPLY_PAGE, APPLY_PARAGRAPH, APPLY_SECTION, APPLY_TABLE, APPLY_TEXT, BORDERTYPE_ALL, BORDERTYPE_BOX, BORDERTYPE_CUSTOM, BORDERTYPE_GRID, BORDERTYPE_NONE, BORDERTYPE_SHADOW, BORDERTYPE_THREED, BOTTOM, BOTTOM_BORDER, BOTTOM_DOUBLE_BORDER, DEFAULT, DIAGONAL_BACKWARD, DIAGONAL_FORWARD, LEFT, LEFT_BORDER, LINESTYLE_DASHDOT, LINESTYLE_DASHDOTDOT, LINESTYLE_DASHLARGEGAP, LINESTYLE_DASHSMALLGAP, LINESTYLE_DOT, LINESTYLE_DOUBLE, LINESTYLE_SINGLE, LINESTYLE_THICKTHINLARGEGAP, LINESTYLE_THICKTHINMEDGAP, LINESTYLE_THICKTHINSMALLGAP, LINESTYLE_THINTHICKLARGEGAP, LINESTYLE_THINTHICKMEDGAP, LINESTYLE_THINTHICKSMALLGAP, LINESTYLE_THINTHICKTHINLARGEGAP, LINESTYLE_THINTHICKTHINMEDGAP, LINESTYLE_THINTHICKTHINSMALLGAP, LINESTYLE_TRIPLE, LINEWIDTH_025PT, LINEWIDTH_050PT, LINEWIDTH_075PT, LINEWIDTH_100PT, LINEWIDTH_150PT, LINEWIDTH_225PT, LINEWIDTH_300PT, LINEWIDTH_450PT, LINEWIDTH_600PT, MIDDLE_HORIZON, MIDDLE_VERTICAL, NO_BORDER, OUTSIDE_BORDERS, RIGHT, RIGHT_BORDER, TEXTURE_10PERCENT, TEXTURE_20PERCENT, TEXTURE_25PERCENT, TEXTURE_30PERCENT, TEXTURE_40PERCENT, TEXTURE_50PERCENT, TEXTURE_5PERCENT, TEXTURE_60PERCENT, TEXTURE_70PERCENT, TEXTURE_75PERCENT, TEXTURE_80PERCENT, TEXTURE_90PERCENT, TEXTURE_DARKDOWNWARDDIAGONAL, TEXTURE_DARKHORIZONTAL, TEXTURE_DARKUPWARDDIAGONAL, TEXTURE_DARKVERTICAL, TEXTURE_DASHEDDOWNWARDDIAGONAL, TEXTURE_DASHEDHORIZONTAL, TEXTURE_DASHEDUPWARDDIAGONAL, TEXTURE_DASHEDVERTICAL, TEXTURE_DIAGONALBRICK, TEXTURE_DIVOT, TEXTURE_DOTTEDDIAMOND, TEXTURE_DOTTEDGRID, TEXTURE_HORIZONTALBRICK, TEXTURE_LARGECHECKERBOARD, TEXTURE_LARGECONFETTI, TEXTURE_LARGEGRID, TEXTURE_LIGHTDOWNWARDDIAGONAL, TEXTURE_LIGHTHORIZONTAL, TEXTURE_LIGHTUPWARDDIAGONAL, TEXTURE_LIGHTVERTICAL, TEXTURE_NARROWHORIZONTAL, TEXTURE_NARROWVERTICAL, TEXTURE_OUTLINEDDIAMOND, TEXTURE_PLAID, TEXTURE_SHINGLE, TEXTURE_SMALLCHECKERBOARD, TEXTURE_SMALLCONFETTI, TEXTURE_SMALLGRID, TEXTURE_SOLIDDIAMOND, TEXTURE_SPHERE, TEXTURE_TRELLIS, TEXTURE_WAVE, TEXTURE_WEAVE, TEXTURE_WIDEDOWNWARDDIAGONAL, TEXTURE_WIDEUPWARDDIAGONAL, TEXTURE_ZIGZAG, THICK_BOTTOM_BORDER, THICK_BOX_BORDER, TOP, TOP_BOTTOM_BORDER, TOP_DOUBLE_BOTTOM_BORDER, TOP_THICK_BOTTOM_BORDER`

Constructor Summary
`SsBorderAttribute()`

Method Summary
`java.awt.Color` | `getBorderLineColor(int borderPosition)` 得到指定位置边框颜色。
`int` | `getBorderLineType(int borderPosition)` 得到指定位置边框的线型。
`float` | `getBorderLineWidth(int borderPosition)` 得到指定位置边框的宽度。
`void` | `setBorderLineColor(int borderPosition, java.awt.Color color)` 为指定位置的边框设置边框颜色。
`void` | `setBorderLineType(int borderPosition, int lineType)` 为指定位置的边框设置边框线类型。
`void` | `setBorderLineWidth(int borderPosition, float width)` 为指定位置的的边框设置边框线宽。

Methods inherited from class application.workbooks.workbook.style.border.BaseBorderAttribute
`getBordersApplyType, getBorderType, isSideBorderValid, setBorderLineColor, setBordersApplyType, setBorderType, setSideBorderValid`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SsBorderAttribute

    public SsBorderAttribute()

Method Detail

### getBorderLineColor

    public java.awt.Color getBorderLineColor(int borderPosition)

  得到指定位置边框颜色。

  Overrides:
    `getBorderLineColor` in class `BaseBorderAttribute`
  Parameters:
    `borderPosition` - 边框位置，其常量和相应的值如下：
    TOP = 1(上边框）；
    LEFT = 2（左边框）；
    RIGHT = 3（右边框）；
    BOTTOM = 4（下边框）；
    DIAGNONAL_FORWARD = 5（左斜边框）；
    DIAGNONAL_BACKWARD = 6（右斜边框）；
    MIDDLE_HORIZON = 7（水平中间边框）；
    MIDDLE_VERTICAL = 8（垂直中间边框）
  Returns:
    边框线颜色

    例子：

         SsBorderAttribute borderAttribute = new SsBorderAttribute();
         borderAttribute.setBorderLineType(1,9);
         borderAttribute.setBorderLineColor(1,java.awt.Color.blue);
         ActiveRange.setBorderAttribute(borderAttribute);
         java.awt.Color color = borderAttribute.getBorderLineColor(1);

  See Also:
    `BorderAndShadingConstants`

### getBorderLineType

    public int getBorderLineType(int borderPosition)

  得到指定位置边框的线型。

  Overrides:
    `getBorderLineType` in class `BaseBorderAttribute`
  Parameters:
    `borderPosition` - 边框位置，其常量和相应的值如下：
    TOP = 1(上边框）；
    LEFT = 2（左边框）；
    RIGHT = 3（右边框）；
    BOTTOM = 4（下边框）；
    DIAGNONAL_FORWARD = 5（左斜边框）；
    DIAGNONAL_BACKWARD = 6（右斜边框）；
    MIDDLE_HORIZON = 7（水平中间边框）；
    MIDDLE_VERTICAL = 8（垂直中间边框）
  Returns:
    边框类型

    例子：

         SsBorderAttribute borderAttribute = new SsBorderAttribute();
         borderAttribute.setBorderLineType(1,6);
         ActiveRange.setBorderAttribute(borderAttribute);
         int type = borderAttribute.getBorderLineType(1);
         System.out.println(type);

  See Also:
    `BorderAndShadingConstants`

### getBorderLineWidth

    public float getBorderLineWidth(int borderPosition)

  得到指定位置边框的宽度。

  Overrides:
    `getBorderLineWidth` in class `BaseBorderAttribute`
  Parameters:
    `borderPosition` - 边框位置，其常量和相应的值如下：
    TOP = 1(上边框）；
    LEFT = 2（左边框）；
    RIGHT = 3（右边框）；
    BOTTOM = 4（下边框）；
    DIAGNONAL_FORWARD = 5（左斜边框）；
    DIAGNONAL_BACKWARD = 6（右斜边框）；
    MIDDLE_HORIZON = 7（水平中间边框）；
    MIDDLE_VERTICAL = 8（垂直中间边框）
  Returns:
    边框线宽度，为float型

    例子：

         SsBorderAttribute borderAttribute = new SsBorderAttribute();
         borderAttribute.setBorderLineType(1,9);
         borderAttribute.setBorderLineWidth(1,(float)5.0f);
         ActiveRange.setBorderAttribute(borderAttribute);
         float width = borderAttribute.getBorderLineWidth(1);
         System.out.println(width);

  See Also:
    `BorderAndShadingConstants`

### setBorderLineColor

    public void setBorderLineColor(int borderPosition,
                                   java.awt.Color color)

  为指定位置的边框设置边框颜色。

  Overrides:
    `setBorderLineColor` in class `BaseBorderAttribute`
  Parameters:
    `borderPosition` - 边框位置，其常量和相应的值如下：
    TOP = 1(上边框）；
    LEFT = 2（左边框）；
    RIGHT = 3（右边框）；
    BOTTOM = 4（下边框）；
    DIAGNONAL_FORWARD = 5（左斜边框）；
    DIAGNONAL_BACKWARD = 6（右斜边框）；
    MIDDLE_HORIZON = 7（水平中间边框）；
    MIDDLE_VERTICAL = 8（垂直中间边框）
    `color` - 边框线颜色

    例子：

         SsBorderAttribute borderAttribute = new SsBorderAttribute();
         borderAttribute.setBorderLineType(1,9);
         borderAttribute.setBorderLineColor(1,java.awt.Color.blue);
         ActiveRange.setBorderAttribute(borderAttribute);

  See Also:
    `BorderAndShadingConstants`

### setBorderLineType

    public void setBorderLineType(int borderPosition,
                                  int lineType)

  为指定位置的边框设置边框线类型。

  Overrides:
    `setBorderLineType` in class `BaseBorderAttribute`
  Parameters:
    `borderPosition` - 边框位置类型，其常量和相应的值如下：
    TOP = 1(上边框）；
    LEFT = 2（左边框）；
    RIGHT = 3（右边框）；
    BOTTOM = 4（下边框）；
    DIAGNONAL_FORWARD = 5（左斜边框）；
    DIAGNONAL_BACKWARD = 6（右斜边框）；
    MIDDLE_HORIZON = 7（水平中间边框）；
    MIDDLE_VERTICAL = 8（垂直中间边框）
    `lineType` - 边框线型

    例子：

         SsBorderAttribute borderAttribute = new SsBorderAttribute();
         borderAttribute.setBorderLineType(1,6);
         ActiveRange.setBorderAttribute(borderAttribute);

  See Also:
    `BorderAndShadingConstants`

### setBorderLineWidth

    public void setBorderLineWidth(int borderPosition,
                                   float width)

  为指定位置的的边框设置边框线宽。

  Overrides:
    `setBorderLineWidth` in class `BaseBorderAttribute`
  Parameters:
    `borderPosition` - 边框位置，其常量和相应的值如下：
    TOP = 1(上边框）；
    LEFT = 2（左边框）；
    RIGHT = 3（右边框）；
    BOTTOM = 4（下边框）；
    DIAGNONAL_FORWARD = 5（左斜边框）；
    DIAGNONAL_BACKWARD = 6（右斜边框）；
    MIDDLE_HORIZON = 7（水平中间边框）；
    MIDDLE_VERTICAL = 8（垂直中间边框）
    `width` - 边框线宽度，为float型 类型为 0.25f、0.5f、0.75f、1.0f、1.5f、2.25f、3.0f、4.5f、6.0f 注意：边框线宽度类型随边框类型的不同而变化。

    例子：

         SsBorderAttribute borderAttribute = new SsBorderAttribute();
         borderAttribute.setBorderLineType(1,9);
         borderAttribute.setBorderLineWidth(1,(float)5.0f);
         ActiveRange.setBorderAttribute(borderAttribute);

  See Also:
    `BaseBorderAttribute.getBorderLineWidth(int borderPosition)`

Overview | Package | Class | Tree | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

版权所有 2001-2004 无锡永中科技有限公司