public final class EditImageMap extends EditImageMapBase
config_prefix.editImageMap
.imageMapElement
recordable, repeatable
Constructor and Description |
---|
EditImageMap() |
Modifier and Type | Method and Description |
---|---|
protected ImageMapEditor |
createImageMapEditor(Component parentComponent,
String title) |
CommandResult |
doExecute(DocumentView docView,
String parameter,
int x,
int y)
Actually executes this command with specified parameter and in
specified context.
|
protected boolean |
editImageMap(ImageMap imageMap,
Element imageMapElement) |
protected Name[] |
getImageMapNames(Element selected) |
protected Name[][] |
getLinkNames(Element imageMapElement) |
protected ImageMap |
parseImageMap(Element imageMapElement) |
createLinkTargetChooser, findLinkAttribute, getNonEmptyAttribute, getNonEmptyText, loadImage, prepare, setAttributes, setProperties
doExecuteByName, execute, executeCommand, isRecordable, isRepeatable, prepareCommand
public CommandResult doExecute(DocumentView docView, String parameter, int x, int y)
CommandBase
This method assumes that CommandBase.prepare(com.xmlmind.xmledit.view.DocumentView, java.lang.String, int, int)
has been
successfully invoked immediately before its own invocation.
IMPORTANT: application code which executes a command
must always use CommandBase.execute(com.xmlmind.xmledit.view.DocumentView, java.lang.String, int, int)
or CommandBase.executeCommand(com.xmlmind.xmledit.gadget.Gadget, java.lang.String, int, int)
to do so,
NOT CommandBase.doExecute(com.xmlmind.xmledit.view.DocumentView, java.lang.String, int, int)
. CommandBase.doExecute(com.xmlmind.xmledit.view.DocumentView, java.lang.String, int, int)
is intended to be used
only by commands which invoke helper "sub-commands".
doExecute
in class EditImageMapBase
docView
- the target of this commandparameter
- parameterizes the command (that is, modifies the
behavior of the command in a command specific way)x
- X position relative to docView of the mouse event
having triggered this command; -1 if this command was triggered by a
keyboard inputy
- Y position relative to docView of the mouse event
having triggered this command; -1 if this command was triggered by a
keyboard inputnull
.
If the command execution is successful and
the command is repeatable and/or recordable then
CommandResult.details
field of the result is expected
to be one of:
null
Object
String
s
protected Name[] getImageMapNames(Element selected)
getImageMapNames
in class EditImageMapBase
protected Name[][] getLinkNames(Element imageMapElement)
getLinkNames
in class EditImageMapBase
protected ImageMapEditor createImageMapEditor(Component parentComponent, String title)
createImageMapEditor
in class EditImageMapBase
protected ImageMap parseImageMap(Element imageMapElement) throws RuntimeException
parseImageMap
in class EditImageMapBase
RuntimeException
protected boolean editImageMap(ImageMap imageMap, Element imageMapElement)
editImageMap
in class EditImageMapBase