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, processStoreEvent
getStatus, updateStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInstantiator
protected IModelFilter filter
protected EditManipulatorBase manipulator
protected SVGElementModel focusModel
protected String state1
protected String state2
public void start(Object requester)
ICommandFactory
start
in interface ICommandFactory
start
in class CommandFactoryBase
requester
- The object requesting this command to startpublic void stop()
ICommandFactory
stop
in interface ICommandFactory
stop
in class CommandFactoryBase
public void showManipulator(List<SVGElementModel> models)
public void hideManipulator()
public boolean processSelectionChanged(com.extjs.gxt.ui.client.event.SelectionChangedEvent<SVGElementModel> se)
SelectionChangedProcessor
processSelectionChanged
in interface SelectionChangedProcessor<SVGElementModel>
public boolean processMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
MouseUpProcessor
processMouseUp
in interface MouseUpProcessor
public boolean processMouseMove(com.google.gwt.event.dom.client.MouseMoveEvent event)
MouseMoveProcessor
processMouseMove
in interface MouseMoveProcessor
public boolean processKeyPress(com.extjs.gxt.ui.client.event.ComponentEvent event)
KeyPressProcessor
processKeyPress
in interface KeyPressProcessor
public boolean processMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
MouseDownProcessor
processMouseDown
in interface MouseDownProcessor
protected abstract EditManipulatorBase getManipulator(SVGElementModel model)
Copyright © 2018. All Rights Reserved.