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.font
Class PgFontAttribute

    java.lang.Object
      application.workbooks.workbook.style.font.FontAttribute
          application.workbooks.workbook.style.font.PgFontAttribute

public class PgFontAttribute
extends FontAttribute

该类定义了幻灯片的字体属性。

Constructor Summary
`PgFontAttribute()` 创建一个幻灯字体属性的实例。

Method Summary
`void` | `clearAllAttribute()` 清空字体属性。
`java.awt.Color` | `getFontForegroundColor()` 获得幻灯片字体颜色。
`int` | `getFontSchemIndex()` 得到字体方案索引值。
`java.awt.Color` | `getUnderlineColor()` 得到下划线的颜色。
`int` | `getUnderlineSchemIndex()` 得到下划线方案索引值。
`boolean` | `isSetFontSchemIndex()` 判断是否设置了字体方案索引值。
`boolean` | `isSetUnderlineSchemIndex()` 判断是否设置了下划线方案索引值。
`void` | `setFontForegroundColor(int fr, int fg, int fb)` 设置幻灯片字体颜色。
`void` | `setFontSchemIndex(int index)` 设置字体方案索引值。
`void` | `setUnderlineColor(int ulr, int ulg, int ulb)` 设置下划线的颜色。
`void` | `setUnderlineSchemIndex(int index)` 设置下划线方案索引值。

Methods inherited from class application.workbooks.workbook.style.font.FontAttribute
`getAsiaFontFamily, getCharacterPosition, getCharacterScale, getCharacterSpacing, getEffects, getFontFamily, getFontSize, getFontSizeDoubleValue, getUnderlineType, isAllCaps, isBold, isDoubleStrikeThrough, isEmboss, isEngrave, isFontShadow, isHidden, isItalic, isSmallCaps, isStrikeThrough, isSubscript, isSuperscript, setAllCaps, setAsianFontFamily, setBold, setCharacterPosition, setCharacterScale, setCharacterSpacing, setDoubleStrikeThrough, setEffects, setEmboss, setEngrave, setFontFamily, setFontForegroundColor, setFontName, setFontShadow, setFontSize, setFontSize, setHidden, setItalic, setSmallCaps, setStrikeThrough, setSubscript, setSuperscript, setTridimension, setUnderlineColor, setUnderlineType`

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

Constructor Detail

### PgFontAttribute

    public PgFontAttribute()

  创建一个幻灯字体属性的实例。

  例子:

       application.workbooks.workbook.style.font.PgFontAttribute  fa=
       new application.workbooks.workbook.style.font.PgFontAttribute();

Method Detail

### clearAllAttribute

    public void clearAllAttribute()

  清空字体属性。

  例子:

       application.workbooks.workbook.style.font.PgFontAttribute  fa=
       new application.workbooks.workbook.style.font.PgFontAttribute();
       fa.clearAllAttribute ();

  Overrides:
    `clearAllAttribute` in class `FontAttribute`

### getFontForegroundColor

    public java.awt.Color getFontForegroundColor()

  获得幻灯片字体颜色。

  Overrides:
    `getFontForegroundColor` in class `FontAttribute`
  Returns:
    Color，即字体颜色

    例子:

         application.workbooks.workbook.style.font.PgFontAttribute  fa=
         new application.workbooks.workbook.style.font.PgFontAttribute();
         fa.setFontForegroundColor(1,2,3);
         System.out.println(fa.getFontForegroundColor());

  See Also:
    `setFontForegroundColor(int fr,int fg,int fb)`

### getFontSchemIndex

    public int getFontSchemIndex()

  得到字体方案索引值。

  Returns:
    字体方案索引值

    例子:

         application.workbooks.workbook.style.font.PgFontAttribute  fa=
         new application.workbooks.workbook.style.font.PgFontAttribute();
         fa.setFontSchemIndex(0);
         System.out.println(fa.getFontSchemIndex());

  See Also:
    `setFontSchemIndex(int index)`, `isSetFontSchemIndex()`

### getUnderlineColor

    public java.awt.Color getUnderlineColor()

  得到下划线的颜色。

  Overrides:
    `getUnderlineColor` in class `FontAttribute`
  Returns:
    Color，即下划线的颜色

    例子:

         application.workbooks.workbook.style.font.PgFontAttribute  fa=
         new application.workbooks.workbook.style.font.PgFontAttribute();
         fa.setUnderlineColor(2,4,6);
         System.out.println(fa.getUnderlineColor());

  See Also:
    `setUnderlineColor(int ulr,int ulg,int ulb)`

### getUnderlineSchemIndex

    public int getUnderlineSchemIndex()

  得到下划线方案索引值。

  Returns:
    下划线方案索引值

    例子:

         application.workbooks.workbook.style.font.PgFontAttribute  fa=
         new application.workbooks.workbook.style.font.PgFontAttribute();
         fa.setUnderlineSchemIndex(1);
         System.out.println(fa.getUnderlineSchemIndex());

  See Also:
    `setUnderlineSchemIndex(int index)`, `isSetUnderlineSchemIndex()`

### isSetFontSchemIndex

    public boolean isSetFontSchemIndex()

  判断是否设置了字体方案索引值。

  Returns:
    布尔型，如果设置了字体方案索引值，返回true；否则，返回false

    例子:

         application.workbooks.workbook.style.font.PgFontAttribute  fa=
         new application.workbooks.workbook.style.font.PgFontAttribute();
         fa.setFontSchemIndex(0);
         System.out.println(fa.isSetFontSchemIndex());

  See Also:
    `setFontSchemIndex(int index)`, `getFontSchemIndex()`

### isSetUnderlineSchemIndex

    public boolean isSetUnderlineSchemIndex()

  判断是否设置了下划线方案索引值。

  Returns:
    布尔型值，如果设置了下划线方案索引值，返回true；否则，返回false

    例子:

         application.workbooks.workbook.style.font.PgFontAttribute  fa=
         new application.workbooks.workbook.style.font.PgFontAttribute();
         fa.setUnderlineSchemIndex(1);
         System.out.println(fa.isSetUnderlineSchemIndex());

  See Also:
    `setUnderlineSchemIndex(int index)`, `getUnderlineSchemIndex()`

### setFontForegroundColor

    public void setFontForegroundColor(int fr,
                                       int fg,
                                       int fb)

  设置幻灯片字体颜色。

  Overrides:
    `setFontForegroundColor` in class `FontAttribute`
  Parameters:
    `fr` - 前景色RGB表示的红色数量
    `fg` - 前景色RGB表示的绿色数量
    `fb` - 前景色RGB表示的蓝色数量

    例子:

         application.workbooks.workbook.style.font.PgFontAttribute  fa=
         new application.workbooks.workbook.style.font.PgFontAttribute();
         fa.setFontForegroundColor(1,2,3);

  See Also:
    `getFontForegroundColor()`

### setFontSchemIndex

    public void setFontSchemIndex(int index)

  设置字体方案索引值。

  Parameters:
    `index` - 字体方案索引值

    例子:

         application.workbooks.workbook.style.font.PgFontAttribute  fa=
         new application.workbooks.workbook.style.font.PgFontAttribute();
         fa.setFontSchemIndex(0);

  See Also:
    `getFontSchemIndex()`, `isSetFontSchemIndex()`

### setUnderlineColor

    public void setUnderlineColor(int ulr,
                                  int ulg,
                                  int ulb)

  设置下划线的颜色。

  Overrides:
    `setUnderlineColor` in class `FontAttribute`
  Parameters:
    `ulr` - 下划线颜色RGB表示的红色数量
    `ulg` - 下划线颜色RGB表示的绿色数量
    `ulb` - 下划线颜色RGB表示的蓝色数量

    例子:

         application.workbooks.workbook.style.font.PgFontAttribute  fa=
         new application.workbooks.workbook.style.font.PgFontAttribute();
         fa.setUnderlineColor(2,4,6);

  See Also:
    `getUnderlineColor()`

### setUnderlineSchemIndex

    public void setUnderlineSchemIndex(int index)

  设置下划线方案索引值。

  Parameters:
    `index` - 下划线方案索引值

    例子:

         application.workbooks.workbook.style.font.PgFontAttribute  fa=
         new application.workbooks.workbook.style.font.PgFontAttribute();
         fa.setUnderlineSchemIndex(1);

  See Also:
    `getUnderlineSchemIndex()`, `isSetUnderlineSchemIndex()`

Overview | Package | Class | Tree | Index | Help

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

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