private void initTransients() { rendererListener = new IEventListener() { @Override public void onEvent() { invalidateTransform(); } }; renderer.onAttached(rendererListener); }
@Override public void draw(IDrawBuffer drawBuffer) { renderer.render(drawBuffer, this, 0, 0); }
@Override public void onTick() { super.onTick(); renderer.update(); }
@Override protected void onDestroyed() { super.onDestroyed(); renderer.onDetached(rendererListener); }
@Override public VerticalAlign getVerticalAlign() { return renderer.getVerticalAlign(); }
@Override public void setVerticalAlign(VerticalAlign align) { renderer.setVerticalAlign(align); }
@Override public void setTexture(ButtonViewState viewState, ITexture tex) { renderer.setTexture(viewState, tex); }
@Override public void setTexture(ButtonViewState viewState, INinePatch patch) { renderer.setTexture(viewState, patch); }
@Override protected void setUnscaledSize(double w, double h) { renderer.setSize(w, h); invalidateTransform(); }
@Override protected double getUnscaledHeight() { return renderer.getNativeHeight(); }
@Override protected double getUnscaledWidth() { return renderer.getNativeWidth(); }
@Override public void setText(StyledText stext) { renderer.setText(stext); }
@Override public StyledText getText() { return renderer.getText(); }