Package org.jdesktop.core.animation.timing

Examples of org.jdesktop.core.animation.timing.TimingTarget


    if (controller.hasAnimator()) {
      controller.getAnimator().cancel();
      controller.setAnimator(null);
    }
   
    TimingTarget tt = new TimingTargetAdapter() {
      @Override
      public void timingEvent(Animator source, double fraction) {
        double r = to.red - from.red;
        double g = to.green - from.green;
        double b = to.blue - from.blue;
View Full Code Here


      Rectangle now = bounds.getNow();
      final Bounds from = Bounds.fromRectangle(now);
      final Bounds to = Bounds.fromXYWidthHeight(x, y, width, height);
     
      TimingTarget timingTarget = new TimingTargetAdapter() {

        @Override
        public void timingEvent(Animator source, double fraction) {
          int left = (int )Math.round(from.getLeft() + (to.getLeft() - from.getLeft()) * fraction);
          int right = (int )Math.round(from.getRight() + (to.getRight() - from.getRight()) * fraction);
 
View Full Code Here

      }
     
      final RGB from = foreground.getNow();
      final RGB to = new RGB(red, green, blue);
     
      TimingTarget timingTarget = new TimingTargetAdapter() {

        @Override
        public void timingEvent(Animator source, double fraction) {
          int red = (int )Math.round(from.red + (to.red - from.red) * fraction);
          int green = (int )Math.round(from.green + (to.green - from.green) * fraction);
 
View Full Code Here

      }
     
      final RGB from = background.getNow();
      final RGB to = new RGB(red, green, blue);
     
      TimingTarget timingTarget = new TimingTargetAdapter() {

        @Override
        public void timingEvent(Animator source, double fraction) {
          int red = (int )Math.round(from.red + (to.red - from.red) * fraction);
          int green = (int )Math.round(from.green + (to.green - from.green) * fraction);
 
View Full Code Here

    if (item.animator != null) {
      item.animator.cancel();
      item.animator = null;
    }
   
    TimingTarget tt = new TimingTargetAdapter() {
      @Override
      public void timingEvent(Animator source, double fraction) {
        Rectangle bounds = item.getBounds();
        int r = (int )Math.round((to.red - from.red) * fraction);
        int g = (int )Math.round((to.green - from.green) * fraction);
 
View Full Code Here

      controller.getOffsetAnimator().cancel();
      controller.setOffsetAnimator(null);
      return;
    }
   
    TimingTarget timingTarget = new TimingTargetAdapter() {
      private int srcOffset;
      private int destOffset;
     
      @Override
      public void begin(Animator source) {
View Full Code Here

    if (controller.hasBackgroundAnimator()) {
      controller.getBackgroundAnimator().cancel();
      controller.setBackgroundAnimator(null);
    }
   
    TimingTarget timingTarget = new TimingTargetAdapter() {
      @Override
      public void timingEvent(Animator source, double fraction) {
        double r = to.red - from.red;
        double g = to.green - from.green;
        double b = to.blue - from.blue;
View Full Code Here

      }
     
      final Bounds from = Bounds.fromRectangle(getRenderBounds());
      final Bounds to = Bounds.fromXYWidthHeight(x, y, width, height);
     
      TimingTarget timingTarget = new TimingTargetAdapter() {
        @Override
        public void timingEvent(Animator source, double fraction) {
          int left = (int )Math.round(from.getLeft() + (to.getLeft() - from.getLeft()) * fraction);
          int top = (int )Math.round(from.getTop() + (to.getTop() - from.getTop()) * fraction);
          int right = (int )Math.round(from.getRight() + (to.getRight() - from.getRight()) * fraction);
 
View Full Code Here

      }
     
      final RGB from = getRenderForeground();
      final RGB to = new RGB(red, green, blue);
     
      TimingTarget timingTarget = new TimingTargetAdapter() {
        @Override
        public void timingEvent(Animator source, double fraction) {
          int red = (int )Math.round(from.red + (to.red - from.red) * fraction);
          int green = (int )Math.round(from.green + (to.green - from.green) * fraction);
          int blue = (int )Math.round(from.blue + (to.blue - from.blue) * fraction);
 
View Full Code Here

      }
     
      final RGB from = getRenderBackground();
      final RGB to = new RGB(red, green, blue);
     
      TimingTarget timingTarget = new TimingTargetAdapter() {
        @Override
        public void timingEvent(Animator source, double fraction) {
          int red = (int )Math.round(from.red + (to.red - from.red) * fraction);
          int green = (int )Math.round(from.green + (to.green - from.green) * fraction);
          int blue = (int )Math.round(from.blue + (to.blue - from.blue) * fraction);
 
View Full Code Here

TOP

Related Classes of org.jdesktop.core.animation.timing.TimingTarget

Copyright © 2018 www.massapicom. 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.