|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EditToolLoader
An EditToolLoader is interface that describes an object that creates something that can create or edit an OMGraphic. The EditToolLoader should be able to be tossed at a DrawingTool, and the DrawingTool should be able find out what kind of objects it can adjust or create, and then use it if any requests come in that fit.
Method Summary | |
---|---|
java.lang.String[] |
getEditableClasses()
Get the classnames that the loader is able to create EditableOMGraphics for. |
EditableOMGraphic |
getEditableGraphic(OMGraphic graphic)
Give an OMGraphic to the EditToolLoader, which will create an EditableOMGraphic for it. |
EditableOMGraphic |
getEditableGraphic(java.lang.String classname)
Give the classname of a graphic to create, returning a default EditableOMGraphic for that graphic. |
EditableOMGraphic |
getEditableGraphic(java.lang.String classname,
GraphicAttributes ga)
Give the classname of a graphic to create, returning an EditableOMGraphic for that graphic. |
javax.swing.ImageIcon |
getIcon(java.lang.String classname)
Get an Icon that is suitable for representing the class given by the classname. |
java.lang.String |
getPrettyName(java.lang.String classname)
Provide a pretty name to use for a particular class. |
Method Detail |
---|
java.lang.String[] getEditableClasses()
EditableOMGraphic getEditableGraphic(java.lang.String classname)
EditableOMGraphic getEditableGraphic(java.lang.String classname, GraphicAttributes ga)
EditableOMGraphic getEditableGraphic(OMGraphic graphic)
javax.swing.ImageIcon getIcon(java.lang.String classname)
classname
- the classname to get the icon for.
java.lang.String getPrettyName(java.lang.String classname)
classname
- the classname to get the icon for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |