public class GLMapMenuButtonWidget extends GLAbstractButtonWidget
Modifier and Type | Field and Description |
---|---|
static GLWidgetSpi |
SPI |
_anchorx, _anchory, _bgColor, _glText, _iconColor, _iconHeight, _iconWidth, _image, _imageEntry, _textDirty, _textValue
Constructor and Description |
---|
GLMapMenuButtonWidget(MapMenuButtonWidget subject,
GLMapView orthoView) |
Modifier and Type | Method and Description |
---|---|
protected void |
_updateIconRef(java.lang.String uri) |
void |
drawButtonBackground(int bgColor) |
void |
drawButtonIcon(int iconColor,
GLImage iconImage) |
void |
drawButtonText(GLText glText,
java.lang.String _textValue) |
void |
drawWidgetContent()
Renders the widget content.
|
void |
onButtonBackgroundChanged(AbstractButtonWidget button) |
void |
onButtonIconChanged(AbstractButtonWidget button) |
void |
onButtonStateChanged(AbstractButtonWidget button) |
void |
onRadialButtonOrientationChanged(IRadialButtonWidget button) |
void |
onRadialButtonSizeChanged(IRadialButtonWidget button) |
void |
releaseWidget()
Releases any resources allocated as a result of
GLWidget.drawWidgetContent() . |
void |
startObserving(MapWidget subject) |
void |
stopObserving(MapWidget subject) |
onButtonTextChanged
drawStateFromFixedPipeline, drawWidget, drawWidget, getSubject, getSurface, getWidgetViewF, getX, getY, onVisibleChanged, onWidgetPointChanged, setX, setY, start, stop
public static final GLWidgetSpi SPI
public GLMapMenuButtonWidget(MapMenuButtonWidget subject, GLMapView orthoView)
public void onButtonBackgroundChanged(AbstractButtonWidget button)
onButtonBackgroundChanged
in interface AbstractButtonWidget.OnBackgroundChangedListener
onButtonBackgroundChanged
in class GLAbstractButtonWidget
public void startObserving(MapWidget subject)
startObserving
in class GLAbstractButtonWidget
public void stopObserving(MapWidget subject)
stopObserving
in class GLAbstractButtonWidget
public void drawWidgetContent()
GLWidget
Must be invoked on GL render thread!
drawWidgetContent
in class GLAbstractButtonWidget
public void drawButtonBackground(int bgColor)
drawButtonBackground
in class GLAbstractButtonWidget
public void drawButtonIcon(int iconColor, GLImage iconImage)
drawButtonIcon
in class GLAbstractButtonWidget
public void drawButtonText(GLText glText, java.lang.String _textValue)
drawButtonText
in class GLAbstractButtonWidget
_textValue
- the localized button textpublic void onButtonStateChanged(AbstractButtonWidget button)
onButtonStateChanged
in interface AbstractButtonWidget.OnStateChangedListener
onButtonStateChanged
in class GLAbstractButtonWidget
public void onRadialButtonSizeChanged(IRadialButtonWidget button)
public void onRadialButtonOrientationChanged(IRadialButtonWidget button)
protected void _updateIconRef(java.lang.String uri)
_updateIconRef
in class GLAbstractButtonWidget
public void releaseWidget()
GLWidget
GLWidget.drawWidgetContent()
.
Must be invoked on GL render thread!
releaseWidget
in class GLAbstractButtonWidget
public void onButtonIconChanged(AbstractButtonWidget button)
onButtonIconChanged
in interface AbstractButtonWidget.OnIconChangedListener
onButtonIconChanged
in class GLAbstractButtonWidget