public class RowBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
bgColor |
int |
borderColor |
int |
borderXOffset |
int[] |
colors |
int |
currentProgress |
int |
fgColor |
int |
fontSize |
int[] |
ids |
int |
itemId |
int |
maximumProgress |
int |
progressBarHeight |
int |
progressBarWidth |
int |
rowHeight |
int[] |
scales |
boolean |
showGoal |
boolean |
showPercentage |
int |
spriteScale |
int |
spriteSpacing |
int |
stringColor |
java.lang.String[] |
strings |
int |
stringXOffset |
int[] |
stringXOffsets |
int |
stringYOffset |
java.lang.String |
text |
java.lang.String |
type |
Constructor and Description |
---|
RowBuilder() |
Modifier and Type | Method and Description |
---|---|
RowBuilder |
centeredSingleStringRow(java.lang.String text,
int color,
int fontSize)
Builds a row with a single centered colored string
|
RowBuilder |
multiItemSpriteRow(int[] ids,
int[] scales,
java.lang.String[] strings,
int[] colors,
int borderXOffset,
int spriteSpacing,
int stringXOffset,
int stringYOffset)
Builds a row of item sprites and strings.
|
RowBuilder |
multipleStringRow(java.lang.String[] strings,
int[] colors,
int[] xOffsets,
int fontSize)
Builds a row with multiple colored strings
|
RowBuilder |
progressBarRow(int current,
int maximum,
int bgColor,
int fgColor,
int borderColor,
int borderXOffset,
int barWidth,
int barHeight,
boolean showPercentage,
boolean showGoal,
java.lang.String string,
int stringColor)
Builds a row with a progress bar and a colored string.
|
RowBuilder |
singleSpriteMultipleStringRow(int itemId,
int scale,
int borderXOffset,
java.lang.String[] strings,
int[] colors,
int[] stringXOffsets,
int stringYOffset)
Builds a row with a single item sprite and multiple strings.
|
RowBuilder |
singleSpriteSingleStringRow(int itemId,
java.lang.String itemString,
int stringColor,
int borderXOffset,
int spriteScale,
int stringXOffset,
int stringYOffset)
Builds a row with a single item sprite and string.
|
RowBuilder |
singleStringRow(java.lang.String text,
int color,
int xOffset,
int fontSize)
Builds a row with a single colored string
|
public int[] ids
public int[] colors
public int[] scales
public int[] stringXOffsets
public java.lang.String[] strings
public java.lang.String type
public java.lang.String text
public int itemId
public int stringColor
public int fgColor
public int bgColor
public int borderColor
public int borderXOffset
public int rowHeight
public int spriteScale
public int spriteSpacing
public int stringXOffset
public int stringYOffset
public int fontSize
public int progressBarWidth
public int progressBarHeight
public int currentProgress
public int maximumProgress
public boolean showGoal
public boolean showPercentage
public RowBuilder singleStringRow(java.lang.String text, int color, int xOffset, int fontSize)
text
- String -- String to paintcolor
- color -- Color of the string. RGB "HTML" Color Example: 0x36E2D7xOffset
- int -- Amount to offset the string's X from the paint's borderfontSize
- int -- Font Sizepublic RowBuilder centeredSingleStringRow(java.lang.String text, int color, int fontSize)
text
- String -- String to paintcolor
- color -- Color of the string. RGB "HTML" Color Example: 0x36E2D7fontSize
- int -- Font Sizepublic RowBuilder multipleStringRow(java.lang.String[] strings, int[] colors, int[] xOffsets, int fontSize)
strings
- int[] -- Strings to drawcolors
- int[] -- Colors of the strings. RGB "HTML" Color Example: 0x36E2D7xOffsets
- int[] -- Array of offsets for each string's X from the previous string's X. The
first index is the amount offset from paint's border.fontSize
- int -- Font Sizepublic RowBuilder multiItemSpriteRow(int[] ids, int[] scales, java.lang.String[] strings, int[] colors, int borderXOffset, int spriteSpacing, int stringXOffset, int stringYOffset)
ids
- int[] -- Array of item ids to paintscales
- int[] -- Array of int to scale each sprite to. 100 is normal, lower is smaller,
higher is bigger.strings
- String[] -- Array of strings to paint for each item spritecolors
- int[] -- Array of colors for each string. If given an empty array, it will
default to white. RGB "HTML" Color Example: 0x36E2D7borderXOffset
- int -- Amount to offset the row's X from the paint's borderspriteSpacing
- int -- Spacing between each spritestringXOffset
- int -- X offset for the strings relative to the sprite's X. Negative is
left while positive is right.stringYOffset
- int -- Y offset for the strings relative to the sprite's Y. Negative is up
while positive is down.public RowBuilder singleSpriteSingleStringRow(int itemId, java.lang.String itemString, int stringColor, int borderXOffset, int spriteScale, int stringXOffset, int stringYOffset)
itemId
- int -- Item id to draw the sprite foritemString
- String -- String to drawstringColor
- int -- Color of the string. RGB "HTML" Color Example: 0x36E2D7borderXOffset
- int -- Amount to offset the sprite's X from the paint's borderspriteScale
- int -- Scale of the items sprite. 100 is normal, lesser is smaller, greater
is larger.stringXOffset
- int -- X offset for the string relative to the sprite's X. Negative is
left while positive is right.stringYOffset
- int -- Y offset for the string relative to the sprite's Y. Negative is up
while positive is down.public RowBuilder progressBarRow(int current, int maximum, int bgColor, int fgColor, int borderColor, int borderXOffset, int barWidth, int barHeight, boolean showPercentage, boolean showGoal, java.lang.String string, int stringColor)
current
- int -- Current value to calculate the progress bar frommaximum
- int -- Maximum value to calculate the progress bar frombgColor
- int -- Color of the progress bar's background. RGB "HTML" Color Example:
0x36E2D7fgColor
- int -- Color of the progress bar's foreground. RGB "HTML" Color Example:
0x36E2D7borderColor
- int -- Color of the progress bar's border. RGB "HTML" Color Example:
0x36E2D7borderXOffset
- int -- Amount to offset the progress bar's X from the paint's borderbarWidth
- int -- Width of the progress barbarHeight
- int -- Height of the progress barshowPercentage
- boolean -- Show the percentage on the barshowGoal
- boolean -- Show the start an goal on the barstring
- String -- Description of the progress barstringColor
- int-- Color of the text. RGB "HTML" Color Example: 0x36E2D7public RowBuilder singleSpriteMultipleStringRow(int itemId, int scale, int borderXOffset, java.lang.String[] strings, int[] colors, int[] stringXOffsets, int stringYOffset)
itemId
- int -- Id of item sprite to drawscale
- int -- Scale of the items sprite. 100 is normal, lesser is smaller, greater is
larger.borderXOffset
- int -- Amount to offset the sprite's X from the paint's borderstrings
- String[] -- Array of stringscolors
- int[] -- Array of colors for the stringsstringXOffsets
- int[] -- Array of offsets for each string's X from the previous string's
X. The first index is the amount offset from the sprite's X.stringYOffset
- int -- Amount up or down the strings are in the row. Negative is up while
positive is down.