/** * Let shim size match our size. * * @param width the desired pixel width * @param height the desired pixel height */ @Override public void setPixelSize(int width, int height) { super.setPixelSize(width, height); shim.setPixelSize(width, height); }
/** * Sets the size in pixels of the {@link LienzoPanel} * Sets the size in pixels of the {@link Viewport} contained and automatically added to the instance of the {@link LienzoPanel} */ @Override public void setPixelSize(int wide, int high) { super.setPixelSize(wide, high); m_view.setPixelSize(wide, high); }
/** * Let shim size match our size. * * @param width the desired pixel width * @param height the desired pixel height */ @Override public void setPixelSize(int width, int height) { super.setPixelSize(width, height); shim.setPixelSize(width, height); }
private void startCapturing() { capturingWidget.setPixelSize(0, 0); RootPanel.get().add(capturingWidget, 0, 0); DOM.setCapture(capturingWidget.getElement()); }
/** * Adjust the shim size and attach once our widget dimensions are known. */ @Override protected void onLoad() { super.onLoad(); shim.setPixelSize(getOffsetWidth(), getOffsetHeight()); add(shim, 0, 0); }
/** * Sets the size in pixels of the {@link LienzoPanel} * Sets the size in pixels of the {@link Viewport} contained and automatically added to the instance of the {@link LienzoPanel} */ @Override public void setPixelSize(final int wide, final int high) { super.setPixelSize(wide, high); getViewport().setPixelSize(wide, high); getViewport().draw(); }
/** * Sets the size in pixels of the {@link LienzoPanel} * Sets the size in pixels of the {@link Viewport} contained and automatically added to the instance of the {@link LienzoPanel} */ @Override public void setPixelSize(final int wide, final int high) { super.setPixelSize(wide, high); getViewport().setPixelSize(wide, high); getViewport().draw(); }
/** * Sets the size in pixels of the {@link LienzoPanel} * Sets the size in pixels of the {@link Viewport} contained and automatically added to the instance of the {@link LienzoPanel} */ @Override public void setPixelSize(final int wide, final int high) { super.setPixelSize(wide, high); getViewport().setPixelSize(wide, high); getViewport().draw(); }
/** * Sets the size in pixels of the {@link LienzoPanel} * Sets the size in pixels of the {@link Viewport} contained and automatically added to the instance of the {@link LienzoPanel} */ @Override public void setPixelSize(final int wide, final int high) { super.setPixelSize(wide, high); getViewport().setPixelSize(wide, high); getViewport().draw(); }
/** * Adjust the shim size and attach once our widget dimensions are known. */ @Override protected void onLoad() { super.onLoad(); int height = getOffsetHeight(); int width = getOffsetWidth(); if (height == 0 && width == 0) { height = 18; width = 210; } shim.setPixelSize(width, height); add(shim, 0, 0); }
@Override public Widget getDragHandle() { if (!shim.isAttached() && isAttached()) { shim.setPixelSize(getOffsetWidth(), getOffsetHeight()); add(shim, 0, 0); } return shim; }
private void startDragging() { context.dragStartCleanup(); try { context.dragController.previewDragStart(); } catch (VetoDragException ex) { context.vetoException = ex; mouseDownWidget = null; dragEndCleanup(); return; } context.dragController.dragStart(); startCapturing(); capturingWidget.setPixelSize( RootPanel.get().getOffsetWidth(), RootPanel.get().getOffsetHeight()); dragging = DRAGGING_NO_MOVEMENT_YET; }