@Override public void run() { Collections.addAll(surface.getXAxes(), xAxis); Collections.addAll(surface.getYAxes(), yAxis); Collections.addAll(surface.getRenderableSeries(), lineRs1, lineRs2); Collections.addAll(surface.getChartModifiers(), sciChartBuilder.newModifierGroup().withRolloverModifier().build().build()); sciChartBuilder.newAnimator(lineRs1).withSweepTransformation().withInterpolator(new DecelerateInterpolator()).withDuration(3000).withStartDelay(350).start(); sciChartBuilder.newAnimator(lineRs2).withSweepTransformation().withInterpolator(new DecelerateInterpolator()).withDuration(3000).withStartDelay(350).start(); } });
@Override public void run() { Collections.addAll(surface.getXAxes(), xAxis); Collections.addAll(surface.getYAxes(), yAxis); Collections.addAll(surface.getRenderableSeries(), lineRs1, lineRs2); Collections.addAll(surface.getChartModifiers(), sciChartBuilder.newModifierGroup() .withRolloverModifier().build() .withCursorModifier().withIsEnabled(false).build() .withTooltipModifier().withIsEnabled(false).build() .build()); ModifierGroup modifierGroup = (ModifierGroup) surface.getChartModifiers().get(0); rolloverModifier = (RolloverModifier) modifierGroup.getChildModifiers().get(0); cursorModifier = (CursorModifier) modifierGroup.getChildModifiers().get(1); tooltipModifier = (TooltipModifier) modifierGroup.getChildModifiers().get(2); } });
@Override public void run() { Collections.addAll(surface.getXAxes(), xAxis); Collections.addAll(surface.getYAxes(), yAxis); Collections.addAll(surface.getRenderableSeries(), line); Collections.addAll(surface.getChartModifiers(), sciChartBuilder.newModifierGroup() .withMotionEventsGroup("ModifiersSharedEventsGroup").withReceiveHandledEvents(true) .withZoomExtentsModifier().build() .withPinchZoomModifier().build() .withRolloverModifier().withReceiveHandledEvents(true).build() .withXAxisDragModifier().withReceiveHandledEvents(true).build() .withYAxisDragModifier().withReceiveHandledEvents(true).build() .build()); surface.zoomExtents(); sciChartBuilder.newAnimator(line).withSweepTransformation().withInterpolator(new DecelerateInterpolator()).withDuration(3000).withStartDelay(350).start(); } });