protected void drawMyself() { super.drawMyself(); getValue(); if (scrolling) { /* * Cause the menu to re-layout in case we've changed preferred size. */ menu.layout(); } float px = menu.getStyle().getF("f.padX"); float py = menu.getStyle().getF("f.padY"); float curX = x + px; MenuUtils.drawLeftText(this, getName() + ":", curX); curX += tWidth; curX = getX() + getWidth() - px - nWidth; if (shouldPerformFill()) MenuUtils.drawSingleGradientRect(this, curX, y, nWidth, height); /* * update the "value" object using Reflection. */ MenuUtils.drawText(this, stringValue, true, true, curX, y, nWidth, height); }
public static synchronized void drawSingleGradientRect( MenuItem item, float x, float y, float width, float height) { float ro = item.getStyle().getF("f.roundOff"); drawSingleGradientRect(item, x, y, width, height, ro); }