net.sf.fmj.filtergraph
Class Pin

java.lang.Object
  extended by net.sf.fmj.filtergraph.Pin
Direct Known Subclasses:
InputPin, OutputPin

public abstract class Pin
extends java.lang.Object

A Pin is an input or output of a filter graph node.

Author:
Ken Larson

Field Summary
static int NO_TRACK
           
static int TYPE_INPUT
           
static int TYPE_OUTPUT
           
 
Constructor Summary
protected Pin(int type, Node owner)
          Constructor when there is only 1 pin of the given type (input, output).
protected Pin(int type, Node owner, int pinNumber, int track)
          Constructor for pin with track index (used for demux output pins and mux input pins).
 
Method Summary
 Buffer getBuffer()
           
 Format getFormat()
           
 Node getOwnerNode()
           
 int getPinNumber()
           
 int getTrack()
           
 int getType()
           
 void setBuffer(Buffer buffer)
           
 void setFormat(Format format)
           
 void setTrack(int track)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_INPUT

public static final int TYPE_INPUT
See Also:
Constant Field Values

TYPE_OUTPUT

public static final int TYPE_OUTPUT
See Also:
Constant Field Values

NO_TRACK

public static final int NO_TRACK
See Also:
Constant Field Values
Constructor Detail

Pin

protected Pin(int type,
              Node owner)
Constructor when there is only 1 pin of the given type (input, output).


Pin

protected Pin(int type,
              Node owner,
              int pinNumber,
              int track)
Constructor for pin with track index (used for demux output pins and mux input pins).

Method Detail

getType

public int getType()

getTrack

public int getTrack()

getPinNumber

public int getPinNumber()

setTrack

public void setTrack(int track)

getFormat

public Format getFormat()

setFormat

public void setFormat(Format format)

getBuffer

public Buffer getBuffer()

setBuffer

public void setBuffer(Buffer buffer)

getOwnerNode

public Node getOwnerNode()