Package net.sourceforge.plantuml.command
Class BlocLines
java.lang.Object
net.sourceforge.plantuml.command.BlocLines
- All Implemented Interfaces:
Iterable<StringLocated>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(StringLocated s) cleanList(MultilinesStrategy strategy) static BlocLinesfrom(List<StringLocated> lines) static BlocLinesgetAt(int i) getFirst()getLast()charstatic BlocLinesiterator()static BlocLinesload(InputStream is, LineLocation location) static BlocLinesload(SFile f, LineLocation location) overrideLastLine(String last) removeStartingAndEnding(String data, int removeAtEnd) static BlocLinessingle(StringLocated single) static BlocLinessingleString(String single) intsize()subExtract(int margeStart, int margeEnd) subList(int start, int end) toString()trim()trimSmart(int referenceLine) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
BlocLines
public BlocLines()
-
-
Method Details
-
toString
-
load
- Throws:
IOException
-
load
- Throws:
IOException
-
from
-
toDisplay
- Throws:
NoSuchColorException
-
single
-
singleString
-
fromArray
-
getWithNewlines
-
add
-
addString
-
getLinesAsStringForSprite
-
size
public int size() -
getAt
-
getFirst
-
getLast
-
cleanList
-
trim
-
removeEmptyLines
-
removeEmptyColumns
-
getLastChar
public char getLastChar() -
removeStartingAndEnding
-
overrideLastLine
-
toSingleLineWithHiddenNewLine
-
trimSmart
-
subExtract
-
subList
-
iterator
- Specified by:
iteratorin interfaceIterable<StringLocated>
-
eventuallyMoveBracket
-
eventuallyMoveAllEmptyBracket
-