Examples of prepare()


Examples of de.lessvoid.nifty.loaderv2.types.ElementType.prepare()

    return createElementFromTypeInternal(screen, parent, type, new LayoutPart());
  }

  private Element createElementFromTypeInternal(final Screen screen, final Element parent, final ElementType type, final LayoutPart layoutPart) {
    ElementType elementType = type.copy();
    elementType.prepare(this, screen, screen.getRootElement().getElementType());
    elementType.connectParentControls(parent);
    Element element = elementType.create(parent, this, screen, layoutPart);
    if (screen.isBound()) {
      screen.layoutLayers();
      element.bindControls(screen);
View Full Code Here

Examples of de.lessvoid.nifty.loaderv2.types.PopupType.prepare()

  private Element createPopupFromType(final PopupType popupTypeParam, final String id) {
    Screen screen = getCurrentScreen();
    LayoutPart layerLayout = rootLayerFactory.createRootLayerLayoutPart(this);
    PopupType popupType = new PopupType(popupTypeParam);
    popupType.prepare(this, screen, screen.getRootElement().getElementType());
    Element element = popupType.create(screen.getRootElement(), this, screen, layerLayout);
    element.setId(id);
    fixupSubIds(element, id);
    if (screen.isBound()) {
      element.layoutElements();
View Full Code Here

Examples of de.lessvoid.nifty.tools.LinearInterpolator.prepare()

  public LinearInterpolator getInterpolator() {
    LinearInterpolator interpolator = effectValues.toLinearInterpolator();
    if (interpolator == null) {
      return null;
    }
    interpolator.prepare();
    return interpolator;
  }
}
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.utilities.scaling.outlier.MinusLogStandardDeviationScaling.prepare()

          public void run(int k, String kstr) {
            ABOD<DoubleVector> abod = new ABOD<DoubleVector>(k, poly, df);
            OutlierResult abodresult = abod.run(database);
            // Setup scaling
            StandardDeviationScaling scaling = new MinusLogStandardDeviationScaling(null, 1.0);
            scaling.prepare(abodresult);
            writeResult(fout, ids, abodresult, scaling, "ABOD-" + kstr);
            detachResult(database, abodresult);
          }
        });
      }
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.utilities.scaling.outlier.OutlierScalingFunction.prepare()

   * @throws IllegalStateException
   */
  protected ScoreResult computeScore(DBIDs ids, DBIDs outlierIds, OutlierResult or) throws IllegalStateException {
    if(scaling instanceof OutlierScalingFunction) {
      OutlierScalingFunction oscaling = (OutlierScalingFunction) scaling;
      oscaling.prepare(or);
    }

    final ScalingFunction innerScaling;
    // If we have useful (finite) min/max, use these for binning.
    double min = scaling.getMin();
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.utilities.scaling.outlier.StandardDeviationScaling.prepare()

      public void run(int k, String kstr) {
        KNNOutlier<O, D> knn = new KNNOutlier<O, D>(distf, k);
        OutlierResult knnresult = knn.run(database, relation);
        // Setup scaling
        StandardDeviationScaling scaling = new StandardDeviationScaling();
        scaling.prepare(knnresult);
        writeResult(fout, ids, knnresult, scaling, "KNN-" + kstr);
        detachResult(database, knnresult);
      }
    });
    // KNN Weight
View Full Code Here

Examples of de.novanic.eventservice.service.connection.strategy.connector.streaming.StreamingServerConnector.prepare()

            final String theClientId = getClientId(aRequest);
            StreamingServerConnector theStreamingServerConnector = (StreamingServerConnector)theConnectionStrategyServerConnector;
            try {
                //The streaming server connector has to be cloned, because it isn't stateless (a prepare method is required).
                theStreamingServerConnector = (StreamingServerConnector)theStreamingServerConnector.clone();
                theStreamingServerConnector.prepare(aResponse);
                listen(theStreamingServerConnector, theClientId);
            } catch(EventServiceException e) {
                throw new ServletException("Error on streaming events to the client\"" + theClientId + "\"!", e);
            } catch(CloneNotSupportedException e) {
                throw new ServletException("Error on cloning \"" + StreamingServerConnector.class.getName() + "\" for client \"" + theClientId + "\"!", e);
View Full Code Here

Examples of de.sub.goobi.forms.ProzesskopieForm.Prepare()

  protected ProzesskopieForm newProcessFromTemplate(String templateTitle) throws IllegalArgumentException {
    ProzesskopieForm result = new ProzesskopieForm();

    Prozess selectedTemplate = getTemplateByTitle(templateTitle);
    result.setProzessVorlage(selectedTemplate);
    result.Prepare();
    return result;
  }

  /**
   * The function getTemplateByTitle() fetches the first Prozess with
View Full Code Here

Examples of edu.indiana.extreme.xbaya.workflow.proxy.WorkflowContext.prepare()

    context = new GPELWorkflowContext(topic, userName, password);
    wfClient = new GPELWorkflowClient(context, workflow);
    wfClient.init();
    try {
      System.out.println(workflow.getGPELTemplateID());
      context.prepare(wfClient, workflow);
    } catch (GSSException e) {
      throw new RuntimeException(e);
    } catch (URISyntaxException e) {
      throw new RuntimeException(e);
    }
View Full Code Here

Examples of eu.planets_project.pp.plato.bean.PrepareChangesForPersist.prepare()

        em.persist(em.merge(selectedPlan.getAlternativesDefinition()));
        for (SampleObject record : selectedPlan.getSampleRecordsDefinition()
                .getRecords()) {
           
            prep.prepare(record);
           
            if (record.getId() == 0) { // the record has not yet been persisted                               
                String filename = tempDigitalObjects.get((DigitalObject)record);
               
                try {
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.