Package net.sourceforge.plantuml.command
Class BlocLines
- java.lang.Object
-
- net.sourceforge.plantuml.command.BlocLines
-
- All Implemented Interfaces:
java.lang.Iterable<StringLocated>
public class BlocLines extends java.lang.Object implements java.lang.Iterable<StringLocated>
-
-
Constructor Summary
Constructors Constructor Description BlocLines()
-
Method Summary
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
load
public static BlocLines load(SFile f, LineLocation location) throws java.io.IOException
- Throws:
java.io.IOException
-
load
public static BlocLines load(java.io.InputStream is, LineLocation location) throws java.io.IOException
- Throws:
java.io.IOException
-
toDisplay
public Display toDisplay() throws NoSuchColorException
- Throws:
NoSuchColorException
-
single
public static BlocLines single(StringLocated single)
-
singleString
public static BlocLines singleString(java.lang.String single)
-
fromArray
public static BlocLines fromArray(java.lang.String[] array)
-
getWithNewlines
public static BlocLines getWithNewlines(java.lang.String s)
-
add
public BlocLines add(StringLocated s)
-
addString
public BlocLines addString(java.lang.String s)
-
getLinesAsStringForSprite
public java.util.List<java.lang.String> getLinesAsStringForSprite()
-
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()
-
removeStartingAndEnding
public BlocLines removeStartingAndEnding(java.lang.String data, int removeAtEnd)
-
overrideLastLine
public BlocLines overrideLastLine(java.lang.String last)
-
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 java.util.Iterator<StringLocated> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<StringLocated>
-
eventuallyMoveBracket
public BlocLines eventuallyMoveBracket()
-
eventuallyMoveAllEmptyBracket
public BlocLines eventuallyMoveAllEmptyBracket()
-
-