Package tripleplay.ui
Class GlyphWidget<T extends GlyphWidget<T>>
java.lang.Object
tripleplay.ui.Element<T>
tripleplay.ui.Widget<T>
tripleplay.ui.SizableWidget<T>
tripleplay.ui.GlyphWidget<T>
Base for widgets that consist of a single glyph. Performs all boilerplate layout stuff and
delegates the painting to subclasses:
paint(Canvas)
. Note this should only be used for
widgets that need to do some composition of images or other drawing for their display. Otherwise
they should do their own arranging of group and image layers etc.-
Nested Class Summary
Nested classes/interfaces inherited from class tripleplay.ui.Element
Element.Take
-
Field Summary
Fields inherited from class tripleplay.ui.SizableWidget
preferredSize
-
Method Summary
Modifier and TypeMethodDescriptionvoid
render()
Redraws this widget's glyph if the widget is visible and laid out.Methods inherited from class tripleplay.ui.Element
addStyles, addStyles, bindEnabled, bindVisible, bounds, constraint, enabledSlot, hierarchyChanged, isAdded, isEnabled, isShowing, isVisible, location, parent, setConstraint, setEnabled, setStyles, setStyles, setVisible, size, styles, visibleSlot, x, y
-
Method Details
-
render
public void render()Redraws this widget's glyph if the widget is visible and laid out. Called automatically whenever the widget is laid out. Note that this is not the same asElement.invalidate()
. That's protected and causes all parent containers to re-layout. This simply updates the image.
-