|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbuoy.event.EventSource
buoy.widget.Widget
buoy.widget.WidgetContainer
buoy.widget.BorderContainer
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class buoy.widget.BorderContainer |
|---|
buoy.widget.BorderContainer.Position |
| 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
|
| Fields inherited from class buoy.widget.BorderContainer |
|---|
CENTER, EAST, NORTH, SOUTH, WEST |
| 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. |
buoy.widget.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. |
buoy.widget.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 |
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(buoy.widget.Widget w,
int x,
int y)
Display the popup menu. |
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 buoy.widget.BorderContainer |
|---|
add, add, getChild, getChildCount, getChildLayout, getChildLayout, getChildPosition, getChildren, getComponent, getCornersAreVertical, getDefaultLayout, getPreferredSize, remove, remove, removeAll, setChildLayout, setChildLayout, setCornersAreVertical, setDefaultLayout |
| Methods inherited from class buoy.widget.WidgetContainer |
|---|
isOpaque, setOpaque |
| Methods inherited from class buoy.widget.Widget |
|---|
addEventLink, dispatchEvent, getBackground, getBounds, getCursor, getFont, getMaximumSize, getName, getParent, hasFocus, isEnabled, isFocusable, isVisible, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName, setVisible |
| Methods inherited from class buoy.event.EventSource |
|---|
addEventLink, addEventLink, removeEventLink |
| 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(buoy.widget.Widget w,
int x,
int y)
showPopupMenu in interface PopupMenuManagerpublic buoy.widget.BPopupMenu getPopupMenu()
public java.awt.Dimension getMinimumSize()
getMinimumSize in class buoy.widget.BorderContainerpublic 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 tracksModified(boolean updateScene)
public void repaintGraphs()
public void repaintAll()
public void setScrollPosition(int pos)
public void markerMoved(Marker m,
boolean intermediate)
public void layoutChildren()
layoutChildren in class buoy.widget.BorderContainerpublic 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 EditingWindowpublic ToolPalette getToolPalette()
EditingWindow
getToolPalette in interface EditingWindowpublic void setTool(EditingTool tool)
EditingWindow
setTool in interface EditingWindowpublic void setHelpText(java.lang.String text)
EditingWindow
setHelpText in interface EditingWindowpublic buoy.widget.BFrame getFrame()
EditingWindow
getFrame in interface EditingWindowpublic void updateImage()
EditingWindow
updateImage in interface EditingWindowpublic void updateMenus()
EditingWindow
updateMenus in interface EditingWindowpublic void setUndoRecord(UndoRecord command)
EditingWindow
setUndoRecord in interface EditingWindowpublic void setModified()
EditingWindow
setModified in interface EditingWindowpublic Scene getScene()
EditingWindow
getScene in interface EditingWindowpublic ViewerCanvas getView()
EditingWindow
getView in interface EditingWindow
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||