Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate

com.aspose.cells
Class Picture

java.lang.Object
  extended by com.aspose.cells.Picture

public class Picture
extends java.lang.Object

Encapsulates the object that represents a single picture in a spreadsheet.


Method Summary
 int getPlacement()
          Gets the way the picture is attached to the cells below it.
 void move(int startRow, int startColumn)
          Moves the picture to a specified location.
 void move(int startRow, int startColumn, int endRow, int endColumn)
          Moves the picture to a specified location.
 void setPlacement(byte placementType)
          Sets the way the picture is attached to the cells below it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPlacement

public int getPlacement()
Gets the way the picture is attached to the cells below it.

Returns:
the way the picture is attached to the cells below it.
Throws:
ExcelException - if pictures Object has bean removed.
See Also:
setPlacement(byte)

setPlacement

public void setPlacement(byte placementType)
Sets the way the picture is attached to the cells below it.

Parameters:
placementType - the way the picture is attached to the cells below it. It could be one of the following values:
PlacementType.FREE_FLOATING
PlacementType.MOVE
PlacementType.MOVE_AND_SIZE
Throws:
ExcelException - if pictures Object has bean removed.
java.lang.IllegalArgumentException - if placementType is not member of PlacementType

move

public void move(int startRow,
                 int startColumn,
                 int endRow,
                 int endColumn)
Moves the picture to a specified location.

Parameters:
startRow - row index of the top left cell.
startColumn - column index of the top left cell.
endRow - row index of the bottom right cell.
endColumn - column index of the bottom right cell.
Throws:
ExcelException - if pictures Object has bean removed.
java.lang.IllegalArgumentException - if row or column index is out of range.

move

public void move(int startRow,
                 int startColumn)
Moves the picture to a specified location.

Parameters:
startRow - row index of the top left cell.
startColumn - column index of the top left cell.
Throws:
ExcelException - if pictures Object has bean removed.
java.lang.IllegalArgumentException - if row or column index is out of range.