|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.simple.Component
org.odftoolkit.simple.presentation.Slide
public class Slide
Slide represents the presentation slide feature of the ODF
document. Slide provides methods to get the slide index,get the
content of the current slide, etc.
| Nested Class Summary | |
|---|---|
static class |
Slide.SlideBuilder
This is a tool class which supplies all of the slide creation detail. |
static class |
Slide.SlideLayout
A slide layout is a slide with some predefine place holder. |
| Method Summary | |
|---|---|
List |
addList()
Add a new List to this container. |
List |
addList(ListDecorator decorator)
Add a List with specified ListDecorator to this container. |
Table |
addTable()
Add a new Table to this container. |
Table |
addTable(int numRows,
int numCols)
Add a new Table to this container with a specified row number and column number. |
Textbox |
addTextbox()
Add a text box |
Textbox |
addTextbox(FrameRectangle position)
Add a text box with a specific size at a specific position |
void |
clearList()
Remove all Lists from this container. |
Chart |
createChart(String title,
DataSet dataset,
Rectangle rect)
Creates a new Chart for this container. |
Chart |
createChart(String title,
SpreadsheetDocument document,
CellRangeAddressList cellRangeAddr,
boolean firstRowAsLabel,
boolean firstColumnAsLabel,
boolean rowAsDataSeries,
Rectangle rect)
Creates a new Chart for this container. |
Chart |
createChart(String title,
String[] labels,
String[] legends,
double[][] data,
Rectangle rect)
Creates a new Chart for this container. |
void |
deleteChartById(String chartId)
Deletes chart by chart id. |
void |
deleteChartByTitle(String title)
Deletes chart(s) by chart title. |
Chart |
getChartById(String chartId)
Gets chart with specified id. |
List<Chart> |
getChartByTitle(String title)
Gets chart list with specified title. |
int |
getChartCount()
Returns the chart count of this container |
OdfElement |
getFrameContainerElement()
Get the ODF element which can have |
static Slide |
getInstance(DrawPageElement pageElement)
Get a presentation slide instance by an instance of DrawPageElement. |
OdfElement |
getListContainerElement()
Get the ODF element which can have |
Iterator<List> |
getListIterator()
Return an Iterator of the Lists in this ListContainer. |
Notes |
getNotesPage()
Get the Notes page of this slide |
DrawPageElement |
getOdfElement()
Return an instance of DrawPageElement which represents
presentation slide feature. |
int |
getSlideIndex()
Get the current slide index in the owner document. |
String |
getSlideName()
Get the current slide name. |
Table.TableBuilder |
getTableBuilder()
Return the table builder of this document. |
Table |
getTableByName(String name)
Return an instance of table feature with the specific table name. |
OdfElement |
getTableContainerElement()
Get the ODF element which can have |
protected TableContainer |
getTableContainerImpl()
|
List<Table> |
getTableList()
Return a list of table features in this document. |
Textbox |
getTextboxByName(String name)
Return a text box whose name is a given value. |
List<Textbox> |
getTextboxByUsage(PresentationDocument.PresentationClass usage)
This method is only useful in presentation slide. |
Iterator<Textbox> |
getTextboxIterator()
Return an Iterator of the text objects in this container. |
boolean |
removeList(List list)
Remove the existing List from this container. |
boolean |
removeTextbox(Textbox box)
Remove the text box |
void |
setSlideName(String name)
Set the current slide name. |
| Methods inherited from class org.odftoolkit.simple.Component |
|---|
getComponentByElement, getOwnerDocument, registerComponent, unregisterComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Slide getInstance(DrawPageElement pageElement)
DrawPageElement.
pageElement - an instance of DrawPageElement
Slide that can represent
pageElementpublic DrawPageElement getOdfElement()
DrawPageElement which represents
presentation slide feature.
getOdfElement in class ComponentDrawPageElementpublic int getSlideIndex()
-1, if the odf element which can represent this slide is not in the document DOM tree
public String getSlideName()
If the "draw:name" attribute is not present there, create an unique name for this slide
public void setSlideName(String name)
It must be unique slide name in the current presentation. If not, an IllegalArgumentException will be thrown. If the given name is null, an IllegalArgumentException will also be thrown.
name - the new name of the current slide
IllegalArgumentException - if the given name is null or it is not unique in the current
presentation.public Notes getNotesPage()
Notes which represent the notes page
of the current slidepublic OdfElement getListContainerElement()
ListContainer
getListContainerElement in interface ListContainerpublic List addList()
ListContainer
addList in interface ListContainerpublic List addList(ListDecorator decorator)
ListContainer
addList in interface ListContainerdecorator - the specified ListDecorator
public void clearList()
ListContainer
clearList in interface ListContainerpublic Iterator<List> getListIterator()
ListContainer
getListIterator in interface ListContainerIteratorpublic boolean removeList(List list)
ListContainer
removeList in interface ListContainerpublic Table addTable()
TableContainer
addTable in interface TableContainer
public Table addTable(int numRows,
int numCols)
TableContainer
The table will be inserted at the end of the tableContainer. An unique
table name will be given, you may set a custom table name using the
setTableName method.
addTable in interface TableContainernumRows - the row numbernumCols - the column number
Tablepublic Table getTableByName(String name)
TableContainer
getTableByName in interface TableContainername - of the table being searched for.
public List<Table> getTableList()
TableContainer
getTableList in interface TableContainerpublic Table.TableBuilder getTableBuilder()
TableContainer
getTableBuilder in interface TableContainerpublic OdfElement getTableContainerElement()
TableContainer
getTableContainerElement in interface TableContainerprotected TableContainer getTableContainerImpl()
public Textbox addTextbox()
TextboxContainer
addTextbox in interface TextboxContainerpublic Iterator<Textbox> getTextboxIterator()
TextboxContainer
getTextboxIterator in interface TextboxContainerpublic boolean removeTextbox(Textbox box)
TextboxContainer
removeTextbox in interface TextboxContainerbox - - the instance of text box
public OdfElement getFrameContainerElement()
FrameContainer
getFrameContainerElement in interface FrameContainerpublic Textbox addTextbox(FrameRectangle position)
TextboxContainer
addTextbox in interface TextboxContainerposition - - the rectangle (position and size) of this text box
public Textbox getTextboxByName(String name)
TextboxContainer
getTextboxByName in interface TextboxContainername - - the name of the text box
public List<Textbox> getTextboxByUsage(PresentationDocument.PresentationClass usage)
TextboxContainerThis method will return a list of text boxs by the usage in presentation slides.
getTextboxByUsage in interface TextboxContainerusage - - the usage description
public Chart createChart(String title,
DataSet dataset,
Rectangle rect)
ChartContainer
createChart in interface ChartContainertitle - chart title.dataset - chart data set.rect - chart rectangle.
public Chart createChart(String title,
SpreadsheetDocument document,
CellRangeAddressList cellRangeAddr,
boolean firstRowAsLabel,
boolean firstColumnAsLabel,
boolean rowAsDataSeries,
Rectangle rect)
ChartContainer
createChart in interface ChartContainertitle - chart title.document - the data source spreadsheet document.cellRangeAddr - the cell range address list which is used as chart data set.firstRowAsLabel - whether uses first row as label.firstColumnAsLabel - whether uses first column as label.rowAsDataSeries - whether uses data as series.rect - chart rectangle.
public Chart createChart(String title,
String[] labels,
String[] legends,
double[][] data,
Rectangle rect)
ChartContainer
createChart in interface ChartContainertitle - chart rectangle.labels - label stringslegends - legend stringsdata - chart data set.rect - chart rectangle.
public void deleteChartById(String chartId)
ChartContainer
deleteChartById in interface ChartContainerchartId - the id of specified chart.public void deleteChartByTitle(String title)
ChartContainer
deleteChartByTitle in interface ChartContainertitle - the title of specified chart(s).public Chart getChartById(String chartId)
ChartContainer
getChartById in interface ChartContainerchartId - the id of this chart.
public List<Chart> getChartByTitle(String title)
ChartContainer
getChartByTitle in interface ChartContainertitle - the title of specified chart(s).
public int getChartCount()
ChartContainer
getChartCount in interface ChartContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||