|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.annotation.wordfreak.io.AbstractAnnotatedFileFormat
Field Summary | |
protected static int |
DOCUMENT
|
protected static int |
GOLD
|
protected java.lang.String[] |
iconPaths
|
protected javax.swing.Icon[] |
icons
|
protected static int |
LOADED
|
protected static int |
LOADED_GOLD
|
protected static int |
LOADING
|
Constructor Summary | |
AbstractAnnotatedFileFormat()
|
Method Summary | |
javax.swing.Icon |
getIcon(boolean gold,
boolean loaded,
boolean loading)
Returns an icon to be displayed with files of this type. |
void |
getNextChunk(AnnotationFile af)
Indicates that a subsequent portion of the specified file should be read into memory. |
void |
getPrevChunk(AnnotationFile af)
Indicates that a previous portion of the specified file should be read into memory. |
void |
getSettings()
Used to prompt user for file format settings. |
boolean |
hasNextChunk(AnnotationFile af)
Returns true if the specified annotation file has only been partially loaded and a subsequent portion remains can be loaded. |
boolean |
hasPrevChunk(AnnotationFile af)
Returns true if the specified annotation file has only been partially loaded and a prior portion remains can be loaded. |
protected void |
initIcons()
|
protected void |
setIconPaths(java.lang.String[] iconPaths)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.annotation.wordfreak.io.AnnotatedFileFormat |
getAnnotatedFile, getSourceFile, getSourceFileFormat, read, write |
Methods inherited from interface org.annotation.wordfreak.io.FileFormat |
addProgressListener, getExtension, getFileFilter, getFormatName, handlesFile, removeProgressListener |
Field Detail |
protected java.lang.String[] iconPaths
protected javax.swing.Icon[] icons
protected static final int DOCUMENT
protected static final int GOLD
protected static final int LOADING
protected static final int LOADED
protected static final int LOADED_GOLD
Constructor Detail |
public AbstractAnnotatedFileFormat()
Method Detail |
protected void initIcons()
protected void setIconPaths(java.lang.String[] iconPaths)
public javax.swing.Icon getIcon(boolean gold, boolean loaded, boolean loading)
FileFormat
getIcon
in interface FileFormat
gold
- true if this is a gold file.loaded
- true if this file has been loaded.loading
- true if this file is loading.
public void getSettings()
AnnotatedFileFormat
getSettings
in interface AnnotatedFileFormat
public boolean hasNextChunk(AnnotationFile af)
AnnotatedFileFormat
hasNextChunk
in interface AnnotatedFileFormat
af
- The annoation file to be loaded.
public boolean hasPrevChunk(AnnotationFile af)
AnnotatedFileFormat
hasPrevChunk
in interface AnnotatedFileFormat
af
- The annoation file to be loaded.
public void getNextChunk(AnnotationFile af)
AnnotatedFileFormat
getNextChunk
in interface AnnotatedFileFormat
af
- The annotation file to be appended.public void getPrevChunk(AnnotationFile af)
AnnotatedFileFormat
getPrevChunk
in interface AnnotatedFileFormat
af
- The annotation file to be prepended.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |