Package crackers.kobots.graphics.widgets
Class VerticalPercentageIndicator
-
- All Implemented Interfaces:
-
crackers.kobots.graphics.widgets.KobotsWidget
public class VerticalPercentageIndicator implements KobotsWidget<Int>
Shows a sliding pointer on a 0-100 scale. By default, it occupies the top-left of the graphics.
-
-
Constructor Summary
Constructors Constructor Description VerticalPercentageIndicator(Graphics2D graphics, Font labelFont, Integer maxHeight, Integer x, Integer y, String label, Boolean showValue, Integer lineWidth, Integer pointerSize)
-
Method Summary
Modifier and Type Method Description Rectangle
getBounds()
How much space this occupies. final Graphics2D
getGraphics()
Font
getLabelFont()
Integer
getX()
Integer
getY()
String
getLabel()
Integer
getLineWidth()
<Error class: unknown class>
drawStatic()
Draw any "static" parts that don't get updated. Unit
updateValue(Integer currentValue)
Update the display to the current value. -
-
Method Detail
-
getGraphics
final Graphics2D getGraphics()
-
getLabelFont
Font getLabelFont()
-
getLineWidth
Integer getLineWidth()
-
drawStatic
<Error class: unknown class> drawStatic()
Draw any "static" parts that don't get updated.
-
updateValue
Unit updateValue(Integer currentValue)
Update the display to the current value. THIS IS NOT THREAD-SAFE!!!
-
-
-
-