|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.argouml.uml.ui.SaveGraphicsManager
This class has some similar functions like PersistenceManager.
It centralizes all knowledge about the different graphical formats. This class is the only one that is supposed to know the complete list of supported graphics formats.
| Field Summary | |
static ConfigurationKey |
KEY_DEFAULT_GRAPHICS_FILTER
The configuration key for the preferred graphics format. |
static ConfigurationKey |
KEY_GRAPHICS_RESOLUTION
The configuration key for the export graphics resolution. |
static ConfigurationKey |
KEY_SAVE_GRAPHICS_PATH
The configuration key for the "save graphics" file location. |
static ConfigurationKey |
KEY_SAVEALL_GRAPHICS_PATH
The configuration key for the "save all graphics" file location. |
| Method Summary | |
String |
fixExtension(String in)
|
String |
getDefaultSuffix()
|
SuffixFilter |
getFilterFromFileName(String name)
|
static SaveGraphicsManager |
getInstance()
|
CmdSaveGraphics |
getSaveCommandBySuffix(String suffix)
|
Collection |
getSettingsList()
|
void |
register(SuffixFilter f)
This function allows to add new filters. |
void |
setDefaultFilter(SuffixFilter f)
|
void |
setDefaultFilterBySuffix(String suffix)
|
void |
setFileChooserFilters(JFileChooser chooser,
String defaultName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final ConfigurationKey KEY_DEFAULT_GRAPHICS_FILTER
public static final ConfigurationKey KEY_SAVE_GRAPHICS_PATH
public static final ConfigurationKey KEY_SAVEALL_GRAPHICS_PATH
public static final ConfigurationKey KEY_GRAPHICS_RESOLUTION
| Method Detail |
public void setDefaultFilterBySuffix(String suffix)
suffix - the extension of the new default file-formatpublic void setDefaultFilter(SuffixFilter f)
f - the new default file-formatpublic static SaveGraphicsManager getInstance()
public void register(SuffixFilter f)
f - the filter
public void setFileChooserFilters(JFileChooser chooser,
String defaultName)
chooser - the filechooser of which the filters will be setpublic SuffixFilter getFilterFromFileName(String name)
name - the filename
public String getDefaultSuffix()
public String fixExtension(String in)
in - the input file or path name which may or may not
have a recognised extension
public CmdSaveGraphics getSaveCommandBySuffix(String suffix)
suffix - the suffix (extension) of the filename,
which corresponds to the graphics format to be used
public Collection getSettingsList()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |