public abstract class AbstractToolLoader extends java.lang.Object implements EditToolLoader
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap |
graphicInfo |
protected I18n |
i18n |
Constructor and Description |
---|
AbstractToolLoader() |
Modifier and Type | Method and Description |
---|---|
void |
addEditClassWrapper(EditClassWrapper ecw) |
java.lang.String[] |
getEditableClasses()
Get the classnames that the loader is able to create
EditableOMGraphics for.
|
abstract 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 an
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 for a classname.
|
java.lang.String |
getPrettyName(java.lang.String classname)
Get the pretty name, suitable for a GUI, for a classname.
|
abstract void |
init()
Each subclass should initialize the graphicInfo HashMap by
calling addEditClassWrapper(EditClassWrapper).
|
void |
removeEditClassWrapper(EditClassWrapper ecw) |
protected java.util.HashMap graphicInfo
protected I18n i18n
public abstract void init()
public void addEditClassWrapper(EditClassWrapper ecw)
public void removeEditClassWrapper(EditClassWrapper ecw)
public java.lang.String[] getEditableClasses()
getEditableClasses
in interface EditToolLoader
public EditableOMGraphic getEditableGraphic(java.lang.String classname)
getEditableGraphic
in interface EditToolLoader
public EditableOMGraphic getEditableGraphic(java.lang.String classname, GraphicAttributes ga)
getEditableGraphic
in interface EditToolLoader
public abstract EditableOMGraphic getEditableGraphic(OMGraphic graphic)
getEditableGraphic
in interface EditToolLoader
public javax.swing.ImageIcon getIcon(java.lang.String classname)
getIcon
in interface EditToolLoader
classname
- the classname to get the icon for.public java.lang.String getPrettyName(java.lang.String classname)
getPrettyName
in interface EditToolLoader
classname
- the classname to get the icon for.Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details