public abstract class ManipulatorCommandFactoryBase extends EditCommandFactoryBase implements SelectionChangedProcessor<SVGElementModel>, MouseDownProcessor, MouseMoveProcessor, MouseUpProcessor, KeyPressProcessor
| Modifier and Type | Field and Description |
|---|---|
protected IModelFilter |
filter
A filter to determine if the selection represents
suitable input for this command factory
|
protected SVGElementModel |
focusModel
If the command factory is invoked from the context menu,
the corresponding model
|
protected EditManipulatorBase |
manipulator
The manipulator used to interact with the SVG element
|
protected String |
state1 |
protected String |
state2 |
status| Constructor and Description |
|---|
ManipulatorCommandFactoryBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract EditManipulatorBase |
getManipulator(SVGElementModel model) |
void |
hideManipulator() |
boolean |
processKeyPress(com.extjs.gxt.ui.client.event.ComponentEvent event)
Processes a key press event
|
boolean |
processMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
Processes a mousedown event
|
boolean |
processMouseMove(com.google.gwt.event.dom.client.MouseMoveEvent event)
Processes a mousemove event
|
boolean |
processMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
Processes a mouseup event
|
boolean |
processSelectionChanged(com.extjs.gxt.ui.client.event.SelectionChangedEvent<SVGElementModel> se)
Processes a selection change event
|
void |
showManipulator(List<SVGElementModel> models) |
void |
start(Object requester)
Invoked when the user selects this command factory (through
the command toolbar, the context menu, or implicitely by editing
a field in the inspector).
|
void |
stop()
Invoked when this command factory terminates its lifecycle (on
its own accord or because or because another command factory
preempts it, or because the end-user terminates it)
|
createCommand, processStoreEventgetStatus, updateStatusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstantiatorprotected IModelFilter filter
protected EditManipulatorBase manipulator
protected SVGElementModel focusModel
protected String state1
protected String state2
public void start(Object requester)
ICommandFactorystart in interface ICommandFactorystart in class CommandFactoryBaserequester - The object requesting this command to startpublic void stop()
ICommandFactorystop in interface ICommandFactorystop in class CommandFactoryBasepublic void showManipulator(List<SVGElementModel> models)
public void hideManipulator()
public boolean processSelectionChanged(com.extjs.gxt.ui.client.event.SelectionChangedEvent<SVGElementModel> se)
SelectionChangedProcessorprocessSelectionChanged in interface SelectionChangedProcessor<SVGElementModel>public boolean processMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
MouseUpProcessorprocessMouseUp in interface MouseUpProcessorpublic boolean processMouseMove(com.google.gwt.event.dom.client.MouseMoveEvent event)
MouseMoveProcessorprocessMouseMove in interface MouseMoveProcessorpublic boolean processKeyPress(com.extjs.gxt.ui.client.event.ComponentEvent event)
KeyPressProcessorprocessKeyPress in interface KeyPressProcessorpublic boolean processMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
MouseDownProcessorprocessMouseDown in interface MouseDownProcessorprotected abstract EditManipulatorBase getManipulator(SVGElementModel model)
Copyright © 2018. All Rights Reserved.