Package net.sourceforge.plantuml.command
Class BlocLines
java.lang.Object
net.sourceforge.plantuml.command.BlocLines
- All Implemented Interfaces:
java.lang.Iterable<StringLocated>
-
Method Summary
Modifier and TypeMethodDescriptionadd
(StringLocated s) addString
(java.lang.String s) cleanList
(MultilinesStrategy strategy) static BlocLines
create()
static BlocLines
from
(java.util.List<StringLocated> lines) static BlocLines
fromArray
(java.lang.String[] array) getAt
(int i) getFirst()
getLast()
char
java.util.List<java.lang.String>
static BlocLines
getWithNewlines
(java.lang.String s) java.util.Iterator<StringLocated>
iterator()
static BlocLines
load
(java.io.InputStream is, LineLocation location) static BlocLines
load
(SFile f, LineLocation location) overrideLastLine
(java.lang.String last) removeStartingAndEnding
(java.lang.String data, int removeAtEnd) static BlocLines
single
(StringLocated single) static BlocLines
singleString
(java.lang.String single) int
size()
subExtract
(int margeStart, int margeEnd) subList
(int start, int end) java.lang.String
toString()
trim()
trimSmart
(int referenceLine) 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 Details
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
load
- Throws:
java.io.IOException
-
load
public static BlocLines load(java.io.InputStream is, LineLocation location) throws java.io.IOException - Throws:
java.io.IOException
-
from
-
toDisplay
- Throws:
NoSuchColorException
-
single
-
singleString
-
fromArray
-
getWithNewlines
-
create
-
add
-
addString
-
getLinesAsStringForSprite
public java.util.List<java.lang.String> 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:
iterator
in interfacejava.lang.Iterable<StringLocated>
-
eventuallyMoveBracket
-
eventuallyMoveAllEmptyBracket
-