com.aspose.slides.pptx
Class TableEx

java.lang.Object
  extended by com.aspose.slides.pptx.ShapeEx
      extended by com.aspose.slides.pptx.GraphicalObjectEx
          extended by com.aspose.slides.pptx.TableEx
All Implemented Interfaces:
IPresentationComponent, ISlideComponent

public final class TableEx
extends GraphicalObjectEx

Represents a table on a slide.


Field Summary
 
Fields inherited from class com.aspose.slides.pptx.ShapeEx
m_parent
 
Method Summary
 void draw(Canvas canvas, RenderContext rc)
           
 CellEx get(int columnIndex, int rowIndex)
          Returns a cell at the specified column and row indexes.
 ColumnsEx getColumns()
          Returns the collection of columns.
 boolean getFirstCol()
          Determines whether the first column of a table has to be drawn with a special formatting.
 boolean getFirstRow()
          Determines whether the first row of a table has to be drawn with a special formatting.
 boolean getHorizontalBanding()
          Determines whether the even rows has to be drawn with a different formatting.
 boolean getLastCol()
          Determines whether the last column of a table has to be drawn with a special formatting.
 boolean getLastRow()
          Determines whether the last row of a table has to be drawn with a special formatting.
 boolean getRightToLeft()
          Determines whether the table has right to left reading order.
 RowsEx getRows()
          Returns the collection of rows.
 TableStylePresetEx getStylePreset()
          Returns the built-in style of a table.
 boolean getVerticalBanding()
          Determines whether the even columns has to be drawn with a different formatting.
 void mergeCells(CellEx cell1, CellEx cell2, boolean allowSplitting)
           
 void setFirstCol(boolean value)
          Sets whether the first column of a table has to be drawn with a special formatting.
 void setFirstRow(boolean value)
          Sets whether the first row of a table has to be drawn with a special formatting.
 void setHorizontalBanding(boolean value)
          Sets whether the even rows has to be drawn with a different formatting.
 void setLastCol(boolean value)
          Sets whether the last column of a table has to be drawn with a special formatting.
 void setLastRow(boolean value)
          Sets whether the last row of a table has to be drawn with a special formatting.
 void setRightToLeft(boolean value)
          Sets whether the table has right to left reading order.
 void setStylePreset(TableStylePresetEx value)
          Sets the built-in style of a table.
 void setVerticalBanding(boolean value)
          Sets whether the even columns has to be drawn with a different formatting.
 
Methods inherited from class com.aspose.slides.pptx.GraphicalObjectEx
getShapeLock
 
Methods inherited from class com.aspose.slides.pptx.ShapeEx
createPropertiesElements, getAlternativeText, getEffectFormat, getFillFormat, getFrame, getHeight, getHLinkClick, getHLinkMouseOver, getLineFormat, getName, getNonVisualPropElement, getParent, getPlaceholder, getPresentation, getRawFrame, getRotation, getShapeId, getSlide, getTags, getThreeDFormat, getWidth, getX, getY, getZOrderPosition, isHidden, isTextHolder, setAlternativeText, setFrame, setHeight, setHidden, setHLinkClick, setHLinkMouseOver, setName, setNVPropertiesElement, setRawFrame, setRotation, setWidth, setX, setY
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

mergeCells

public void mergeCells(CellEx cell1,
                       CellEx cell2,
                       boolean allowSplitting)

getStylePreset

public TableStylePresetEx getStylePreset()
Returns the built-in style of a table.


setStylePreset

public void setStylePreset(TableStylePresetEx value)
Sets the built-in style of a table.


get

public CellEx get(int columnIndex,
                  int rowIndex)
Returns a cell at the specified column and row indexes.

Parameters:
columnIndex - column index of a cell.
rowIndex - row index of a cell.
Returns:
See CellEx.

getRows

public RowsEx getRows()
Returns the collection of rows.

Returns:
See RowsEx.

getColumns

public ColumnsEx getColumns()
Returns the collection of columns.

Returns:
See ColumnsEx.

getRightToLeft

public boolean getRightToLeft()
Determines whether the table has right to left reading order.


setRightToLeft

public void setRightToLeft(boolean value)
Sets whether the table has right to left reading order.

Parameters:
value - true to set right to left reading order.

getFirstRow

public boolean getFirstRow()
Determines whether the first row of a table has to be drawn with a special formatting.


setFirstRow

public void setFirstRow(boolean value)
Sets whether the first row of a table has to be drawn with a special formatting.

Parameters:
value - true to draw first row of a table with a special formatting.

getFirstCol

public boolean getFirstCol()
Determines whether the first column of a table has to be drawn with a special formatting.


setFirstCol

public void setFirstCol(boolean value)
Sets whether the first column of a table has to be drawn with a special formatting.

Parameters:
value - true to draw first column of a table with a special formatting.

getLastRow

public boolean getLastRow()
Determines whether the last row of a table has to be drawn with a special formatting.


setLastRow

public void setLastRow(boolean value)
Sets whether the last row of a table has to be drawn with a special formatting.

Parameters:
value - true to draw last row of a table with a special formatting.

getLastCol

public boolean getLastCol()
Determines whether the last column of a table has to be drawn with a special formatting.


setLastCol

public void setLastCol(boolean value)
Sets whether the last column of a table has to be drawn with a special formatting.

Parameters:
value - true to draw last column of a table with a special formatting.

getHorizontalBanding

public boolean getHorizontalBanding()
Determines whether the even rows has to be drawn with a different formatting.


setHorizontalBanding

public void setHorizontalBanding(boolean value)
Sets whether the even rows has to be drawn with a different formatting.

Parameters:
value - true to draw even rows with a different formatting.

getVerticalBanding

public boolean getVerticalBanding()
Determines whether the even columns has to be drawn with a different formatting.


setVerticalBanding

public void setVerticalBanding(boolean value)
Sets whether the even columns has to be drawn with a different formatting.

Parameters:
value - true to draw even columns with a different formatting.

draw

public void draw(Canvas canvas,
                 RenderContext rc)
Overrides:
draw in class ShapeEx