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)
EditionLocator
layer
- public static CADToolAdapter getCADToolAdapter()
EditionLocator
public void initialize()
IExtension
initialize
in interface IExtension
IExtension.initialize()
public void postInitialize()
IExtension
initialize()
has been called for ALL the extensions.postInitialize
in interface IExtension
postInitialize
in class Extension
public void execute(String s)
IExtension
execute
in interface IExtension
s
- 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()
IExtension
isEnabled
in interface IExtension
IExtension.isEnabled()
public boolean isVisible()
IExtension
isVisible
in interface IExtension
IExtension.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()
EditionLocator
public static CADTool[] getCADTools()
public static void initFocus()
public IPreference[] getPreferencesPages()
getPreferencesPages
in interface IPreferenceExtension