Exemplo n.º 1
0
 /**
  * Unhighlight button.
  *
  * @param shape the shape
  * @param opacity the opacity
  */
 private void unhighlightButton(AbstractShape shape, float opacity) {
   MTColor c = shape.getFillColor();
   c.setAlpha(opacity);
   shape.setFillColor(c);
 }
Exemplo n.º 2
0
 /**
  * Highlight button.
  *
  * @param shape the shape
  */
 private void highlightButton(AbstractShape shape) {
   MTColor c = shape.getFillColor();
   c.setAlpha(255);
   shape.setFillColor(c);
 }