Examples of RowData


Examples of org.eclipse.swt.layout.RowData

        btResetAccumulation.setText("Reset Accumulation");
        btResetAccumulation.addSelectionListener(this);
        Label lb = new Label(c, SWT.NONE);
        lb.setText("jSCSI Server: ");
        serverName = new Text(c, SWT.SINGLE | SWT.BORDER);
        serverName.setLayoutData(new RowData(200, -1));
        serverName.setText(Activator.getDefault().getPluginPreferences().
                getString(PreferenceConstants.P_STRING_DEFAULT_LOG_FILE));
        Label lb2 = new Label(c, SWT.NONE);
        lb2.setText("Type-File: ");
        typeFileName = new Text(c, SWT.SINGLE | SWT.BORDER);
        typeFileName.setLayoutData(new RowData(200, -1));
        typeFileName.setText(Activator.getDefault().getPluginPreferences().
                getString(PreferenceConstants.P_STRING_DEFAULT_TYPE_FILE));
        Label lb3 = new Label(c, SWT.NONE);
        lb3.setText("Value added at hit: ");
        sc = new Scale(c, SWT.HORIZONTAL);
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

    /**
     * Method which orders repainting of the legend.
     * @param e ControlEvent
     */
    public final void controlResized(final ControlEvent e) {
        c2.setLayoutData(new RowData(topshell.getClientArea().width - 10,
                topshell.getClientArea().height - 50));
        c2.redraw();
        c.setLayoutData(new RowData(topshell.getClientArea().width - 10, 30));
        c.redraw();
    }
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

        rl.type = SWT.VERTICAL;
        rl.wrap = false;
        rl.justify = true;
        topshell.setLayout(rl);
        preference = new Composite(topshell, SWT.BORDER);
        preference.setLayoutData(new RowData(
                topshell.getClientArea().width, 50));
        RowLayout rl2 = new RowLayout();
        rl2.spacing = 10;
        preference.setLayout(rl2);
        lbDevice = new Label(preference, SWT.READ_ONLY);
        lbDevice.setText("Device: ");
        RowData rowd = new RowData();
        rowd.height = 45;
        rowd.width = 130;
        device = new List(preference, SWT.SINGLE | SWT.V_SCROLL);
        device.setLayoutData(rowd);
        visualizing = new List(preference, SWT.SINGLE);
        visualizing.setItems(new String[] {"Read", "Write"});
        visualizing.setSelection(0);
        lastVis = "Read";
        Label lbmin = new Label(preference,SWT.NONE);
        lbmin.setText("Min Blockno.");
        min = new Spinner(preference,SWT.NONE);
        min.setMinimum(0);
        min.setMaximum(1000000);
        Label lbmax = new Label(preference,SWT.NONE);
        lbmax.setText("Max Blockno.");
        max = new Spinner(preference,SWT.NONE);
        max.setMinimum(0);
        max.setMaximum(1000000);
        btResetHistory = new Button(preference, SWT.PUSH);
        btResetHistory.setText("Reset Touch History");
        btResetHistory.addSelectionListener(this);
        details = new Composite(preference, SWT.BORDER);
        details.setLayout(new FillLayout());
        lbDetails = new Label(details, SWT.NONE);
        lbDetails.setText("Details: N/A");
        preference.pack();
        c = new Canvas(topshell, SWT.DOUBLE_BUFFERED | SWT.BORDER);
        c.setLayoutData(new RowData(topshell.getClientArea().width,
                topshell.getClientArea().height - 150));
        c.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_BLACK));
        c.addPaintListener(this);
        c.addMouseMoveListener(this);
        xPos = new int[lines * colums];
 
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

    /**
     * Method which orders recalculation of Grid if Frame is resized.
     * @param e ControlEvent
     */
    public final void controlResized(final ControlEvent e) {
        preference.setLayoutData(new RowData(
                topshell.getClientArea().width - 10, 60));
        c.setLayoutData(new RowData(
                topshell.getClientArea().width - 10,
                topshell.getClientArea().height - 80));
        first = true;
        c.redraw();
    }
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

        rl.justify = true;
        topshell.setLayout(rl);
        topshell.addDisposeListener(this);
        preference = new Composite(topshell, SWT.BORDER);
        preference.setLayoutData(
                new RowData(topshell.getClientArea().width, 50));
        preference.setLayout(new RowLayout());
        lbDevice = new Label(preference, SWT.READ_ONLY);
        lbDevice.setText("Device: ");
        RowData rowd = new RowData();
        rowd.height = 45;
        rowd.width = 130;
        device = new List(preference, SWT.READ_ONLY | SWT.V_SCROLL);
        device.setLayoutData(rowd);
        lbType = new Label(preference, SWT.SHADOW_IN);
        lbType.setText("Type: ");
        typ = new List(preference, SWT.READ_ONLY);
        typ.setItems(new String[] {"Linear", "Logarithmic"});
        typ.setSelection(0);
        lbAggregation = new Label(preference, SWT.SHADOW_IN);
        lbAggregation.setText("Values are :");
        cumulative = new List(preference, SWT.READ_ONLY);
        cumulative.setItems(new String[] {"accumulated", "not accumulated"});
        cumulative.setSelection(1);
        lbAccessType = new Label(preference, SWT.READ_ONLY);
        lbAccessType.setText("Visualizing: ");
        visualizing = new List(preference, SWT.READ_ONLY);
        visualizing.setItems(new String[] {"Read" , "Write"});
        visualizing.setSelection(0);
        c = new Canvas(topshell, SWT.DOUBLE_BUFFERED | SWT.BORDER);
        c.setLayoutData(new RowData(topshell.getClientArea().width,
                topshell.getClientArea().height - 75));
        c.addPaintListener(this);
        value = new float[noOfBins];
        for (int i = 0; i < noOfBins; i++) {
            value[i] = 0;
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

     * Method which orders repainting of the histogram.
     * @param e ControlEvent
     */
    public final void controlResized(final ControlEvent e) {
        preference.setLayoutData(
               new RowData(topshell.getClientArea().width - 10, 60));
        c.setLayoutData(new RowData(topshell.getClientArea().width - 10,
                topshell.getClientArea().height - 80));
        c.redraw();
    }
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

        btResetAccumulation.setText("Reset Accumulation");
        btResetAccumulation.addSelectionListener(this);
        Label lb = new Label(c, SWT.NONE);
        lb.setText("jSCSI Server: ");
        serverName = new Text(c, SWT.SINGLE | SWT.BORDER);
        serverName.setLayoutData(new RowData(200, -1));
        serverName.setText(Activator.getDefault().getPluginPreferences().
                getString(PreferenceConstants.P_STRING_DEFAULT_LOG_FILE));
        Label lb2 = new Label(c, SWT.NONE);
        lb2.setText("Type-File: ");
        typeFileName = new Text(c, SWT.SINGLE | SWT.BORDER);
        typeFileName.setLayoutData(new RowData(200, -1));
        typeFileName.setText(Activator.getDefault().getPluginPreferences().
                getString(PreferenceConstants.P_STRING_DEFAULT_TYPE_FILE));
        Label lb3 = new Label(c, SWT.NONE);
        lb3.setText("Value added at hit: ");
        sc = new Scale(c, SWT.HORIZONTAL);
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

    /**
     * Method which orders repainting of the legend.
     * @param e ControlEvent
     */
    public final void controlResized(final ControlEvent e) {
        c2.setLayoutData(new RowData(topshell.getClientArea().width - 10,
                topshell.getClientArea().height - 50));
        c2.redraw();
        c.setLayoutData(new RowData(topshell.getClientArea().width - 10, 30));
        c.redraw();
    }
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

    composite.setLayout( new RowLayout() );

    decorator.addGroupedListener( SWT.Selection, mock( Listener.class ) );

    Control facade = composite.getChildren()[ 0 ];
    RowData layoutData = ( RowData )facade.getLayoutData();
    assertTrue( layoutData.exclude );
  }
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

  protected void refreshDebugButtons(CloudFoundryApplicationModule appModule) {
    int state = appModule.getState();

    if (isDebugAllowed()) {
      if (state == IServer.STATE_STOPPED || state == IServer.STATE_UNKNOWN) {
        RowData data = new RowData();
        data.exclude = false;
        debugControl.setLayoutData(data);
        debugControl.setVisible(true);

        data = new RowData();
        data.exclude = true;
        connectToDebugger.setLayoutData(data);
        connectToDebugger.setVisible(false);
      }
      else {
        RowData data = new RowData();
        data.exclude = true;
        debugControl.setLayoutData(data);
        debugControl.setVisible(false);

        // Show the connect to debugger button if the application is
        // running
        // in debug mode but no debugger is connected
        DebugModeType modeType = getDeployedAppDebugMode();
        if (modeType != null
            && !CloudFoundryProperties.isConnectedToDebugger.testProperty(new IModule[] { module },
                cloudServer)) {
          data = new RowData();
          data.exclude = false;
          connectToDebugger.setLayoutData(data);
          connectToDebugger.setVisible(true);
        }
        else {
          data = new RowData();
          data.exclude = true;
          connectToDebugger.setLayoutData(data);
          connectToDebugger.setVisible(false);
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.