Methods Summary |
---|
public void | actionPerformed(java.awt.event.ActionEvent ae)
System.out.println("fra:");
float newFrameRate = textComp.getFloatValue();
setFrameRate(newFrameRate);
|
public java.awt.Component | getControlComponent()
if (textComp == null) {
textComp = new TextComp(getName(), value+"", 2, settable);
textComp.setActionListener(this);
}
return textComp;
|
public float | getFrameRate()Returns the current frame rate. Returns -1 if it is unknown.
return value;
|
public float | getMaxSupportedFrameRate()Returns the maximum frame rate. Returns -1 if it is unknown.
return max;
|
protected java.lang.String | getName()
return "Frame Rate";
|
public java.lang.Object | getOwner()
if (owner == null)
return this;
else
return owner;
|
public float | getPreferredFrameRate()Returns the default frame rate. Returns -1 if it is unknown.
return min;
|
public void | setEnabled(boolean enable)
if (textComp != null)
textComp.setEnabled(enable);
|
public float | setFrameRate(float newFrameRate)Sets the frame rate.
Returns -1 if it is unknown or it is not controllable.
if (settable) {
if (newFrameRate < min)
newFrameRate = min;
else if (newFrameRate > max)
newFrameRate = max;
// if (newFrameRate != value) {
value = newFrameRate;
if (textComp != null) {
textComp.setValue(Float.toString(value));
}
// }
return value;
} else
return -1;
|
public void | setOwner(java.lang.Object newOwner)
owner = newOwner;
|