artofillusion.animation
Class TrackGraph

java.lang.Object
  extended by CustomWidget
      extended by artofillusion.animation.TrackGraph
All Implemented Interfaces:
TrackDisplay

public class TrackGraph
extends CustomWidget
implements TrackDisplay

This is a graph used for displaying and editing one or more Track's keyframe values.


Field Summary
static int HANDLE_SIZE
           
static java.awt.Color[] LIGHT_LINE_COLOR
           
static java.awt.Color[] LINE_COLOR
           
static java.awt.Color SELECTED_KEY_COLOR
           
static java.awt.Color SELECTED_VALUE_COLOR
           
static int TICK_SIZE
           
 
Constructor Summary
TrackGraph(LayoutWindow win, Score sc, TimeAxis ta)
          Create a track graph for one or more quantities which can take on any value.
 
Method Summary
 void addMarker(Marker m)
          Add a marker to the display.
 VerticalAxis getAxis()
          Get the vertical axis for this graph.
 void selectionChanged()
          Update the flags for which keyframes are selected.
 void setMode(int m)
          Set the mode (select-and-move or scroll-and-scale) for this display.
 void setScale(double s)
          Set the number of pixels per unit time.
 void setStartTime(double time)
          Set the starting time to display.
 void setSubdivisions(int s)
          Set the number of subdivisions per unit time.
 void setTracks(Track[] t)
          Set the list of tracks to display on this graph.
 void setYOffset(int offset)
          This method is required by the TrackDisplay interface.
 void showLineAtBottom(boolean show)
          Set whether a line should be draw along the bottom edge.
 void tracksModified()
          This should be called whenever a track is modified, to update the display.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HANDLE_SIZE

public static final int HANDLE_SIZE
See Also:
Constant Field Values

TICK_SIZE

public static final int TICK_SIZE
See Also:
Constant Field Values

LINE_COLOR

public static final java.awt.Color[] LINE_COLOR

LIGHT_LINE_COLOR

public static final java.awt.Color[] LIGHT_LINE_COLOR

SELECTED_VALUE_COLOR

public static final java.awt.Color SELECTED_VALUE_COLOR

SELECTED_KEY_COLOR

public static final java.awt.Color SELECTED_KEY_COLOR
Constructor Detail

TrackGraph

public TrackGraph(LayoutWindow win,
                  Score sc,
                  TimeAxis ta)
Create a track graph for one or more quantities which can take on any value.

Method Detail

setStartTime

public void setStartTime(double time)
Set the starting time to display.

Specified by:
setStartTime in interface TrackDisplay

setScale

public void setScale(double s)
Set the number of pixels per unit time.

Specified by:
setScale in interface TrackDisplay

setSubdivisions

public void setSubdivisions(int s)
Set the number of subdivisions per unit time.

Specified by:
setSubdivisions in interface TrackDisplay

setYOffset

public void setYOffset(int offset)
This method is required by the TrackDisplay interface. It does nothing in this case.

Specified by:
setYOffset in interface TrackDisplay

addMarker

public void addMarker(Marker m)
Add a marker to the display.

Specified by:
addMarker in interface TrackDisplay

setMode

public void setMode(int m)
Set the mode (select-and-move or scroll-and-scale) for this display.

Specified by:
setMode in interface TrackDisplay

getAxis

public VerticalAxis getAxis()
Get the vertical axis for this graph.


setTracks

public void setTracks(Track[] t)
Set the list of tracks to display on this graph.


showLineAtBottom

public void showLineAtBottom(boolean show)
Set whether a line should be draw along the bottom edge.


tracksModified

public void tracksModified()
This should be called whenever a track is modified, to update the display.


selectionChanged

public void selectionChanged()
Update the flags for which keyframes are selected.



Copyright © 1999-2011 by Peter Eastman.