Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate


com.aspose.cells
Class TextureFill

java.lang.Object
  extended by com.aspose.cells.Fill
      extended by com.aspose.cells.TextureFill
All Implemented Interfaces:
java.lang.Cloneable

public class TextureFill
extends Fill

Fill format settings for TEXTURE type


Constructor Summary
TextureFill()
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object another)
           
 byte[] getImageData()
          Gets the picture data for Texture or Picture fill.
 int getImageFormat()
          Gets the image format of the picture in this fill.
 float getStretchOffsetBottom()
          Gets the bottom offset for stretching picture.
 float getStretchOffsetLeft()
          Gets the left offset for stretching picture.
 float getStretchOffsetRight()
          Gets the right offset for stretching picture.
 float getStretchOffsetTop()
          Gets the top offset for stretching picture.
 byte getTileAlignment()
          Gets the alignment for tiling.
 byte getTileMirrorType()
          Gets the mirror type for tiling.
 float getTileOffsetX()
          Gets the X offset for tiling picture.
 float getTileOffsetY()
          Gets the Y offset for tiling picture.
 float getTileScaleX()
          Gets the X scale for tiling picture.
 float getTileScaleY()
          Gets the Y scale for tiling picture.
 float getTransparency()
          Gets the transparency of this gradient stop.
 short getType()
          Gets the texture type.
 boolean isTiling()
          Check whether tile picture as texture.
 void setImageData(byte[] data)
          Sets the picture data for Picture fill.
 void setStretchOffsetBottom(float offset)
          Sets the bottom offset for stretching picture.
 void setStretchOffsetLeft(float offset)
          Sets the left offset for stretching picture.
 void setStretchOffsetRight(float offset)
          Sets the right offset for stretching picture.
 void setStretchOffsetTop(float offset)
          Sets the top offset for stretching picture.
 void setTileAlignment(byte alignmentType)
          Sets alignment for tiling.
 void setTileMirrorType(byte mirrorType)
          Sets mirror type for tiling.
 void setTileOffsetX(float offset)
          Sets the X offset for tiling picture.
 void setTileOffsetY(float offset)
          Sets the Y offset for tiling picture.
 void setTileScaleX(float scale)
          Sets the X scale for tiling picture.
 void setTileScaleY(float scale)
          Sets the Y scale for tiling picture.
 void setTiling(boolean tile)
          Sets whether tile picture as texture.
 void setTransparency(float val)
          Sets the transparency of this gradient stop.
 void setType(short textureType)
          Sets the texture type.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextureFill

public TextureFill()
Method Detail

clone

public java.lang.Object clone()
Specified by:
clone in class Fill

equals

public boolean equals(java.lang.Object another)
Overrides:
equals in class java.lang.Object

getType

public short getType()
Gets the texture type.

Returns:
the texture type.
See Also:
TextureType

setType

public void setType(short textureType)
Sets the texture type.

Parameters:
textureType - the texture type.
See Also:
TextureType

isTiling

public boolean isTiling()
Check whether tile picture as texture.

Returns:
true if tile picture as texture.

setTiling

public void setTiling(boolean tile)
Sets whether tile picture as texture.

Parameters:
tile - whether tile picture as texture.

getImageFormat

public int getImageFormat()
Gets the image format of the picture in this fill.

Returns:
image format type.
See Also:
ImageFormat

getImageData

public byte[] getImageData()
Gets the picture data for Texture or Picture fill.

Returns:
the picture data for filling.

setImageData

public void setImageData(byte[] data)
                  throws java.io.IOException
Sets the picture data for Picture fill.

Parameters:
data - picture data for filling.
Throws:
java.io.IOException

getTransparency

public float getTransparency()
Gets the transparency of this gradient stop.

Returns:
transparency, 0~1.

setTransparency

public void setTransparency(float val)
Sets the transparency of this gradient stop.

Parameters:
val - transparency. Can only be a value from 0 to 1.

getTileOffsetX

public float getTileOffsetX()
Gets the X offset for tiling picture. Only for Tiling is true.

Returns:
X offset for tiling picture.
See Also:
setTileOffsetX(float)

setTileOffsetX

public void setTileOffsetX(float offset)
Sets the X offset for tiling picture. Only for Tiling is true.

Parameters:
offset - X offset in points unit. Can only be a value from -1584 to 1584.

getTileOffsetY

public float getTileOffsetY()
Gets the Y offset for tiling picture. Only for Tiling is true.

Returns:
Y offset for tiling picture.
See Also:
setTileOffsetY(float)

setTileOffsetY

public void setTileOffsetY(float offset)
Sets the Y offset for tiling picture. Only for Tiling is true.

Parameters:
offset - Y offset in points unit. Can only be a value from -1584 to 1584.

getTileScaleX

public float getTileScaleX()
Gets the X scale for tiling picture. Only for Tiling is true.

Returns:
X scale for tiling picture.
See Also:
setTileScaleX(float)

setTileScaleX

public void setTileScaleX(float scale)
Sets the X scale for tiling picture. Only for Tiling is true.

Parameters:
scale - X scale. Can only be a value from 0 to 1.

getTileScaleY

public float getTileScaleY()
Gets the Y scale for tiling picture. Only for Tiling is true.

Returns:
Y scale for tiling picture.
See Also:
setTileScaleY(float)

setTileScaleY

public void setTileScaleY(float scale)
Sets the Y scale for tiling picture. Only for Tiling is true.

Parameters:
scale - Y scale. Can only be a value from 0 to 1.

getTileAlignment

public byte getTileAlignment()
Gets the alignment for tiling. Only for Tiling is true.

Returns:
alignment type.
See Also:
setTileAlignment(byte)

setTileAlignment

public void setTileAlignment(byte alignmentType)
Sets alignment for tiling. Only for Tiling is true.

Parameters:
alignmentType -
See Also:
TileAlignmentType

getTileMirrorType

public byte getTileMirrorType()
Gets the mirror type for tiling. Only for Tiling is true.

Returns:
mirror type.
See Also:
setTileMirrorType(byte)

setTileMirrorType

public void setTileMirrorType(byte mirrorType)
Sets mirror type for tiling. Only for Tiling is true.

Parameters:
mirrorType -
See Also:
TileMirrorType

getStretchOffsetLeft

public float getStretchOffsetLeft()
Gets the left offset for stretching picture. Only for Tiling is false.

Returns:
left offset for stretching picture.
See Also:
setStretchOffsetLeft(float)

setStretchOffsetLeft

public void setStretchOffsetLeft(float offset)
Sets the left offset for stretching picture. Only for Tiling is false.

Parameters:
offset - left offset for stretching picture. Can only be a value from -1 to 1.

getStretchOffsetTop

public float getStretchOffsetTop()
Gets the top offset for stretching picture. Only for Tiling is false.

Returns:
top offset for stretching picture.
See Also:
setStretchOffsetTop(float)

setStretchOffsetTop

public void setStretchOffsetTop(float offset)
Sets the top offset for stretching picture. Only for Tiling is false.

Parameters:
offset - top offset for stretching picture. Can only be a value from -1 to 1.

getStretchOffsetRight

public float getStretchOffsetRight()
Gets the right offset for stretching picture. Only for Tiling is false.

Returns:
right offset for stretching picture.
See Also:
setStretchOffsetRight(float)

setStretchOffsetRight

public void setStretchOffsetRight(float offset)
Sets the right offset for stretching picture. Only for Tiling is false.

Parameters:
offset - right offset for stretching picture. Can only be a value from -1 to 1.

getStretchOffsetBottom

public float getStretchOffsetBottom()
Gets the bottom offset for stretching picture. Only for Tiling is false.

Returns:
bottom offset for stretching picture.
See Also:
setStretchOffsetBottom(float)

setStretchOffsetBottom

public void setStretchOffsetBottom(float offset)
Sets the bottom offset for stretching picture. Only for Tiling is false.

Parameters:
offset - bottom offset for stretching picture. Can only be a value from -1 to 1.