|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.simple.draw.AbstractFrameContainer
org.odftoolkit.simple.draw.AbstractTextboxContainer
public abstract class AbstractTextboxContainer
AbstractTextboxContainer is an abstract implementation of the TextboxContainer interface, with a default implementation for every method defined in TextboxContainer, except getFrameContainerElement(). A subclass must implement the abstract method getFrameContainerElement().
| Constructor Summary | |
|---|---|
AbstractTextboxContainer()
|
|
| Method Summary | |
|---|---|
Textbox |
addTextbox()
Add a text box |
Textbox |
addTextbox(FrameRectangle position)
Add a text box with a specific size at a specific position |
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 for presentation slides. |
Iterator<Textbox> |
getTextboxIterator()
Return an Iterator of the text objects in this container. |
boolean |
removeTextbox(Textbox box)
Remove the text box. |
| Methods inherited from class org.odftoolkit.simple.draw.AbstractFrameContainer |
|---|
addFrame, addFrame, getFrameByName, getFrameByPresentationclass, getFrameContainerElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.odftoolkit.simple.draw.FrameContainer |
|---|
getFrameContainerElement |
| Constructor Detail |
|---|
public AbstractTextboxContainer()
| Method Detail |
|---|
public Textbox addTextbox()
TextboxContainer
addTextbox in interface TextboxContainerpublic boolean removeTextbox(Textbox box)
removeTextbox in interface TextboxContainerbox - - the text box to be removed
public Iterator<Textbox> getTextboxIterator()
TextboxContainer
getTextboxIterator in interface TextboxContainerpublic Textbox addTextbox(FrameRectangle position)
TextboxContainer
addTextbox in interface TextboxContainerposition - - the rectangle (position and size) of this text box
public Textbox getTextboxByName(String name)
getTextboxByName in interface TextboxContainername - - the name of the text box
AbstractFrameContainer.getFrameByName(String)public List<Textbox> getTextboxByUsage(PresentationDocument.PresentationClass usage)
This method will return a list of text boxs by the usage defined in presentation slides.
getTextboxByUsage in interface TextboxContainerusage - - the usage description
AbstractFrameContainer.getFrameByPresentationclass(PresentationDocument.PresentationClass),
PresentationDocument.PresentationClass
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||