Examples of Span


Examples of org.apache.stanbol.enhancer.nlp.model.Span

     * over the {@link Sentence}s of an {@link AnalysedText})
     * @return the iterator
     */
    protected Iterator<Span> getIterator(){
        //the end of this section
        final Span end = new SubSetHelperSpan(getEnd());
        return new Iterator<Span>() {
           
            boolean init = false;
            boolean removed = true;
            private Span span = SectionImpl.this;
           
            @Override
            public boolean hasNext() {
                return getNext() != null;
            }
           
            private Span getNext(){
                Span next = context.spans.higherKey(span);
                return next == null || next.compareTo(end) >= 0 ? null : next;
            }
           
            @Override
            public Span next() {
                init = true;
View Full Code Here

Examples of org.apache.uima.caseditor.core.util.Span

    List<AnnotationFS> selection = new ArrayList<AnnotationFS>();

    if (isSomethingSelected()) {
      Point selectedText = getSourceViewer().getTextWidget().getSelectionRange();

      Span selecectedSpan = new Span(selectedText.x, selectedText.y);

      Collection<AnnotationFS> selectedAnnotations = getDocument().getAnnotation(
          getAnnotationMode(), selecectedSpan);

      for (AnnotationFS annotation : selectedAnnotations) {
View Full Code Here

Examples of org.apache.uima.caseditor.editor.util.Span

    List<AnnotationFS> selection = new ArrayList<AnnotationFS>();

    if (isSomethingSelected()) {
      Point selectedText = getSourceViewer().getTextWidget().getSelectionRange();

      Span selecectedSpan = new Span(selectedText.x, selectedText.y);

      Collection<AnnotationFS> selectedAnnotations = getAnnotation(getDocument().getCAS(),
              getAnnotationMode(), selecectedSpan);

      for (AnnotationFS annotation : selectedAnnotations) {
View Full Code Here

Examples of org.appfuse.client.widget.Span

       * displayItem.addBlurHandler(new BlurHandler() { public void
       * onBlur(BlurEvent blurEvent) { displayItem.removeStyleName(
       * "token-input-selected-token-facebook"); } });
       */

      Span span = new Span("x");
      span.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent clickEvent) {
          removeListItem(displayItem, list);
        }
      });

View Full Code Here

Examples of org.axsl.common.value.Span

        /* The next cut of this method should also inspect the FO to see
         * whether the area to be returned ought not to be the footnote
         * or before-float reference area.*/
        this.isNewSpanArea = false;

        Span span = Span.NONE;
        if (fo instanceof Block) {
            span = ((Block) fo).traitSpan(this);
        } else if (fo instanceof BlockContainer) {
            span = ((BlockContainer) fo).traitSpan(this);
        }
View Full Code Here

Examples of org.cloudera.htrace.Span

      if (shouldCloseConnection.get()) return;
      try {
        RequestHeader.Builder builder = RequestHeader.newBuilder();
        builder.setCallId(call.id);
        if (Trace.isTracing()) {
          Span s = Trace.currentSpan();
          builder.setTraceInfo(RPCTInfo.newBuilder().
            setParentId(s.getSpanId()).setTraceId(s.getTraceId()));
        }
        builder.setMethodName(call.md.getName());
        builder.setRequestParam(call.param != null);
        ByteBuffer cellBlock = ipcUtil.buildCellBlock(this.codec, this.compressor, call.cells);
        if (cellBlock != null) {
View Full Code Here

Examples of org.encog.bot.browse.range.Span

   * @param tag
   *            The beginning tag.
   */

  private void loadSpan(final int index, final Tag tag) {
    final Span span = new Span(this.page);
    final String classAttribute = tag.getAttributeValue("class");
    final String idAttribute = tag.getAttributeValue("id");

    span.setIdAttribute(idAttribute);
    span.setClassAttribute(classAttribute);
    span.setBegin(index);
    span.setEnd(findEndTag(index + 1, tag));
    addHierarchyElement(span);
  }
View Full Code Here

Examples of org.gwtbootstrap3.client.ui.html.Span

    public Pull getPull() {
        return pullMixin.getPull();
    }

    private Span newBarIcon() {
        final Span span = new Span();
        span.setStyleName(Styles.ICON_BAR);
        return span;
    }
View Full Code Here

Examples of org.htmlparser.tags.Span

        super(filter, MATCH_ID);
    }

    public Tag createTag(TagData tagData, CompositeTagData compositeTagData)
    {
        return new Span(tagData, compositeTagData);
    }
View Full Code Here

Examples of org.htrace.Span

  /**
   * Unload the truck of its {@link Span} payload. The internal reference is released.
   */
  Span unloadSpanPayload() {
    Span ret = this.span;
    this.span = null;
    return ret;
  }
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.