|
|||||||||
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.JOptionPane
org.freehep.util.export.ExportDialog
public class ExportDialog
An "Export" dialog for saving components as graphic files.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JOptionPane |
---|
JOptionPane.AccessibleJOptionPane |
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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
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 | |
---|---|
ExportDialog()
Creates a new instance of ExportDialog with all the standard export filetypes. |
|
ExportDialog(String creator)
Creates a new instance of ExportDialog with all the standard export filetypes. |
|
ExportDialog(String creator,
boolean addAllExportFileTypes)
Creates a new instance of ExportDialog. |
Method Summary | |
---|---|
void |
addAllExportFileTypes()
|
void |
addExportFileType(ExportFileType fileType)
Register an export file type. |
protected String |
selectFile()
Called to open a "file browser". |
void |
setUserProperties(Properties properties)
Set the Properties object to be used for storing/restoring user preferences. |
void |
setValue(Object value)
|
void |
showExportDialog(Component parent,
String title,
Component target,
Dimension size,
String defFile)
Show the dialog. |
void |
showExportDialog(Component parent,
String title,
Component target,
String defFile)
Show the dialog. |
protected boolean |
writeFile(Component component,
ExportFileType t)
Called to acually write out the file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExportDialog()
public ExportDialog(String creator)
creator
- The "creator" to be written into the header of the file (may be null)public ExportDialog(String creator, boolean addAllExportFileTypes)
creator
- The "creator" to be written into the header of the file (may be null)addAllExportFileTypes
- If true registers all the standard export filetypesMethod Detail |
---|
public void setUserProperties(Properties properties)
properties
- The Properties to use for user preferencespublic void addExportFileType(ExportFileType fileType)
public void addAllExportFileTypes()
public void showExportDialog(Component parent, String title, Component target, Dimension size, String defFile)
parent
- The parent for the dialogtitle
- The title for the dialogtarget
- The component to be saved.size
- The target size to be used for export.defFile
- The default file name to use.public void showExportDialog(Component parent, String title, Component target, String defFile)
parent
- The parent for the dialogtitle
- The title for the dialogtarget
- The component to be saved.defFile
- The default file name to use.protected String selectFile()
protected boolean writeFile(Component component, ExportFileType t) throws IOException
IOException
public void setValue(Object value)
setValue
in class JOptionPane
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |