|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBorderContainer
artofillusion.animation.Score
public class Score
This is a Widget which displays all the tracks for objects in a scene, and shows where their keyframes are.
Field Summary | |
---|---|
static int |
MULTI_GRAPH_MODE
|
static int |
SCROLL_AND_SCALE
|
static int |
SELECT_AND_MOVE
|
static int |
SINGLE_GRAPH_MODE
|
static int |
TRACKS_MODE
|
Constructor Summary | |
---|---|
Score(LayoutWindow win)
|
Method Summary | |
---|---|
void |
addSelectedKeyframes(SelectionInfo[] newsel)
Add a set of keyframes to the selection. |
void |
addTrack(java.lang.Object[] obj,
java.lang.Class trackClass,
java.lang.Object[] extraArgs,
boolean deselectOthers)
Add a track to the specified objects. |
boolean |
confirmClose()
EditingWindow methods. |
void |
deleteSelectedKeyframes()
Delete all selected keyframes. |
void |
deleteSelectedTracks()
Delete the selected tracks. |
void |
duplicateSelectedTracks()
Duplicate the selected tracks. |
void |
editSelectedKeyframe()
Edit the selected keyframe. |
void |
editSelectedTrack()
Allow the user to edit the currently selected track. |
void |
finishEditingTrack(Track tr)
This method should be called when a track is done being edited. |
ViewerCanvas[] |
getAllViews()
Get all ViewerCanvases contained in this window. |
boolean |
getAnimating()
Get whether the display is currently being animated. |
BFrame |
getFrame()
Get the BFrame for this EditingWindow: either the EditingWindow itself if it is a BFrame, or its parent if it is a BDialog. |
java.awt.Dimension |
getMinimumSize()
Allow the score to be fully hidden. |
double |
getPlaybackSpeed()
Get the playback speed. |
BPopupMenu |
getPopupMenu()
Get the popup menu for the score. |
double |
getScale()
Get the number of pixels per unit time. |
Scene |
getScene()
Get the Scene which is being edited in this window. |
SelectionInfo[] |
getSelectedKeyframes()
Get the currently selected keyframes. |
Track[] |
getSelectedTracks()
Get the currently selected tracks. |
double |
getStartTime()
Get the starting time to display. |
ToolPalette |
getToolPalette()
Get the ToolPalette for this window. |
ViewerCanvas |
getView()
Get the ViewerCanvas in which editing is taking place. |
boolean |
isKeyframeSelected(Keyframe k)
Determine whether a particular keyframe is selected. |
boolean |
isKeyframeSelected(Keyframe k,
int value)
Determine whether the handle for a particular value of a keyframe is selected. |
void |
keyframeModifiedTracks()
Add a keyframe to the tracks of selected objects which have been modified. |
void |
keyframeSelectedTracks()
Add a keyframe to each selected track, based on the current state of the scene. |
void |
layoutChildren()
Make sure the scrollbar gets adjusted when the score is resized. |
void |
markerMoved(Marker m,
boolean intermediate)
This is called when a time marker has been moved. |
void |
rebuildList()
Rebuild the TreeList, attempting as much as possible to preserve its current state. |
void |
removeSelectedKeyframe(Keyframe key)
Remove a keyframe from the selection. |
void |
repaintAll()
Repaint all of the child Widgets. |
void |
repaintGraphs()
Repaint all of the graphs. |
void |
selectAllTracks()
Select all tracks of selected objects. |
void |
setHelpText(java.lang.String text)
Set the text to display at the bottom of the window. |
void |
setModified()
Register that the scene or object contained in the window has been modified. |
void |
setPlaybackSeed(double speed)
Set the playback speed. |
void |
setScale(double s)
Set the number of pixels per unit time. |
void |
setScrollPosition(int pos)
Scroll the list and the tracks together. |
void |
setSelectedKeyframes(SelectionInfo[] sel)
Set the currently selected keyframes. |
void |
setStartTime(double time)
Set the starting time to display. |
void |
setTime(double time)
Set the current time. |
void |
setTool(EditingTool tool)
Set the currently selected EditingTool. |
void |
setTracksEnabled(boolean enable)
Enable or disable all selected tracks. |
void |
setUndoRecord(UndoRecord command)
Set the current UndoRecord for this EditingWindow. |
void |
showPopupMenu(Widget w,
int x,
int y)
Display the popup menu. |
void |
startAnimating()
Start animating the display. |
void |
stopAnimating()
Stop animating the display. |
void |
tracksModified(boolean updateScene)
This is called whenever a track is modified. |
void |
updateImage()
Update the image displayed in this window. |
void |
updateMenus()
Update which menus are enabled. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TRACKS_MODE
public static final int SINGLE_GRAPH_MODE
public static final int MULTI_GRAPH_MODE
public static final int SELECT_AND_MOVE
public static final int SCROLL_AND_SCALE
Constructor Detail |
---|
public Score(LayoutWindow win)
Method Detail |
---|
public void showPopupMenu(Widget w, int x, int y)
showPopupMenu
in interface PopupMenuManager
public BPopupMenu getPopupMenu()
public java.awt.Dimension getMinimumSize()
public Track[] getSelectedTracks()
public SelectionInfo[] getSelectedKeyframes()
public void setSelectedKeyframes(SelectionInfo[] sel)
public void addSelectedKeyframes(SelectionInfo[] newsel)
public void removeSelectedKeyframe(Keyframe key)
public boolean isKeyframeSelected(Keyframe k)
public boolean isKeyframeSelected(Keyframe k, int value)
public void rebuildList()
public double getStartTime()
public void setStartTime(double time)
public double getScale()
public void setScale(double s)
public void setTime(double time)
public void startAnimating()
public void stopAnimating()
public boolean getAnimating()
public double getPlaybackSpeed()
public void setPlaybackSeed(double speed)
public void tracksModified(boolean updateScene)
public void repaintGraphs()
public void repaintAll()
public void setScrollPosition(int pos)
public void markerMoved(Marker m, boolean intermediate)
public void layoutChildren()
public void editSelectedTrack()
public void finishEditingTrack(Track tr)
public void setTracksEnabled(boolean enable)
public void keyframeSelectedTracks()
public void keyframeModifiedTracks()
public void duplicateSelectedTracks()
public void deleteSelectedTracks()
public void selectAllTracks()
public void addTrack(java.lang.Object[] obj, java.lang.Class trackClass, java.lang.Object[] extraArgs, boolean deselectOthers)
public void editSelectedKeyframe()
public void deleteSelectedKeyframes()
public boolean confirmClose()
confirmClose
in interface EditingWindow
public ToolPalette getToolPalette()
EditingWindow
getToolPalette
in interface EditingWindow
public void setTool(EditingTool tool)
EditingWindow
setTool
in interface EditingWindow
public void setHelpText(java.lang.String text)
EditingWindow
setHelpText
in interface EditingWindow
public BFrame getFrame()
EditingWindow
getFrame
in interface EditingWindow
public void updateImage()
EditingWindow
updateImage
in interface EditingWindow
public void updateMenus()
EditingWindow
updateMenus
in interface EditingWindow
public void setUndoRecord(UndoRecord command)
EditingWindow
setUndoRecord
in interface EditingWindow
public void setModified()
EditingWindow
setModified
in interface EditingWindow
public Scene getScene()
EditingWindow
getScene
in interface EditingWindow
public ViewerCanvas getView()
EditingWindow
getView
in interface EditingWindow
public ViewerCanvas[] getAllViews()
EditingWindow
getAllViews
in interface EditingWindow
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |