artisynth.core.gui.timeline
Class ProbeInfo

java.lang.Object
  extended by artisynth.core.gui.timeline.ProbeInfo
All Implemented Interfaces:
java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, Clonable

public class ProbeInfo
extends java.lang.Object
implements Clonable, java.awt.event.ActionListener

Author:
Paul

Constructor Summary
ProbeInfo(TimelineController setController, Track setTrack, Probe setProbe)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 java.lang.Object clone()
           
 void contractProbe()
           
 void dispose()
           
 void expandProbe()
           
 void finalize()
           
 artisynth.core.gui.timeline.ProbeInfo.ProbeDisplayArea getDisplayArea()
           
 int getIndex()
           
 boolean getIsShadowValid()
           
 java.lang.String getName()
           
 Track getParentTrack()
           
 Probe getProbe()
           
 java.awt.Rectangle getProbeShadow()
           
 double getStartTime()
           
 double getStopTime()
           
 Track getTrack()
           
 java.lang.Integer getTrackNumber()
           
 boolean isActive()
           
 boolean isOverlapping(double t0, double t1)
          Returns true if the time interval specified by [t0, t1] overlaps with the start and stop times of this probe, within the precision of TimeBase.
 boolean isOverlapping(Probe probe)
          Returns true if the time interval of a specified probe overlaps with the start and stop times of this probe, within the precision of TimeBase.
 boolean isProbeSelected()
           
 void loadProbe()
           
 void muteProbe()
           
 void restoreOldTimes()
           
 void saveProbe()
           
 void setActive(boolean active)
           
 void setAppropriateColor()
           
 void setAppropriateShadow(int yCoor, int pixelWidth)
           
 void setAppropSizeAndLocation(boolean isDurationModified)
           
 void setIndex(int idx)
           
 void setName(java.lang.String newName)
           
 void setNumericProbeDisplay()
           
 void setParentTrack(Track newParentTrack)
           
 void setProbeWithTime(double time)
           
 void setScale(double newScale)
           
 void setStartTime(double t)
           
 void setStopTime(double t)
           
 void unmuteProbe()
           
 void updateCoordinates()
           
 void updateLabelText()
           
 void updateProbeData()
          Updates timeline information about the probe to reflect any changes in the probe's properties.
 void updateProbeDisplays()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProbeInfo

public ProbeInfo(TimelineController setController,
                 Track setTrack,
                 Probe setProbe)
Method Detail

isOverlapping

public boolean isOverlapping(double t0,
                             double t1)
Returns true if the time interval specified by [t0, t1] overlaps with the start and stop times of this probe, within the precision of TimeBase.

Returns:
true if this probe overlaps with the time interval

isOverlapping

public boolean isOverlapping(Probe probe)
Returns true if the time interval of a specified probe overlaps with the start and stop times of this probe, within the precision of TimeBase.

Returns:
true if this probe overlaps with a specified provbe

getIndex

public int getIndex()

getIsShadowValid

public boolean getIsShadowValid()

getProbeShadow

public java.awt.Rectangle getProbeShadow()

getTrack

public Track getTrack()

getProbe

public Probe getProbe()

getDisplayArea

public artisynth.core.gui.timeline.ProbeInfo.ProbeDisplayArea getDisplayArea()

getStartTime

public double getStartTime()

getStopTime

public double getStopTime()

getName

public java.lang.String getName()

isActive

public boolean isActive()

getParentTrack

public Track getParentTrack()

setStartTime

public void setStartTime(double t)

getTrackNumber

public java.lang.Integer getTrackNumber()

setStopTime

public void setStopTime(double t)

setName

public void setName(java.lang.String newName)

setScale

public void setScale(double newScale)

setActive

public void setActive(boolean active)

setParentTrack

public void setParentTrack(Track newParentTrack)

clone

public java.lang.Object clone()
Specified by:
clone in interface Clonable
Overrides:
clone in class java.lang.Object

setProbeWithTime

public void setProbeWithTime(double time)

saveProbe

public void saveProbe()

loadProbe

public void loadProbe()

expandProbe

public void expandProbe()

contractProbe

public void contractProbe()

muteProbe

public void muteProbe()

unmuteProbe

public void unmuteProbe()

setIndex

public void setIndex(int idx)

updateCoordinates

public void updateCoordinates()

updateProbeDisplays

public void updateProbeDisplays()

setNumericProbeDisplay

public void setNumericProbeDisplay()

setAppropSizeAndLocation

public void setAppropSizeAndLocation(boolean isDurationModified)

setAppropriateColor

public void setAppropriateColor()

updateLabelText

public void updateLabelText()

dispose

public void dispose()

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

isProbeSelected

public boolean isProbeSelected()

updateProbeData

public void updateProbeData()
Updates timeline information about the probe to reflect any changes in the probe's properties.


restoreOldTimes

public void restoreOldTimes()

setAppropriateShadow

public void setAppropriateShadow(int yCoor,
                                 int pixelWidth)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener