|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.kzoo.grid.display.DefaultDisplayFactory
Grid Display Package:
The DefaultDisplayFactory class contains methods
that provide a suitable default display for a given class.
| Constructor Summary | |
DefaultDisplayFactory()
|
|
| Method Summary | |
static void |
addSuffix(java.lang.String suffix)
Adds the specified suffix to the list of image suffixes to look for. |
static GridObjectDisplay |
getDefaultDisplay()
Returns a DefaultDisplay object. |
static GridObjectDisplay |
getDefaultDisplay(java.lang.Class cls)
Returns a default display specific to the given class if there is one. |
static GridObjectDisplay |
getDefaultDisplay(java.lang.String className)
Returns a default display specific to the given class if there is one. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultDisplayFactory()
| Method Detail |
public static void addSuffix(java.lang.String suffix)
suffix - image suffix (e.g., "tiff")public static GridObjectDisplay getDefaultDisplay()
public static GridObjectDisplay getDefaultDisplay(java.lang.Class cls)
ClassNameDisplay object if there is a
a ClassNameDisplay class with a default
(no-parameter) constructor in package, in
the associated display package (package.display),
or in the unnamed default display
ScaledImageDisplay object if there is a
an image file named ClassName.sfx in the jar
file or current directory (where sfx is one of
the following suffixes: gif, GIF, jpg, JPG, jpeg, JPEG,
or any added with the addSuffix method)
If no default display specific to the given class is available,
this method returns null.
public static GridObjectDisplay getDefaultDisplay(java.lang.String className)
ClassNameDisplay object if there is a
a ClassNameDisplay class with a default
(no-parameter) constructor in package, in
the associated display package (package.display),
or in the unnamed default display
ScaledImageDisplay object if there is a
an image file named ClassName.sfx in the jar
file or current directory (where sfx is one of
the following suffixes: gif, GIF, jpg, JPG, jpeg, JPEG,
or any added with the addSuffix method)
If no default display specific to the given class is available,
this method returns null.
className - the name of the class for which to find
a default display
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||