Examples of Selection


Examples of ket.Selection

    // TODO: Re-join wrapped lines, 'text... \'?
    if (lines.length==1) {
      // Single line.
      Argument arg = ArgumentParser.parseArgument(string, knownArguments, clipboard, mathCollection);
      if (arg!=null) {
        Selection selection = mathCollection.getSelection();
        Equation appendedEquation = new Equation(arg);
        selection.appendEquation(appendedEquation);
      }
    } else {
      // Multiple lines.
      for (String next : lines) {
        Equation e = mathCollection.processLine(next);
        if (e!=null) {
          Selection selection = mathCollection.getSelection();
          Equation appendedEquation = new Equation(e.getRoot());
          selection.appendEquation(appendedEquation);
        }
      }
    }
    ketPanel.updateAndRepaint();
    return true;
View Full Code Here

Examples of musicwriter.donnees.Selection

     * @return la sélection qui est prise par l'esquisse au
     */
    protected Selection traiterSelectionPolygoneStyloEsquisse(StyloEsquisse styloEsquisse)
    {
        if(styloEsquisse == null)
            return new Selection();

        if(styloEsquisse.isPolygon())
        {
            return getPartitionVue()
                    .getSelectionPolygone(styloEsquisse.getPolygon());
           
        }
        else
            return new Selection();
    }
View Full Code Here

Examples of nl.nanoworks.nanograph.interaction.selection.Selection

 
//    g2d.setRenderingHint(
//      RenderingHints.KEY_ANTIALIASING,
//      RenderingHints.VALUE_ANTIALIAS_ON);
   
    Selection selection = component.getInteractionManager().getSelection();

    g2d.setColor(Color.white);
    g2d.fillRect(0, 0, component.getComponentWidth(), component.getComponentHeight());
   
    if(background != null)
    {
        background.drawBackground(g2d, component.getComponentWidth(), component.getComponentHeight());
    }
   
//    if(logo != null)
//    {
//      g.drawImage(logo,10,0,null);
//    }
//   
    Object node = null, type = null
   
    for (int t = 0; t < model.getNodeCount(); t++)
    {
      node = model.getNode(t);
      for(int r = 0; r < model.getEdgeTypeCount(node); r++)
      {
        type = model.getEdgeType(r);
     
        for (int s = 0; s < model.getEdgeCount(node, type); s++)
        {
         
          defaultEdgeRenderer.render(
            g2d,
            model.getEdge(node, type, s),
            getNodeRenderer(node).getMountingPoint(getNodeRenderer(node).getNodeBounds(g2d, node, model.getLocation(node)),
                model.getLocation(model.getDestinationNode(node, type, s))),
            getNodeRenderer(model.getDestinationNode(node, type, s)).getMountingPoint(
                getNodeRenderer(model.getDestinationNode(node, type, s)).getNodeBounds(g2d, model.getDestinationNode(node, type, s), model.getLocation(model.getDestinationNode(node, type, s))),
                model.getLocation(node)));
        }
      }
    }
   
    for (int t = 0; t < model.getNodeCount(); t++)
    {
      node = model.getNode(t);
      if(selection.contains(node))
      {
          getNodeRenderer(node).renderSelected(
            g2d,
            node,
            model.getLocation(node));
View Full Code Here

Examples of nl.nanoworks.nanograph.selection.Selection

 
    //g2d.setRenderingHint(
    //  RenderingHints.KEY_ANTIALIASING,
    //  RenderingHints.VALUE_ANTIALIAS_ON);
   
    Selection selection = manager.getSelection();

    g2d.setColor(Color.white);
    g2d.fillRect(0, 0, (int)getSize().getWidth(), (int)getSize().getHeight());
   
    if(logo != null)
    {
      g.drawImage(logo,10,0,null);
    }
   
    Object node = null, type = null
   
    for (int t = 0; t < graph.getNodeCount(); t++)
    {
      node = graph.getNode(t);
      for(int r = 0; r < graph.getEdgeTypeCount(node); r++)
      {
        type = graph.getEdgeType(r);
     
        for (int s = 0; s < graph.getEdgeCount(node, type); s++)
        {
         
          defaultEdgeRenderer.render(
            g2d,
            graph.getEdge(node, type, s),
            getNodeRenderer(node).getMountingPoint(getNodeRenderer(node).getNodeBounds(g2d, node, graph.getLocation(node)),
                graph.getLocation(graph.getDestinationNode(node, type, s))),
            getNodeRenderer(graph.getDestinationNode(node, type, s)).getMountingPoint(
                getNodeRenderer(graph.getDestinationNode(node, type, s)).getNodeBounds(g2d, graph.getDestinationNode(node, type, s), graph.getLocation(graph.getDestinationNode(node, type, s))),
                graph.getLocation(node)));
        }
      }
    }
   
    for (int t = 0; t < graph.getNodeCount(); t++)
    {
      node = graph.getNode(t);
      if(selection.contains(node))
      {
          getNodeRenderer(node).renderSelected(
            g2d,
            node,
            graph.getLocation(node));
View Full Code Here

Examples of org.apache.cassandra.cql3.selection.Selection

    private static ResultSet buildCasFailureResultSet(ByteBuffer key, ColumnFamily cf, Iterable<ColumnDefinition> columnsWithConditions, boolean isBatch, QueryOptions options)
    throws InvalidRequestException
    {
        CFMetaData cfm = cf.metadata();
        Selection selection;
        if (columnsWithConditions == null)
        {
            selection = Selection.wildcard(cfm);
        }
        else
        {
            // We can have multiple conditions on the same columns (for collections) so use a set
            // to avoid duplicate, but preserve the order just to it follows the order of IF in the query in general
            Set<ColumnDefinition> defs = new LinkedHashSet<>();
            // Adding the partition key for batches to disambiguate if the conditions span multipe rows (we don't add them outside
            // of batches for compatibility sakes).
            if (isBatch)
            {
                defs.addAll(cfm.partitionKeyColumns());
                defs.addAll(cfm.clusteringColumns());
            }
            for (ColumnDefinition def : columnsWithConditions)
                defs.add(def);
            selection = Selection.forColumns(defs);
        }

        long now = System.currentTimeMillis();
        Selection.ResultSetBuilder builder = selection.resultSetBuilder(now);
        SelectStatement.forSelection(cfm, selection).processColumnFamily(key, cf, options, now, builder);

        return builder.build();
    }
View Full Code Here

Examples of org.apache.tajo.algebra.Selection

      plan = planner.createPlan(session, block);
    } catch (PlanningException e) {
      e.printStackTrace();
    }

    Selection selection = plan.getRootBlock().getSingletonExpr(OpType.Filter);
    return planner.getExprAnnotator().createEvalNode(plan, plan.getRootBlock(), selection.getQual());
  }
View Full Code Here

Examples of org.apache.wicket.extensions.markup.html.form.palette.component.Selection

   *
   * @return selected items component
   */
  protected Component newSelectionComponent()
  {
    return new Selection("selection", this)
    {
      private static final long serialVersionUID = 1L;

      protected Map getAdditionalAttributes(Object choice)
      {
View Full Code Here

Examples of org.eclipse.php.internal.core.corext.dom.Selection

      ISourceModule typeRoot) {
    try {
      Program root = getAST(typeRoot);
      if (root == null)
        return oldSourceRange;
      Selection selection = Selection.createFromStartLength(
          oldSourceRange.getOffset(), oldSourceRange.getLength());
      SelectionAnalyzer selAnalyzer = new SelectionAnalyzer(selection,
          true);
      root.accept(selAnalyzer);
      return internalGetNewSelectionRange(oldSourceRange, typeRoot,
View Full Code Here

Examples of org.gjt.sp.jedit.textarea.Selection

    {
      buffer.readLock();

      for(int i = 0; i < selection.length; i++)
      {
        Selection s = selection[i];
        if(s instanceof Selection.Rect)
        {
          for(int j = s.getStartLine();
            j <= s.getEndLine(); j++)
          {
            resultCount += doHyperSearch(buffer,
              s.getStart(buffer,j),
              s.getEnd(buffer,j));
          }
        }
        else
        {
          resultCount += doHyperSearch(buffer,
            s.getStart(),s.getEnd());
        }
      }
    }
    finally
    {
View Full Code Here

Examples of org.graphstream.ui.view.Selection

  // Selection

  public void beginSelectionAt(double x1, double y1) {
    if (selection == null)
      selection = new Selection();

    selection.x1 = x1;
    selection.y1 = y1;
    selection.x2 = x1;
    selection.y2 = y1;
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.