|
FreeHEP API Version v1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.freehep.graphicsio.exportchooser.ExportGraphicsFileTypeAdapter
Nested Class Summary | |
class |
ExportGraphicsFileTypeAdapter.CancelThread
|
Field Summary | |
protected String |
creator
|
Constructor Summary | |
ExportGraphicsFileTypeAdapter()
|
Method Summary | |
static File |
adjustExtension(File file,
String preferredExtension,
String[] acceptableExtensions)
Change the extension of a file if it is not of the appropriate type. |
File |
adjustFilename(File file)
The default implementation of this method does nothing to change the file name. |
static boolean |
checkExtension(File file,
String[] acceptableExtensions)
A utility function that checks a file's extension. |
void |
done()
The default implementation does nothing. |
void |
exportToFile(File file,
Component[] saveTargets,
Component parent)
Save all components as the given file type. |
void |
exportToFile(File file,
Component saveTarget,
Component parent)
Show this dialog and save component as the given file type. |
void |
exportToFile(OutputStream os,
Component[] saveTargets,
Component parent)
Save all components as the given file type. |
void |
exportToFile(OutputStream os,
Component saveTarget,
Component parent)
Show this dialog and save component as the given file type. |
boolean |
fileHasValidExtension(File file)
The default implementation of this method just returns false. |
Graphics |
getConfiguredGraphics(File file,
Component printTarget)
Returns a null Graphics object. |
FileFilter |
getFileFilter()
The default implementation of this method does nothing. |
JPanel |
getOptionsPanel()
The default implementation of this method returns null. |
int |
getThumbnailSize()
Default = -1. |
boolean |
isMultipageCapable()
Default = false. |
void |
restoreOptions(Properties props)
Call this method to restore options from a Properties object. |
void |
saveOptions(Properties props)
Call this method to store options in a Properties object. |
void |
setCreator(String creator)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.freehep.graphicsio.exportchooser.ExportGraphicsFileType |
getConfiguredGraphics |
Field Detail |
protected String creator
Constructor Detail |
public ExportGraphicsFileTypeAdapter()
Method Detail |
public void setCreator(String creator)
setCreator
in interface ExportFileType
public FileFilter getFileFilter()
getFileFilter
in interface ExportFileType
public JPanel getOptionsPanel()
getOptionsPanel
in interface ExportFileType
public Graphics getConfiguredGraphics(File file, Component printTarget) throws IOException
getConfiguredGraphics
in interface ExportGraphicsFileType
IOException
public void done() throws IOException
done
in interface ExportGraphicsFileType
IOException
public void exportToFile(OutputStream os, Component saveTarget, Component parent) throws IOException
exportToFile
in interface ExportFileType
IOException
public void exportToFile(File file, Component saveTarget, Component parent) throws IOException
exportToFile
in interface ExportFileType
IOException
public void exportToFile(OutputStream os, Component[] saveTargets, Component parent) throws IOException
exportToFile
in interface ExportFileType
IOException
public void exportToFile(File file, Component[] saveTargets, Component parent) throws IOException
exportToFile
in interface ExportFileType
IOException
public File adjustFilename(File file)
adjustFilename
in interface ExportFileType
public boolean fileHasValidExtension(File file)
fileHasValidExtension
in interface ExportFileType
public static boolean checkExtension(File file, String[] acceptableExtensions)
public static File adjustExtension(File file, String preferredExtension, String[] acceptableExtensions)
public void saveOptions(Properties props)
ExportFileType
saveOptions
in interface ExportFileType
public void restoreOptions(Properties props)
ExportFileType
restoreOptions
in interface ExportFileType
public boolean isMultipageCapable()
isMultipageCapable
in interface ExportGraphicsFileType
public int getThumbnailSize()
getThumbnailSize
in interface ExportGraphicsFileType
|
FreeHEP API Version v1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |