Package cz.vutbr.fit.layout.api
Class Concatenators.SeparatedAreaConcatenator
- java.lang.Object
-
- cz.vutbr.fit.layout.api.Concatenators.SeparatedAreaConcatenator
-
- All Implemented Interfaces:
AreaConcatenator,Concatenator<Area>
- Enclosing class:
- Concatenators
public static class Concatenators.SeparatedAreaConcatenator extends Object implements AreaConcatenator
An area concatenator that concatenates the area text using a given separator.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description SeparatedAreaConcatenator(String separator, 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
-
SeparatedAreaConcatenator
public SeparatedAreaConcatenator(String separator, 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.
-
-