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 float
a0
float
a1
float
b0
float
b1
float
g0
float
g1
boolean
hasValue
java.lang.String
label
int
labelWidth
float
progressFraction
int
progressWidth
float
r0
float
r1
boolean
rightJustify
java.lang.String
value
int
valueWidth
int
valueWidthRight
-
Constructor Summary
Constructors Constructor Description LayoutItem()
-
Method Summary
Modifier and Type Method Description void
calcSizes()
void
render(int x, int y, int mid, int right, ObjectTooltip ui)
void
reset()
void
setLabel(java.lang.String label, float r, float g, float b, float a)
void
setProgress(float fraction, float r, float g, float b, float a)
void
setValue(java.lang.String label, float r, float g, float b, float a)
void
setValueRight(int value, boolean highGood)
void
setValueRightNoPlus(float value)
void
setValueRightNoPlus(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
-