|
||||||||||
| 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
loci.formats.gui.PreviewPane
public class PreviewPane
PreviewPane is a panel for use as a JFileChooser accessory, displaying a thumbnail for the selected image, loaded in a separate thread.
| 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 JLabel |
iconLabel
Labels containing thumbnail and dimensional information. |
protected String |
lastId
Last ID loaded. |
protected Thread |
loader
Thumbnail loading thread. |
protected boolean |
loaderAlive
Flag indicating whether loader thread should keep running. |
protected String |
loadId
Current ID to load. |
protected loci.formats.IFormatReader |
reader
Reader for use when loading thumbnails. |
protected JLabel |
resLabel
Labels containing thumbnail and dimensional information. |
protected JLabel |
typeLabel
Labels containing thumbnail and dimensional information. |
protected JLabel |
zctLabel
Labels containing thumbnail and dimensional information. |
| 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 | |
|---|---|
PreviewPane(JFileChooser jc)
Constructs a preview pane for the given file chooser. |
|
| Method Summary | |
|---|---|
Dimension |
getPreferredSize()
|
void |
propertyChange(PropertyChangeEvent e)
Property change event, to listen for when a new file is selected, or the file chooser closes. |
void |
run()
Thumbnail loading routine. |
| 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 loci.formats.IFormatReader reader
protected JLabel iconLabel
protected JLabel resLabel
protected JLabel zctLabel
protected JLabel typeLabel
protected Thread loader
protected boolean loaderAlive
protected String loadId
protected String lastId
| Constructor Detail |
|---|
public PreviewPane(JFileChooser jc)
| Method Detail |
|---|
public Dimension getPreferredSize()
getPreferredSize in class JComponentpublic void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenerpublic void run()
run in interface Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||