com.tensegrity.graphics.text
Class Title
java.lang.Object
com.tensegrity.graphics.text.AbstractElement
com.tensegrity.graphics.text.Title
- All Implemented Interfaces:
- Element
- public class Title
- extends AbstractElement
A Title represents a Title in a Paragraph or TextSection. Such a title
consists of CharacterElements.
- Version:
- $Id: Title.java,v 1.3 2004/07/14 16:15:33 GillesIachelini Exp $
- Author:
- Gilles Iachelini
|
Constructor Summary |
Title(java.lang.String s)
Constructor for the Title class. |
|
Method Summary |
void |
addElement(Element element)
Adds Elements to this Title. |
java.util.List |
getCharacters()
Method getCharacters should return a List with all CharacterElements
of this Element implementation. |
java.lang.String |
getHtmlText()
Returns the title as html text by regarding the font formattings of
each element. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Title
public Title(java.lang.String s)
- Constructor for the Title class.
- Parameters:
s - the title String.
addElement
public void addElement(Element element)
- Adds Elements to this Title. Only CharacterElements are allowed.
- Specified by:
addElement in interface Element- Overrides:
addElement in class AbstractElement
- See Also:
AbstractElement.addElement(Element)
getHtmlText
public java.lang.String getHtmlText()
- Returns the title as html text by regarding the font formattings of
each element. Consecutive elements with the same font are packed into
one font tag.
- Specified by:
getHtmlText in interface Element- Overrides:
getHtmlText in class AbstractElement
- See Also:
AbstractElement.getHtmlText()
toString
public java.lang.String toString()
- See Also:
Object.toString()
getCharacters
public java.util.List getCharacters()
- Description copied from class:
AbstractElement
- Method getCharacters should return a List with all CharacterElements
of this Element implementation.
- Specified by:
getCharacters in class AbstractElement
- Returns:
- List with all CharacterElements within this Element and all of
its subelements.
- See Also:
AbstractElement.getCharacters()
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.