Package com.google.gdt.eclipse.designer.mobile.device.model

Examples of com.google.gdt.eclipse.designer.mobile.device.model.IDeviceView


    /**
     * Implementation for {@link #refreshVisuals()}.
     */
    private void refreshVisualsEx() throws Exception {
      IDeviceView device = DeviceSelectionSupport.getDeviceView(m_object);
      if (device != null) {
        // update figure with device image
        {
          Image image = device.getImage();
          m_deviceFigure.setLocation(DEVICE_LOCATION);
          m_deviceFigure.setSize(image.getBounds().width, image.getBounds().height);
        }
        // update EditPart figure
        {
          Rectangle bounds = device.getDisplayBounds().getCopy();
          bounds.translate(DEVICE_LOCATION);
          m_editPart.getFigure().setBounds(bounds);
        }
      } else {
        Rectangle bounds = m_object.getBounds();
View Full Code Here


      int y = ib.height - db.right();
      int x = db.y;
      displayBounds = new org.eclipse.wb.draw2d.geometry.Rectangle(x, y, db.height, db.width);
    }
    // return view
    return new IDeviceView() {
      public Image getImage() {
        return image;
      }

      public org.eclipse.wb.draw2d.geometry.Rectangle getDisplayBounds() {
View Full Code Here

  /**
   * Applies {@link DeviceInfo} invocation into hierarchy and refresh.
   */
  private static void applyDevice(IUIObjectInfo object) throws Exception {
    IDeviceView device = getDeviceView(object);
    // set size
    if (device != null) {
      Dimension size = device.getDisplayBounds().getSize();
      object.getTopBoundsSupport().setSize(size.width, size.height);
    }
    // refresh
    object.getUnderlyingModel().refresh();
  }
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.mobile.device.model.IDeviceView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.