public class CADExtension extends Extension implements IPreferenceExtension
| Constructor and Description |
|---|
CADExtension() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCADTool(String name,
CADTool c) |
static void |
addMenuEntry(String text) |
static void |
clearMenu() |
static void |
clearView() |
void |
execute(String s)
This method is executed when the user clicks on any of the
controls associated with this extension (menus, tools, etc).
|
static CADTool |
getCADTool() |
static CADToolAdapter |
getCADToolAdapter()
Deprecated.
Use same method in
EditionLocator |
static CADToolAdapter |
getCADToolAdapter(FLayer layer)
Deprecated.
Use same method in
EditionLocator |
static CADTool[] |
getCADTools() |
static IEditionManager |
getEditionManager()
Deprecated.
Use same method in
EditionLocator |
MapControl |
getMapControl() |
IPreference[] |
getPreferencesPages() |
static DefaultViewPanel |
getView() |
static void |
initFocus() |
void |
initialize()
Extension's initialization code should be here.
|
boolean |
isEnabled()
This method is invoked by Andami to check whether the extension
(and its associated controls) is enabled or disabled.
|
boolean |
isVisible()
This method is invoked by Andami to check whether the extension
(and its associated controls) is visible or hidden.
|
void |
postInitialize()
Extension's post-initialization code should be here.
|
static void |
setCADTool(String text,
boolean showCommand) |
static void |
showPopup(MouseEvent e) |
public static CADToolAdapter getCADToolAdapter(FLayer layer)
EditionLocatorlayer - public static CADToolAdapter getCADToolAdapter()
EditionLocatorpublic void initialize()
IExtensioninitialize in interface IExtensionIExtension.initialize()public void postInitialize()
IExtensioninitialize()
has been called for ALL the extensions.postInitialize in interface IExtensionpostInitialize in class Extensionpublic void execute(String s)
IExtensionexecute in interface IExtensions - An String specifying the action to
execute. This is useful when there are different
controls associated with the same extension.IExtension.execute(java.lang.String)public static void setCADTool(String text, boolean showCommand)
public static CADTool getCADTool()
public boolean isEnabled()
IExtensionisEnabled in interface IExtensionIExtension.isEnabled()public boolean isVisible()
IExtensionisVisible in interface IExtensionIExtension.isVisible()public MapControl getMapControl()
public static void clearMenu()
public static void addMenuEntry(String text)
public static void showPopup(MouseEvent e)
public static DefaultViewPanel getView()
public static void clearView()
public static IEditionManager getEditionManager()
EditionLocatorpublic static CADTool[] getCADTools()
public static void initFocus()
public IPreference[] getPreferencesPages()
getPreferencesPages in interface IPreferenceExtension