Package net.sourceforge.plantuml.command
Class BlocLines
- java.lang.Object
-
- net.sourceforge.plantuml.command.BlocLines
-
- All Implemented Interfaces:
Iterable<StringLocated>
public class BlocLines extends Object implements Iterable<StringLocated>
-
-
Constructor Summary
Constructors Constructor Description BlocLines()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
load
public static BlocLines load(SFile f, LineLocation location) throws IOException
- Throws:
IOException
-
load
public static BlocLines load(InputStream is, LineLocation location) throws IOException
- Throws:
IOException
-
from
public static BlocLines from(List<StringLocated> lines)
-
toDisplay
public Display toDisplay() throws NoSuchColorException
- Throws:
NoSuchColorException
-
single
public static BlocLines single(StringLocated single)
-
add
public BlocLines add(StringLocated s)
-
size
public int size()
-
getAt
public StringLocated getAt(int i)
-
getFirst
public StringLocated getFirst()
-
getLast
public StringLocated getLast()
-
cleanList
public BlocLines cleanList(MultilinesStrategy strategy)
-
trim
public BlocLines trim()
-
removeEmptyLines
public BlocLines removeEmptyLines()
-
removeEmptyColumns
public BlocLines removeEmptyColumns()
-
getLastChar
public char getLastChar()
-
toSingleLineWithHiddenNewLine
public BlocLines toSingleLineWithHiddenNewLine()
-
trimSmart
public BlocLines trimSmart(int referenceLine)
-
subExtract
public BlocLines subExtract(int margeStart, int margeEnd)
-
subList
public BlocLines subList(int start, int end)
-
iterator
public Iterator<StringLocated> iterator()
- Specified by:
iterator
in interfaceIterable<StringLocated>
-
eventuallyMoveBracket
public BlocLines eventuallyMoveBracket()
-
eventuallyMoveAllEmptyBracket
public BlocLines eventuallyMoveAllEmptyBracket()
-
-