Package net.sourceforge.plantuml.utils
Class BlocLines
java.lang.Object
net.sourceforge.plantuml.utils.BlocLines
- All Implemented Interfaces:
Iterable<StringLocated>
-
Method Summary
Modifier and TypeMethodDescriptionadd(StringLocated s) cleanList(MultilinesStrategy strategy) static BlocLinescreate()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) removeFewChars(int nb) 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
-
Method Details
-
toString
-
load
- Throws:
IOException
-
load
- Throws:
IOException
-
from
-
toDisplay
- Throws:
NoSuchColorException
-
single
-
singleString
-
fromArray
-
getWithNewlines
-
create
-
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
-
removeFewChars
-
inspector
-
inspectorWithNewlines
-