artofillusion.animation
Class TracksPanel

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

public class TracksPanel
extends CustomWidget
implements TrackDisplay

This is the Widget which displays all of the tracks in the score.


Constructor Summary
TracksPanel(LayoutWindow win, TreeList list, Score sc, int subdivisions, double scale)
           
 
Method Summary
 void addMarker(Marker m)
          Add a marker to the display.
 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 setYOffset(int offset)
          Set the y offset (for vertically scrolling the panel).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TracksPanel

public TracksPanel(LayoutWindow win,
                   TreeList list,
                   Score sc,
                   int subdivisions,
                   double scale)
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)
Description copied from interface: TrackDisplay
Set the y offset (for vertically scrolling the panel).

Specified by:
setYOffset in interface TrackDisplay

addMarker

public void addMarker(Marker m)
Description copied from interface: TrackDisplay
Add a marker to the display.

Specified by:
addMarker in interface TrackDisplay

setMode

public void setMode(int m)
Description copied from interface: TrackDisplay
Set the mode (select-and-move or scroll-and-scale) for this display.

Specified by:
setMode in interface TrackDisplay


Copyright © 1999-2011 by Peter Eastman.