org.odftoolkit.simple.draw
public abstract class AbstractTextboxContainer extends AbstractFrameContainer implements TextboxContainer
Constructor and Description |
---|
AbstractTextboxContainer() |
Modifier and Type | Method and Description |
---|---|
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.
|
addFrame, addFrame, getFrameByName, getFrameByPresentationclass, getFrameContainerElement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFrameContainerElement
public Textbox addTextbox()
TextboxContainer
addTextbox
in interface TextboxContainer
public boolean removeTextbox(Textbox box)
removeTextbox
in interface TextboxContainer
box
- - the text box to be removedpublic Iterator<Textbox> getTextboxIterator()
TextboxContainer
getTextboxIterator
in interface TextboxContainer
public Textbox addTextbox(FrameRectangle position)
TextboxContainer
addTextbox
in interface TextboxContainer
position
- - the rectangle (position and size) of this text boxpublic Textbox getTextboxByName(String name)
getTextboxByName
in interface TextboxContainer
name
- - the name of the text boxAbstractFrameContainer.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 TextboxContainer
usage
- - the usage descriptionAbstractFrameContainer.getFrameByPresentationclass(PresentationDocument.PresentationClass)
,
PresentationDocument.PresentationClass
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.