class BS3PaletteWidgetViewImpl implements BS3PaletteWidgetView,
                                                 IsElement {

    @Override
    @SuppressWarnings("unchecked")
    public void showDragProxy(String itemId,
                              double x,
                              double y,
                              double width,
                              double height) {
        final Glyph glyph = presenter.getShapeDragProxyGlyph(itemId);
        shapeGlyphDragHandler.show(new ShapeGlyphDragHandler.Item() {
                                       @Override
                                       public Glyph getShape() {
                                           return glyph;
                                       }

                                       @Override
                                       public int getWidth() {
                                           return (int) width;
                                       }

                                       @Override
                                       public int getHeight() {
                                           return (int) height;
                                       }
                                   },
                                   (int) x,
                                   (int) y,
                                   new ShapeGlyphDragHandler.Callback() {
                                       @Override
                                       public void onStart(int x,
                                                           int y) {
                                           presenter.onDragStart(itemId,
                                                                 x,
                                                                 y);
                                       }

                                       @Override
                                       public void onMove(int x,
                                                          int y) {
                                           presenter.onDragProxyMove(itemId,
                                                                     (double) x,
                                                                     (double) y);
                                       }

                                       @Override
                                       public void onComplete(int x,
                                                              int y) {
                                           presenter.onDragProxyComplete(itemId,
                                                                         (double) x,
                                                                         (double) y);
                                       }
                                   });
    }

}