Package cz.vutbr.fit.layout.api
Class Concatenators.PlainAreaConcatenator
- java.lang.Object
-
- cz.vutbr.fit.layout.api.Concatenators.PlainAreaConcatenator
-
- All Implemented Interfaces:
AreaConcatenator,Concatenator<Area>
- Enclosing class:
- Concatenators
public static class Concatenators.PlainAreaConcatenator extends Object implements AreaConcatenator
An area concatenator that simply concatenates the area text contents without any separators.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description PlainAreaConcatenator(BoxConcatenator boxConcatenator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringconcat(List<Area> elems)Creates a text string by concatenating the contents of the given elements.BoxConcatenatorgetBoxConcatenator()Gets the box concatenator used for the leaf areas.
-
-
-
Constructor Detail
-
PlainAreaConcatenator
public PlainAreaConcatenator(BoxConcatenator boxConcatenator)
-
-
Method Detail
-
concat
public String concat(List<Area> elems)
Description copied from interface:ConcatenatorCreates a text string by concatenating the contents of the given elements.- Specified by:
concatin interfaceConcatenator<Area>- Parameters:
elems- The list of elements to concatenate.- Returns:
- Resulting text string.
-
getBoxConcatenator
public BoxConcatenator getBoxConcatenator()
Description copied from interface:AreaConcatenatorGets the box concatenator used for the leaf areas.- Specified by:
getBoxConcatenatorin interfaceAreaConcatenator- Returns:
- A box concatenator instance.
-
-