|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
de.unihalle.informatik.MiToBo.gui.ImageWriterOptionsPane
@ALDMetaInfo(export=ALLOWED) public class ImageWriterOptionsPane
A panel for image writer options that is used as accessory in a JFileChooser
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected int |
codec
|
protected RadioButtonPanel |
codpanel
|
protected RadioButtonPanel |
comppanel
|
protected String |
compression
|
protected int |
defaultfps
|
protected int |
fps
|
protected JTextField |
fpsfield
|
protected JFileChooser |
jfc
|
protected int |
quality
|
protected RadioButtonPanel |
qualpanel
|
protected TwoColumnPanel |
vidpanel
|
static String |
WRITER_OPTIONS_APPROVED_PROPERTY
Property change when writer options are approved (i.e. when filechooser selection is approved) |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ImageWriterOptionsPane(JFileChooser jfc)
Constructor that will install this writer options panel to the specified JFileChooser |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
Assigns the writer options to the option variables when a file selection is approved by the file chooser. |
int |
getCodec()
Get codec option |
String |
getCompression()
Get compression option |
int |
getFramesPerSecond()
Get fps option |
int |
getQuality()
Get quality option |
void |
propertyChange(PropertyChangeEvent evt)
Changes the available options of the writer option panel according to the selected file filter of the file chooser |
void |
setDefaultFps(int fps)
Set a default fps to show in the option panel, e.g. if the fps can be determined from some image metadata |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected RadioButtonPanel comppanel
protected RadioButtonPanel codpanel
protected RadioButtonPanel qualpanel
protected TwoColumnPanel vidpanel
protected JTextField fpsfield
protected JFileChooser jfc
protected String compression
protected int fps
protected int defaultfps
protected int quality
protected int codec
public static final String WRITER_OPTIONS_APPROVED_PROPERTY
Constructor Detail |
---|
public ImageWriterOptionsPane(JFileChooser jfc)
JFileChooser
jfc
- file chooser to install this panel toMethod Detail |
---|
public void setDefaultFps(int fps)
public String getCompression()
public int getFramesPerSecond()
public int getQuality()
public int getCodec()
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |