org.infolayer.templates.html
Class TE_banner
java.lang.Object
org.kxml2.kdom.Element
org.infolayer.templates.TemplateElement
org.infolayer.templates.html.TE_banner
- public class TE_banner
- extends TemplateElement
Renders a given text as a graphical image. The text is specified as the
textual content of the element. A number of parameters take effect on the
result's appearance. Amongst the things that can be changed are font, color,
and angle of the text. The latter was the original reason for introducing
this element, since HTML/CSS currently lacks such a facility.
- width
- Specifies the width of the resulting image. Automatically determined, if
not given.
- height
- Specifies the heigth of the resulting image. Automatically determined,
if not given.
- angle
- Specifies the angle at which text is printed. Automatically rounded to
the next multiple of 90 degrees. Text is printed horizontally, if no angle is
given.
- border
- Specifies the width of the border drawn around the text. Similar to the
border of an HTML table. No border is drawn, if this parameter is not given.
- padding
- Specifies the padding between the image border and the text. Similar to
the padding of an HTML table. No padding is done, if this parameter is not
given.
- align
- Specifies the horizontal alignment of the text. Legal values are "left",
"right", and "center". Defaults to "left". Parameter only makes sense when
image width is explicitly given.
- color
- Specifies the text color. Default is black.
- bgcolor
- Specifies the background color. Default is white.
- fontface
- Specifies the font family. Default is Helvetica.
- fontsize
- Specifies the font size in points. Default is 12.
- Author:
- Joerg Pleumann (joerg@pleumann.de)
- See Also:
- Serialized Form
Constructor Summary |
TE_banner()
Creates the element. |
Method Summary |
void |
apply(XmlSerializer xw,
IlRequest request,
Bindings bindings)
Is called when the element is being applied. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TE_banner
public TE_banner()
- Creates the element.
apply
public void apply(XmlSerializer xw,
IlRequest request,
Bindings bindings)
throws java.io.IOException
- Is called when the element is being applied.
- Overrides:
apply
in class TemplateElement
- Throws:
java.io.IOException