Examples of Timeline


Examples of org.pushingpixels.trident.Timeline

                  list, ColorSchemeAssociationKind.HIGHLIGHT,
                  prevState);
        }
      }

      Timeline runningTimeline = ui.getRunningTimeline(index);
      Color color = SubstanceColorUtilities
          .getInterpolatedForegroundColor(list, index, scheme, state,
              prevScheme, prevState, runningTimeline);

      // System.out.println("[row " + index + "] - " + prevState.name()
View Full Code Here

Examples of org.pushingpixels.trident.Timeline

        // }
      }
      Component compForSchemeQuery = (index == -1) ? combo : list;
      // use highlight color scheme for selected and focused
      // elements in the drop down list
      Timeline runningTimeline = listUI.getRunningTimeline(index);
      boolean toUseHighlightKindForCurrState = (index >= 0)
          && ((runningTimeline != null)
              || state.isKindActive(FadeKind.ROLLOVER) || state
              .isKindActive(FadeKind.SELECTION));
      boolean toUseHighlightKindForPrevState = (index >= 0)
View Full Code Here

Examples of org.pushingpixels.trident.Timeline

   */
  private RootPaneDefaultButtonTracker(JButton jbutton) {
    // Create weak reference.
    this.buttonRef = new WeakReference<JButton>(jbutton);
    // Create coalesced timer.
    this.timeline = new Timeline(jbutton);
    this.timeline.addCallback(this);
    // Store event handler and initial cycle count.
    RootPaneDefaultButtonTracker.trackers.put(jbutton, this);
  }
View Full Code Here

Examples of org.pushingpixels.trident.Timeline

    }
    this.timelineMap.clear();
  }

  public synchronized Timeline getPlayingTimeline(Comparable<T> id) {
    Timeline timeline = this.timelineMap.get(id);
    if (timeline == null)
      return null;
    TimelineState state = timeline.getState();
    if ((state == TimelineState.PLAYING_FORWARD)
        || (state == TimelineState.PLAYING_REVERSE)) {
      return timeline;
    }
    return null;
View Full Code Here

Examples of org.pushingpixels.trident.Timeline

      return this.timelineMap.get(id);

    if (creator == null)
      return null;

    final Timeline timeline = creator.create();
    timeline.addCallback(new TimelineCallbackAdapter() {
      @Override
      public void onTimelineStateChanged(TimelineState oldState,
          TimelineState newState, float durationFraction,
          float timelinePosition) {
        // System.out.println("Tracked timeline went from " + oldState
View Full Code Here

Examples of org.pushingpixels.trident.Timeline

    // System.out.println("PREV:" + this.prevState.name() + ", CURR:"
    // + this.currState.name() + ", NEW:" + newState.name());

    if (this.transitionTimeline != null)
      this.transitionTimeline.abort();
    this.transitionTimeline = new Timeline(this);
    this.transitionTimeline.addCallback(new SwingRepaintCallback(
        this.component));
    AnimationConfigurationManager.getInstance().configureTimeline(
        this.transitionTimeline);
    long fullDuration = this.transitionTimeline.getDuration();
View Full Code Here

Examples of org.qi4j.library.scheduler.timeline.Timeline

            atMost( sleepMillis + 5000, MILLISECONDS ).
            until( taskOutput( taskIdentity ), equalTo( BAR ) );

        try( UnitOfWork uow = module.newUnitOfWork( usecase ) )
        {
            Timeline timeline = module.findService( Timeline.class ).get();
            DateTime now = new DateTime();

            // Queries returning past records
            assertThat( count( timeline.getLastRecords( 5 ) ),
                        is( 2L ) );
            assertThat( count( timeline.getRecords( start.getMillis(), now.getMillis() ) ),
                        is( 2L ) );

            // Queries returning future records
            assertThat( count( timeline.getNextRecords( 4 ) ),
                        is( 4L ) );
            assertThat( count( timeline.getRecords( now.getMillis() + 100, now.plusMinutes( 5 ).getMillis() ) ),
                        is( 5L ) );

            // Queries returning mixed past and future records
            assertThat( count( timeline.getRecords( start.getMillis(), now.plusMinutes( 5 ).getMillis() ) ),
                        is( 7L ) );
        }
    }
View Full Code Here

Examples of org.radargun.reporting.Timeline

               if (threads[i] != null) {
                  stats.add(threads[i].getStatsSnapshot(true));
               }
            }
         }
         Timeline timeline = slaveState.getTimeline();
         long now = System.currentTimeMillis();
         long cacheSize = sizeThread.getAndResetSize();
         timeline.addValue(CACHE_SIZE, new Timeline.Value(now, cacheSize));
         if (stats.isEmpty()) {
            // add zero for all operations we've already reported
            for (String valueCategory : timeline.getValueCategories()) {
               if (valueCategory.endsWith(" Throughput")) {
                  timeline.addValue(valueCategory, new Timeline.Value(now, 0));
               }
            }
         } else {
            Statistics aggregated = stats.get(0).copy();
            for (int i = 1; i < stats.size(); ++i) {
               aggregated.merge(stats.get(i));
            }
            for (Map.Entry<String, OperationStats> entry : aggregated.getOperationsStats().entrySet()) {
               Throughput throughput = entry.getValue().getRepresentation(Throughput.class, stats.size(), TimeUnit.MILLISECONDS.toNanos(aggregated.getEnd() - aggregated.getBegin()));
               if (throughput != null && (throughput.actual != 0 || timeline.getValues(entry.getKey() + " Throughput") != null)) {
                  timeline.addValue(entry.getKey() + " Throughput", new Timeline.Value(now, throughput.actual));
               }
            }
         }

         log.trace("Adding iteration " + BackgroundOpsManager.this.stats.size() + ": " + stats);
View Full Code Here

Examples of water.api.TimelineHandler.Timeline

    @Override public    String bytes() { return data;}
    @Override public    String toString() { return "I_O('" + ioFlavor + "')"; }
  } // IOEvent

  @Override public Timeline createImpl() {
    return new Timeline();
  }
View Full Code Here

Examples of weibo4j.Timeline

public class GetRepostDaily {
  public static void main(String[] args) {
    String access_token = args[0];
    Weibo weibo = new Weibo();
    weibo.setToken(access_token);
    Timeline tm = new Timeline();
    try {
      JSONArray status = tm.getRepostDaily();
      Log.logInfo(status.toString());

    } catch (WeiboException e) {
      e.printStackTrace();
    }
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.