001 /*
002 * TimeDiscrete.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 * Created on August 15, 2004, 3:33 AM
025 */
026
027 package com.kitfox.svg.animation;
028
029 /**
030 * This is a time that represents a specific number of milliseconds
031 *
032 * @author Mark McKay
033 * @author <a href="mailto:mark@kitfox.com">Mark McKay</a>
034 */
035 public class TimeLookup extends TimeBase
036 {
037 /**
038 * This time can only be resolved in relation to it's parent
039 */
040 private AnimationElement parent;
041
042 /**
043 * Node this lookup acts upon
044 */
045 String node;
046
047 /**
048 * Event to evalutae on this node
049 */
050 String event;
051
052 /**
053 * Optional parameter used by some events
054 */
055 String paramList;
056
057 /** Creates a new instance of TimeDiscrete */
058 public TimeLookup(AnimationElement parent, String node, String event, String paramList)
059 {
060 this.parent = parent;
061 this.node = node;
062 this.event = event;
063 this.paramList = paramList;
064 }
065
066 public double evalTime()
067 {
068 return 0.0;
069 }
070
071 public void setParentElement(AnimationElement ele)
072 {
073 parent = ele;
074 }
075 }