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 UnitdrawStatic()Draw any "static" parts that don't get updated. abstract UnitupdateValue(T currentValue)Update the display to the current value. <Error class: unknown class>withGraphics(Function1<Graphics2D, Unit> block)Makes drawing fun. abstract Graphics2DgetGraphics()abstract IntegergetX()abstract IntegergetY()abstract FontgetLabelFont()abstract StringgetLabel()abstract IntegergetLineWidth()abstract RectanglegetBounds()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()
-
-
-
-