FileDocCategorySizeDatePackage
TrackPanel.javaAPI DocJMF 2.1.1e1747Mon May 12 12:20:30 BST 2003jmapps.ui

TrackPanel

public abstract class TrackPanel extends JMPanel

Fields Summary
protected TrackControl
trackControl
protected Format[]
arrSupportedFormats
protected Vector
vectorContSuppFormats
protected ActionListener
listenerEnableTrack
Constructors Summary
public TrackPanel(TrackControl trackControl, ActionListener listenerEnableTrack)



           
        this.trackControl = trackControl;
        this.listenerEnableTrack = listenerEnableTrack;
        this.arrSupportedFormats = trackControl.getSupportedFormats ();
    
Methods Summary
public abstract javax.media.FormatgetFormat()

public javax.media.control.TrackControlgetTrackControl()

        return ( trackControl );
    
public abstract booleanisTrackEnabled()

public voidupdateTrack()

        Format         format;

        if ( isTrackEnabled() == false ) {
            trackControl.setEnabled ( false );
            return;
        }
        format = getFormat ();
        if ( format == null ) {
            MessageDialog.createErrorDialog ( getFrame(), "Internal error. " +
					      "Unable to match choosen format. Track will be disabled." );
            trackControl.setEnabled ( false );
        }
        else {
            trackControl.setEnabled ( true );
            trackControl.setFormat ( format );
        }