org.robokind.api.animation.editor.history
Class HistoryHelper
java.lang.Object
org.robokind.api.animation.editor.history.HistoryHelper
public class HistoryHelper
- extends Object
- Author:
- Matthew Stevenson
|
Method Summary |
static
|
addChild(String label,
AbstractEditor<B,C> controller,
C child,
int i)
|
static HistoryAction |
changeColor(ChannelEditor controller,
Color cur,
Color prev)
|
static HistoryAction |
changeInterpolationFactory(MotionPathEditor controller,
InterpolatorFactory curFactory,
InterpolatorFactory prevFactory)
|
static HistoryAction |
moveMotionPath(MotionPathEditor controller,
List<Point2D> prevPoints,
List<Point2D> newPoints)
|
static HistoryAction |
movePoint(MotionPathEditor controller,
int curI,
long curTime,
double curPos,
int prevI,
long prevTime,
double prevPos)
|
static
|
removeChild(String label,
AbstractEditor<B,C> controller,
C child,
int i)
|
static HistoryAction |
scaleMotionPath(MotionPathEditor controller,
List<Point2D> prevPoints,
List<Point2D> newPoints)
|
static HistoryAction |
setState(AbstractEditor controller,
EditState state,
boolean val)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HistoryHelper
public HistoryHelper()
setState
public static HistoryAction setState(AbstractEditor controller,
EditState state,
boolean val)
- Parameters:
controller - state - val -
- Returns:
removeChild
public static <B,C> HistoryAction removeChild(String label,
AbstractEditor<B,C> controller,
C child,
int i)
- Type Parameters:
B - C - - Parameters:
label - controller - child - i -
- Returns:
addChild
public static <B,C> HistoryAction addChild(String label,
AbstractEditor<B,C> controller,
C child,
int i)
- Type Parameters:
B - C - - Parameters:
label - controller - child - i -
- Returns:
changeColor
public static HistoryAction changeColor(ChannelEditor controller,
Color cur,
Color prev)
- Parameters:
controller - cur - prev -
- Returns:
changeInterpolationFactory
public static HistoryAction changeInterpolationFactory(MotionPathEditor controller,
InterpolatorFactory curFactory,
InterpolatorFactory prevFactory)
- Parameters:
controller - curFactory - prevFactory -
- Returns:
scaleMotionPath
public static HistoryAction scaleMotionPath(MotionPathEditor controller,
List<Point2D> prevPoints,
List<Point2D> newPoints)
- Parameters:
controller - prevPoints - newPoints -
- Returns:
moveMotionPath
public static HistoryAction moveMotionPath(MotionPathEditor controller,
List<Point2D> prevPoints,
List<Point2D> newPoints)
- Parameters:
controller - prevPoints - newPoints -
- Returns:
movePoint
public static HistoryAction movePoint(MotionPathEditor controller,
int curI,
long curTime,
double curPos,
int prevI,
long prevTime,
double prevPos)
- Parameters:
controller - curI - curTime - curPos - prevI - prevTime - prevPos -
- Returns:
Copyright © 2011-2012. All Rights Reserved.