001 /*
002 * AnimateTimeEval.java
003 *
004 * The Salamander Project - 2D and 3D graphics libraries in Java
005 * Copyright (C) 2004 Mark McKay
006 *
007 * This library is free software; you can redistribute it and/or
008 * modify it under the terms of the GNU Lesser General Public
009 * License as published by the Free Software Foundation; either
010 * version 2.1 of the License, or (at your option) any later version.
011 *
012 * This library is distributed in the hope that it will be useful,
013 * but WITHOUT ANY WARRANTY; without even the implied warranty of
014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015 * Lesser General Public License for more details.
016 *
017 * You should have received a copy of the GNU Lesser General Public
018 * License along with this library; if not, write to the Free Software
019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020 *
021 * Mark McKay can be contacted at mark@kitfox.com. Salamander and other
022 * projects can be found at http://www.kitfox.com
023 *
024 *
025 * Created on September 21, 2004, 1:31 PM
026 */
027
028 package com.kitfox.svg.animation;
029
030 /**
031 *
032 * @author kitfox
033 */
034 public class AnimationTimeEval
035 {
036 /**
037 * Value on [0..1] representing the interpolation value of queried animation
038 * element, or Double.NaN if element does not provide a valid evalutaion
039 */
040 public double interp;
041
042 /**
043 * Number of completed repetitions
044 */
045 public int rep;
046
047 /**
048 * True if this evaluation is in a frozen state; ie, past the end of the
049 * track and held in the "freeze" state.
050 */
051 // public boolean pastEnd;
052
053 /** Creates a new instance of AnimateTimeEval */
054 public AnimationTimeEval()
055 {
056 }
057
058 // public void set(double interp, int rep, boolean pastEnd)
059 public void set(double interp, int rep)
060 {
061 this.interp = interp;
062 this.rep = rep;
063 // this.pastEnd = pastEnd;
064 }
065 }