artofillusion.animation
Class TimeAxis

java.lang.Object
  extended by buoy.event.EventSource
      extended by buoy.widget.Widget
          extended by buoy.widget.CustomWidget
              extended by artofillusion.animation.TimeAxis

public class TimeAxis
extends buoy.widget.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 buoy.widget.CustomWidget
isOpaque, setMaximumSize, setMinimumSize, setOpaque, setPreferredSize
 
Methods inherited from class buoy.widget.Widget
addEventLink, dispatchEvent, getBackground, getBounds, getComponent, getCursor, getFont, getMaximumSize, getMinimumSize, 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
 

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()
Overrides:
getPreferredSize in class buoy.widget.Widget


Copyright © 1999-2008 by Peter Eastman.