|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface describes all the methods that need to be implemented by any framework that is to be supported by OME. These methods specifically include methods for maintaining the types of objects, as well as information restrictions associated with thos objects. Here types may have associated names, images, images sizes and positions. In addition, these types may be a type of link or element.
Method Summary | |
boolean |
autoGenInterface(java.lang.Object type)
Returns true iff the GUI should automatically generate widgets to created instances of this type. |
java.util.Iterator |
getAllInstantiable()
Returns only those classes that can be directly instantiated. |
java.util.Iterator |
getAllTypes()
Returns all the classes in the framework, both instantiable and not. |
java.awt.Image |
getImage(java.lang.Object type)
Returns the principal image for a type. |
java.lang.String |
getImageFilename(java.lang.Object type)
Returns the filename of an image for a specified type. |
int |
getImageHeight(java.lang.Object o)
Returns the object's images' height. |
java.util.Iterator |
getImageNames(java.lang.Object type)
Returns the possible imagenames for a specified type. |
ImageTable |
getImageTable()
Returns the framework's ImageTable. |
int |
getImageWidth(java.lang.Object o)
Returns the object's images' width. |
java.lang.String |
getName(java.lang.Object o)
Returns the name of a type. |
java.awt.Point |
getPosition(java.lang.Object o)
Returns the position of the given object (if it has one). |
java.lang.String |
getStrokeString(java.lang.Object type)
Returns the STRING DESCRIPTION of the stroke associated with a link type. |
java.lang.Object |
getType(java.lang.String name)
Returns the type as found by its name. |
boolean |
isCommentSupported()
Is the "comment" feature supported for this framework. |
boolean |
isElement(java.lang.Object type)
Returns whether type is an element or not. |
boolean |
isExpandable(java.lang.Object type)
Returns whether type is expandeable. |
boolean |
isLink(java.lang.Object type)
Returns whether type is a link or not. |
Method Detail |
public java.util.Iterator getAllTypes()
public java.util.Iterator getAllInstantiable()
public java.lang.Object getType(java.lang.String name)
public java.lang.String getName(java.lang.Object o)
o
- the object (type) whose name we want.public java.lang.String getStrokeString(java.lang.Object type)
public boolean autoGenInterface(java.lang.Object type)
public java.util.Iterator getImageNames(java.lang.Object type)
type
- the type whose possible image names we want.Iterator
of possible image names for the
specified typepublic java.lang.String getImageFilename(java.lang.Object type)
type
- the type whose image filename we want.public java.awt.Image getImage(java.lang.Object type)
type
- the type whose principal image we want.public int getImageWidth(java.lang.Object o)
o
- the object whose width we want.public int getImageHeight(java.lang.Object o)
public java.awt.Point getPosition(java.lang.Object o)
public ImageTable getImageTable()
public boolean isElement(java.lang.Object type)
type
- the type which we are checking is an element.public boolean isLink(java.lang.Object type)
type
- the type which we are checking is an linkpublic boolean isExpandable(java.lang.Object type)
public boolean isCommentSupported()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |