Package crackers.kobots.graphics.widgets
Interface KobotsWidget
-
- All Implemented Interfaces:
public interface KobotsWidget<T extends Object>
Shows some graphics things in a defined region.
TODO add color
-
-
Method Summary
Modifier and Type Method Description abstract Unit
drawStatic()
Draw any "static" parts that don't get updated. abstract Unit
updateValue(T currentValue)
Update the display to the current value. <Error class: unknown class>
withGraphics(Function1<Graphics2D, Unit> block)
Makes drawing fun. abstract Graphics2D
getGraphics()
abstract Integer
getX()
abstract Integer
getY()
abstract Font
getLabelFont()
abstract String
getLabel()
abstract Integer
getLineWidth()
abstract Rectangle
getBounds()
How much space this occupies. -
-
Method Detail
-
drawStatic
abstract Unit drawStatic()
Draw any "static" parts that don't get updated.
-
updateValue
abstract Unit updateValue(T currentValue)
Update the display to the current value. THIS IS NOT GUARANTEED TO BE THREAD-SAFE!!!
-
withGraphics
<Error class: unknown class> withGraphics(Function1<Graphics2D, Unit> block)
Makes drawing fun.
-
getGraphics
abstract Graphics2D getGraphics()
-
getLabelFont
abstract Font getLabelFont()
-
getLineWidth
abstract Integer getLineWidth()
-
-
-
-