Esempio n. 1
0
 @Override
 public void fillShape(Graphics g, int x, int y, int w, int h) {
   int r = 2 * attrs.getValue(DrawAttr.CORNER_RADIUS).intValue();
   g.fillRoundRect(x, y, w, h, r, r);
 }
Esempio n. 2
0
 @Override
 public List<Attribute<?>> getAttributes() {
   return DrawAttr.getRoundRectAttributes(attrs.getValue(DrawAttr.PAINT_TYPE));
 }