Examples of Control


Examples of org.joshy.gfx.node.control.Control

        controls.add(c2);
        alphaControlMap.put(stop,c2);
    }

    protected void removeStopControl(MultiGradientFill.Stop activeStop) {
        Control colorPopup = colorControlMap.get(activeStop);
        controls.remove(colorPopup);
        colorControlMap.remove(activeStop);
        Container popupLayer = context.getSketchCanvas().getParent().getStage().getPopupLayer();
        popupLayer.remove(colorPopup);

        Control alphaPopup = alphaControlMap.get(activeStop);
        controls.remove(alphaPopup);
        alphaControlMap.remove(activeStop);
        popupLayer.remove(alphaPopup);
    }
View Full Code Here

Examples of org.nasutekds.server.types.Control

          OperationContext ctx = (OperationContext)
            operation.getAttachment(OperationContext.SYNCHROCONTEXT);
          if (ctx != null) {
            ChangeNumber cn = ctx.getChangeNumber();
            if (cn != null) {
              Control responseControl =
                  new ChangeNumberControl(c.isCritical(), cn);
              operation.getResponseControls().add(responseControl);
            }
          }
          break;
View Full Code Here

Examples of org.odftoolkit.simple.draw.Control

      DrawControlElement control = (DrawControlElement) controls.item(i);
      if (control.getDrawControlAttribute().equals(getId())) {
        drawingShape = (Control) Component
            .getComponentByElement(control);
        if (drawingShape == null) {
          drawingShape = new Control(control);
          Component.registerComponent(drawingShape, control);
        }
        return true;
      }
    }
View Full Code Here

Examples of org.olat.ims.qti.editor.beecom.objects.Control

    qtiState.put("QUESTION.RESPONSES.ASTEXT", asTexts);
    qtiState.put("QUESTION.RESPONSES.FEEDBACK", feedbacks);
    // feedback
    qtiState.put("FEEDBACK.MASTERY", QTIEditHelper.getFeedbackMasteryText(item));
    qtiState.put("FEEDBACK.FAIL", QTIEditHelper.getFeedbackFailText(item));
    Control control = (Control) QTIEditHelper.getControl(item);
    qtiState.put("FEEDBACK.ENABLED", control.getFeedback() == 1 ? Boolean.TRUE : Boolean.FALSE);
    //
    qnm.setQtiState(qtiState);
    //
    return qnm;
  }
View Full Code Here

Examples of org.omg.CosTransactions.Control

    orb.resolve_initial_references("PICurrent");

            PropagationContext context = PropagationContextHelper.extract
                (pi_current.get_slot(slot_id));

            Control control = ControlHelper.extract(context.implementation_specific_data);
            ts_current.resume(control);
        }
        catch(Exception e)
        {
            if (logger.isDebugEnabled())
View Full Code Here

Examples of org.parosproxy.paros.control.Control

  private void runCommandLine() {
      int rc = 0;
      String help = "";
     
      Control.initSingletonWithoutView();
      Control control = Control.getSingleton();
     
      // no view initialization

      try {
          control.getExtensionLoader().hookCommandLineListener(cmdLine);
          if (cmdLine.isEnabled(CommandLine.HELP) || cmdLine.isEnabled(CommandLine.HELP2)) {
              help = cmdLine.getHelp();
              System.out.println(help);
          } else {
         
              control.runCommandLineNewSession(cmdLine.getArgument(CommandLine.NEW_SESSION));
       
              try {
                  Thread.sleep(1000);
              } catch (InterruptedException e) {}
          }
        rc = 0;
      } catch (Exception e) {
          log.error(e.getMessage());
          System.out.println(e.getMessage());
          rc = 1;
      } finally {
            control.shutdown(false);
          log.info(Constant.PROGRAM_TITLE + " terminated.");
      }
      System.exit(rc);
  }
View Full Code Here

Examples of org.resmedicinae.resmedlib.component.control.Control

     * Creates a control issued when the window containing this view is closed.
     * @return the control issued when the window containing this view is closed
     * @exception NullPointerException if the control is null
     */
    public Control createCloseControl() throws NullPointerException {
        Control c = new Control();
        if (c != null) {
            c.setId(Record.DESTROY_LOAD_PATIENT_DIALOG_CONTROL_ID);
            c.setSender((Controller) getController());
        } else {
            throw new NullPointerException("Could not create close control. The control is null.");
        }
        return c;
    }
View Full Code Here

Examples of org.scopemvc.core.Control

        showCard(EMPTY_CARD_KEY);
    }

    public Control getCloseControl() {
        return new Control(CacheSyncConfigController.CANCEL_CONFIG_CONTROL);
    }
View Full Code Here

Examples of org.spoutcraft.api.gui.Control

    this.parent = parent;
  }

  @Override
  public void initGui() {
    Control control;

    GenericScrollArea screen = new GenericScrollArea();
    scroll = screen;
    screen.setHeight(height - 24 - 30).setWidth(width).setY(24).setX(0);
    getScreen().attachWidget("Spoutcraft", screen);

    GenericLabel label = new GenericLabel("Game Settings");
    int size = Spoutcraft.getMinecraftFont().getTextWidth(label.getText());
    label.setX((int) (width / 2 - size / 2)).setY(10);
    label.setFixed(true).setPriority(RenderPriority.Lowest);
    getScreen().attachWidget("Spoutcraft", label);

    int left = (int)(width / - 155);
    int right = (int)(width / 2 + 5);
    int center = (int)(width / 2 - 75);

    control = new ResetButton(parent).setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(left).setY(height - 25);
    getScreen().attachWidget("Spoutcraft", control);

    switchToAdvancedCheck = new GenericCheckBox("Advanced");
    switchToAdvancedCheck.setChecked(false);
    switchToAdvancedCheck.setX(5).setY(3).setWidth(100).setHeight(20);
    switchToAdvancedCheck.setPriority(RenderPriority.Low);
    getScreen().attachWidget("Spoutcraft", switchToAdvancedCheck);

    doneButton = new GenericButton("Done");
    doneButton.setAlign(WidgetAnchor.CENTER_CENTER);
    doneButton.setX(right).setY(height - 25);
    doneButton.setHeight(20).setWidth(150);
    getScreen().attachWidget("Spoutcraft", doneButton);

    int top = 5;

    Color grey = new Color(0.80F, 0.80F, 0.80F, 0.65F);

    label = new GenericLabel("Controls and Audio Settings");
    size = Spoutcraft.getMinecraftFont().getTextWidth(label.getText());
    label.setX((int) (width / 2 - size / 2)).setY(top);
    label.setTextColor(grey);
    screen.attachWidget("Spoutcraft", label);
    top += 11;

    Gradient linebreak = new GenericGradient();
    linebreak.setBottomColor(grey);
    linebreak.setTopColor(grey);
    linebreak.setX(width/2 - 318 / 2).setY(top).setHeight(3).setWidth(318);
    screen.attachWidget("Spoutcraft", linebreak);
    top += 6;

    control = new MusicSlider().setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(left).setY(top);
    screen.attachWidget("Spoutcraft", control);

    control = new SoundEffectsSlider().setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(right).setY(top);
    screen.attachWidget("Spoutcraft", control);
    top += 22;

    control = new FieldOfViewSlider().setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(left).setY(top);
    screen.attachWidget("Spoutcraft", control);

    control = new DifficultyButton().setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(right).setY(top);
    screen.attachWidget("Spoutcraft", control);
    top += 22;
   
    control = new TexturesButton(this).setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(center).setY(top);
    screen.attachWidget("Spoutcraft", control);
    top += 22;

    control = new ControlsButton(this).setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(left).setY(top);
    screen.attachWidget("Spoutcraft", control);

    control = new LanguagesButton(this).setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(right).setY(top);
    screen.attachWidget("Spoutcraft", control);
    top += 22;

    control = new ChatButton(this).setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(left).setY(top);
    screen.attachWidget("Spoutcraft", control);

    control = new MinimapButton(this).setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(right).setY(top);
    screen.attachWidget("Spoutcraft", control);

    top += 22;

    // Graphics
View Full Code Here

Examples of org.zkoss.openlayers.control.Control

               
        map1.addLayers(Arrays.asList(ol, jpl));
        map1.addControl(new LayerSwitcher());
       
        // create an overview map control with the default options
        Control overview1 = new OverviewMap(toMap(pair("maximized", true)));
        map1.addControl(overview1);
       
        map1.setCenter(new LonLat(0, 0), 2);
       
        // create the bottom map (with advanced overview map control)
        Map mapOptions = toMap(
            pair("maxExtent", new Bounds(-8242894.927728, 4965204.031195, -8227290.161511, 4994963.723637)),
            pair("maxResolution", 116.2487986015621),
            pair("projection", "EPSG:900913"),
            pair("units", "m")        );

       
        map2.setOptions(mapOptions);
        map2.addLayer(ny);
       
       
        // create an overview map control with non-default options
        Map controlOptions = toMap(
        pair("maximized", true),
        pair("mapOptions",
            mergeMap(mapOptions,
              pair("maxResolution", 156543.0339),
              pair("maxExtent", new Bounds(-20037508.34, -20037508.34,
                             20037508.34, 20037508.34)))
        ),
        pair("layers", Arrays.asList(jplOverview)
        ));
        Control overview2 = new OverviewMap(controlOptions);
        map2.addControl(overview2);
       
        map2.setCenter(new LonLat(-8233165.3575055, 4980298.21113769), 3);
  }
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.