Package classycle.renderer
Class TemplateBasedStrongComponentRenderer
- java.lang.Object
-
- classycle.renderer.AbstractStrongComponentRenderer
-
- classycle.renderer.TemplateBasedStrongComponentRenderer
-
- All Implemented Interfaces:
StrongComponentRenderer
public class TemplateBasedStrongComponentRenderer extends AbstractStrongComponentRenderer
Renderer of aStrongComponent
. The renderer is based on a java.text.MessageFormat template.- Author:
- Franz-Josef Elmer
-
-
Constructor Summary
Constructors Constructor Description TemplateBasedStrongComponentRenderer(java.lang.String template, int minimumNumber)
Creates an instance for the specified template.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
render(StrongComponent component)
Renderes the specifiedStrongComponent
.-
Methods inherited from class classycle.renderer.AbstractStrongComponentRenderer
createName
-
-
-
-
Constructor Detail
-
TemplateBasedStrongComponentRenderer
public TemplateBasedStrongComponentRenderer(java.lang.String template, int minimumNumber)
Creates an instance for the specified template.- Parameters:
template
- The template.minimumNumber
- Minimum number of vertices theStrongComponent
should have to be rendered.
-
-
Method Detail
-
render
public java.lang.String render(StrongComponent component)
Description copied from interface:StrongComponentRenderer
Renderes the specifiedStrongComponent
.
-
-