artofillusion.animation
Class TimeAxis

java.lang.Object
  extended by CustomWidget
      extended by artofillusion.animation.TimeAxis

public class TimeAxis
extends CustomWidget

This is a Widget which displays a time axis.


Constructor Summary
TimeAxis(int subdivisions, double scale, Score sc)
           
 
Method Summary
 void addMarker(Marker m)
          Add a marker to the axis.
 java.awt.Dimension getPreferredSize()
           
 double getScale()
          Get the number of pixels per unit time.
 double getStartTime()
          Get the starting time to 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeAxis

public TimeAxis(int subdivisions,
                double scale,
                Score sc)
Method Detail

getStartTime

public double getStartTime()
Get the starting time to display.


setStartTime

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


getScale

public double getScale()
Get the number of pixels per unit time.


setScale

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


setSubdivisions

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


addMarker

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


getPreferredSize

public java.awt.Dimension getPreferredSize()


Copyright © 1999-2011 by Peter Eastman.