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