Package zombie.ui
Class ObjectTooltip.LayoutItem
java.lang.Object
zombie.ui.ObjectTooltip.LayoutItem
- Enclosing class:
- ObjectTooltip
public static class ObjectTooltip.LayoutItem
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description floata0floata1floatb0floatb1floatg0floatg1booleanhasValuejava.lang.StringlabelintlabelWidthfloatprogressFractionintprogressWidthfloatr0floatr1booleanrightJustifyjava.lang.StringvalueintvalueWidthintvalueWidthRight -
Constructor Summary
Constructors Constructor Description LayoutItem() -
Method Summary
Modifier and Type Method Description voidcalcSizes()voidrender(int x, int y, int mid, int right, ObjectTooltip ui)voidreset()voidsetLabel(java.lang.String label, float r, float g, float b, float a)voidsetProgress(float fraction, float r, float g, float b, float a)voidsetValue(java.lang.String label, float r, float g, float b, float a)voidsetValueRight(int value, boolean highGood)voidsetValueRightNoPlus(float value)voidsetValueRightNoPlus(int value)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
label
public java.lang.String label -
r0
public float r0 -
g0
public float g0 -
b0
public float b0 -
a0
public float a0 -
hasValue
public boolean hasValue -
value
public java.lang.String value -
rightJustify
public boolean rightJustify -
r1
public float r1 -
g1
public float g1 -
b1
public float b1 -
a1
public float a1 -
progressFraction
public float progressFraction -
labelWidth
public int labelWidth -
valueWidth
public int valueWidth -
valueWidthRight
public int valueWidthRight -
progressWidth
public int progressWidth
-
-
Constructor Details
-
LayoutItem
public LayoutItem()
-
-
Method Details
-
reset
public void reset() -
setLabel
public void setLabel(java.lang.String label, float r, float g, float b, float a) -
setValue
public void setValue(java.lang.String label, float r, float g, float b, float a) -
setValueRight
public void setValueRight(int value, boolean highGood) -
setValueRightNoPlus
public void setValueRightNoPlus(float value) -
setValueRightNoPlus
public void setValueRightNoPlus(int value) -
setProgress
public void setProgress(float fraction, float r, float g, float b, float a) -
calcSizes
public void calcSizes() -
render
-