public class MotionPathEditor extends AbstractEditor<Point2D,ControlPointEditor>
myChildren, myConsumers, myParent, myRecursiveConsumers, mySelectedIndex, mySharedHistory, myStates, PROP_NAME| Constructor and Description |
|---|
MotionPathEditor(MotionPath mp,
HistoryStack hist) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
addChildBase(Object invoker,
org.jflux.api.common.rk.utils.RKSource<Point2D> p,
int i)
Called when a child is requested to be added.
|
protected ControlPointEditor |
createChildController(Point2D point)
Called when a new Controller needs to be created
|
int |
dragSelectedPoint(Object invoker,
long time,
double pos,
HistoryStack hist) |
void |
endPathChange(boolean quiet,
HistoryStack hist) |
CompiledPath |
getCompiledPath(long start,
long end,
long stepLength) |
List<Point2D> |
getControlPoints() |
double |
getEnd() |
List<Point2D> |
getInterpolatedPoints() |
InterpolatorFactory |
getInterpolatorFactory() |
HistoryAction |
getLastDragHistoryAction() |
protected MotionPath |
getMotionPath() |
String |
getName() |
double |
getStart() |
MotionPath |
getTempPath() |
protected int |
insertChildControllerBase(ControlPointEditor controller,
int i)
Called when inserting an existing ChildController.
|
boolean |
isChildUIController()
This should return true if ChildController extends AbstractEditor.
|
void |
movePath(Object invoker,
long timeOffset,
double posOffset,
HistoryStack hist) |
int |
movePoint(Object invoker,
int i,
long time,
double pos,
HistoryStack hist) |
protected Point2D |
removeChild(Object invoker,
int i)
Called when the child with the given index is requested to be removed.
|
void |
scalePath(Object invoker,
double scale,
long refTime,
HistoryStack hist) |
void |
setInterpolatorFactory(Object invoker,
InterpolatorFactory factory,
HistoryStack hist) |
void |
setName(String name) |
void |
setPoints(Object invoker,
List<Point2D> points,
HistoryStack hist) |
void |
setState(Object invoker,
EditState state,
boolean value,
HistoryStack hist) |
int |
size() |
void |
startDragging(boolean quiet,
int index) |
void |
startPathChange() |
boolean |
touchesControlPoints() |
addChild, addConsumer, addRecursiveToChild, afterAddChild, clearConsumers, deselect, fireItemAddedEvent, fireItemAddedEvent, fireItemMovedEvent, fireItemMovedEvent, fireItemRemovedEvent, fireItemRemovedEvent, fireSelectionChangeEvent, fireSelectionChangeEvent, fireStateChangedEvent, fireStateChangedEvent, fireStructureChangedEvent, fireStructureChangedEvent, getChild, getChildren, getInheritedFlags, getParent, getRestrictiveFlags, getSelected, getSelectedIndex, getSharedHistory, getStateFlags, getStates, hasFlag, insertChild, insertChildController, isLocked, recursiveAdd, recursiveRemove, removeChild, removeChildByIndex, removeConsumer, removeFromConsumerList, removeFromRecursiveList, select, setChildren, setParent, setSelectedaddPropertyChangeListener, addPropertyChangeListener, clearAllListeners, clearListeners, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListenerpublic MotionPathEditor(MotionPath mp, HistoryStack hist)
mp - properties - hist - public String getName()
getName in class AbstractEditor<Point2D,ControlPointEditor>public void setName(String name)
setName in class AbstractEditor<Point2D,ControlPointEditor>name - protected ControlPointEditor createChildController(Point2D point)
AbstractEditorcreateChildController in class AbstractEditor<Point2D,ControlPointEditor>point - the ChildBase for the requested ChildControllerpublic boolean isChildUIController()
AbstractEditorisChildUIController in class AbstractEditor<Point2D,ControlPointEditor>protected int addChildBase(Object invoker, org.jflux.api.common.rk.utils.RKSource<Point2D> p, int i)
AbstractEditoraddChildBase in class AbstractEditor<Point2D,ControlPointEditor>p - the ChildBase to be addedprotected int insertChildControllerBase(ControlPointEditor controller, int i)
AbstractEditorinsertChildControllerBase in class AbstractEditor<Point2D,ControlPointEditor>controller - ChildController that is being addedi - the index the child should be added atpublic int size()
protected Point2D removeChild(Object invoker, int i)
AbstractEditorremoveChild in class AbstractEditor<Point2D,ControlPointEditor>i - the index of the child to removepublic int dragSelectedPoint(Object invoker, long time, double pos, HistoryStack hist)
invoker - time - pos - public int movePoint(Object invoker, int i, long time, double pos, HistoryStack hist)
invoker - i - time - pos - public MotionPath getTempPath()
public void startPathChange()
public void endPathChange(boolean quiet,
HistoryStack hist)
public void movePath(Object invoker, long timeOffset, double posOffset, HistoryStack hist)
invoker - timeOffset - posOffset - public void scalePath(Object invoker, double scale, long refTime, HistoryStack hist)
invoker - scale - refTime - public void setPoints(Object invoker, List<Point2D> points, HistoryStack hist)
invoker - points - public void startDragging(boolean quiet,
int index)
public HistoryAction getLastDragHistoryAction()
public CompiledPath getCompiledPath(long start, long end, long stepLength)
start - end - stepLength - public InterpolatorFactory getInterpolatorFactory()
public void setInterpolatorFactory(Object invoker, InterpolatorFactory factory, HistoryStack hist)
invoker - factory - public double getEnd()
public double getStart()
public void setState(Object invoker, EditState state, boolean value, HistoryStack hist)
setState in class AbstractEditor<Point2D,ControlPointEditor>invoker - state - value - protected MotionPath getMotionPath()
public boolean touchesControlPoints()
Copyright © 2011-2016. All Rights Reserved.