Class TextLayout
java.lang.Object
zombie.worldMap.symbols.TextLayout
-
Field Summary
FieldsModifier and TypeFieldDescriptionshort[]short[]intshort -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLine(short start, short end) voidcalculateLineLengths(WorldMapTextStyleLayer textLayer1) intgetFirstChar(int lineIndex) intgetLastChar(int lineIndex) intgetLineLength(int lineIndex) floatgetLineOffsetX(int lineIndex) intset(String text1, WorldMapTextStyleLayer textLayer1) set(TextLayout other) splitLines(String text1)
-
Field Details
-
text
-
textWithoutFormatting
-
numLines
public short numLines -
lineStartEnd
public short[] lineStartEnd -
textLayer
-
lineLength
public short[] lineLength -
maxLineLength
public int maxLineLength
-
-
Constructor Details
-
TextLayout
public TextLayout()
-
-
Method Details
-
set
-
set
-
splitLines
-
addLine
public void addLine(short start, short end) -
calculateLineLengths
-
getMaxLineLength
public int getMaxLineLength() -
getLineLength
public int getLineLength(int lineIndex) -
getLineOffsetX
public float getLineOffsetX(int lineIndex) -
getFirstChar
public int getFirstChar(int lineIndex) -
getLastChar
public int getLastChar(int lineIndex)
-