[Patchanim-commit] SF.net SVN: patchanim:[251] trunk/patchanim/src/com/mebigfatguy/patchanim/ Tween
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-12-25 18:00:24
|
Revision: 251
http://patchanim.svn.sourceforge.net/patchanim/?rev=251&view=rev
Author: dbrosius
Date: 2008-12-25 18:00:20 +0000 (Thu, 25 Dec 2008)
Log Message:
-----------
an enum that describes how to tween one patch into another
Added Paths:
-----------
trunk/patchanim/src/com/mebigfatguy/patchanim/TweenStyle.java
Added: trunk/patchanim/src/com/mebigfatguy/patchanim/TweenStyle.java
===================================================================
--- trunk/patchanim/src/com/mebigfatguy/patchanim/TweenStyle.java (rev 0)
+++ trunk/patchanim/src/com/mebigfatguy/patchanim/TweenStyle.java 2008-12-25 18:00:20 UTC (rev 251)
@@ -0,0 +1,46 @@
+/*
+ * patchanim - A bezier surface patch color blend gif builder
+ * Copyright (C) 2008 Dave Brosius
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+package com.mebigfatguy.patchanim;
+
+import java.util.ResourceBundle;
+
+import com.mebigfatguy.patchanim.main.PatchAnimBundle;
+
+/**
+ * denotes the algorithm to use to tween two patches
+ * <ul>
+ * <li><b>Linear</b> Control points are tweened linearly</li>
+ * <li><b>Radial</b> Control points are tweened radially</li>
+ * </ul>
+ */
+public enum TweenStyle {
+ Linear,
+ Radial;
+
+ private static final String TWEEN = "tween.";
+ /**
+ * returns the localized value of the enum
+ * @return the localized display value
+ */
+ @Override
+ public String toString() {
+ ResourceBundle rb = PatchAnimBundle.getBundle();
+ return rb.getString(PatchAnimBundle.ROOT + TWEEN + name().toLowerCase());
+ }
+}
Property changes on: trunk/patchanim/src/com/mebigfatguy/patchanim/TweenStyle.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|