|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.ui.viewer.image.ImageFactory
public class ImageFactory
ViewerFactory implementation for creating image viewers.
| Constructor Summary | |
|---|---|
ImageFactory()
|
|
| Method Summary | |
|---|---|
boolean |
canViewFile(AbstractFile file)
Returns true if this factory can create a file viewer for the specified file. |
FileViewer |
createFileViewer()
Returns a new instance of FileViewer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageFactory()
| Method Detail |
|---|
public boolean canViewFile(AbstractFile file)
ViewerFactorytrue if this factory can create a file viewer for the specified file.
The FileEditor may base its decision stricly upon the file's name and its extension or may wish to read some of the file and compare it to a magic number.
canViewFile in interface ViewerFactoryfile - file for which a viewer must be created.
true if this factory can create a file viewer for the specified file.public FileViewer createFileViewer()
ViewerFactoryFileViewer.
createFileViewer in interface ViewerFactoryFileViewer.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard