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.fill
Class TextureAttribute

    java.lang.Object
      application.workbooks.workbook.style.fill.TextureAttribute

public class TextureAttribute
extends java.lang.Object

此类用于设置纹理信息。

Method Summary
`java.lang.String` | `getImageDescription()` 得到纹理的描述。
`java.lang.String` | `getOtherTexturePath()` 得到其他纹理的路径。
`int` | `getTextureIndex()` 得到纹理的索引。
`void` | `setImageDescription(java.lang.String description)` 设置纹理的描述。
`void` | `setOtherTexturePath(java.lang.String path)` 设置其它纹理的路径。
`void` | `setTextureIndex(int textureIndex)` 设置纹理的索引。

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

Method Detail

### getImageDescription

    public java.lang.String getImageDescription()

  得到纹理的描述。

  Returns:
    纹理的描述，为字串型

    例子:

         Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ;
         ShapeRange shape = shapes.getRange() ;
         javax.swing.JOptionPane.showMessageDialog(null,"当前填充纹理的信息是"+shape.getFillFormat().getTextureInfo().getImageDescription()) ;

### getOtherTexturePath

    public java.lang.String getOtherTexturePath()

  得到其他纹理的路径。

  Returns:
    其他纹理的路径

    例子:

         Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ;
         ShapeRange shape = shapes.getRange() ;
         javax.swing.JOptionPane.showMessageDialog(null,"当前填充纹理的图片是"+shape.getFillFormat().getTextureInfo().getOtherTexturePath()) ;

### getTextureIndex

    public int getTextureIndex()

  得到纹理的索引。

  Returns:
    纹理的索引

    例子:

         Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ;
         ShapeRange shape = shapes.getRange() ;
         javax.swing.JOptionPane.showMessageDialog(null,"当前填充纹理是第"+shape.getFillFormat().getTextureInfo().getTextureIndex()+"个索引") ;

### setImageDescription

    public void setImageDescription(java.lang.String description)

  设置纹理的描述。

  Parameters:
    `description` - 纹理的描述，为字串型

### setOtherTexturePath

    public void setOtherTexturePath(java.lang.String path)

  设置其它纹理的路径。

  Parameters:
    `path` - 其它纹理的路径

    例子:

         Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ;
         ShapeRange shape = shapes.getRange() ;
         shape.getFillFormat().getTextureInfo().setOtherTexturePath("C:/id.jpg") ;

### setTextureIndex

    public void setTextureIndex(int textureIndex)

  设置纹理的索引。

  Parameters:
    `textureIndex` - 纹理的索引

    例子:

         Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ;
         ShapeRange shape = shapes.getRange() ;
         shape.getFillFormat().getPatternInfo().setTextureIndex(10) ;

Overview | Package | Class | Tree | Index | Help

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

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