public class AddCircleCommandFactory extends AddCommandFactoryBase implements MouseDownProcessor, MouseMoveProcessor, MouseUpProcessor
| Modifier and Type | Field and Description |
|---|---|
protected org.vectomatic.dom.svg.OMSVGPoint |
c
The circle center
|
protected org.vectomatic.dom.svg.OMSVGCircleElement |
circle
The new circle element
|
static IFactoryInstantiator<AddCircleCommandFactory> |
INSTANTIATOR |
oneShot, ownerstatus| Constructor and Description |
|---|
AddCircleCommandFactory() |
| Modifier and Type | Method and Description |
|---|---|
IFactoryInstantiator<?> |
getInstantiator() |
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
|
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).
|
applyCssContextStyle, createCommandgetStatus, stop, updateStatuspublic static final IFactoryInstantiator<AddCircleCommandFactory> INSTANTIATOR
protected org.vectomatic.dom.svg.OMSVGCircleElement circle
protected org.vectomatic.dom.svg.OMSVGPoint c
public IFactoryInstantiator<?> getInstantiator()
getInstantiator in interface ICommandFactorypublic void start(Object requester)
ICommandFactorystart in interface ICommandFactorystart in class AddCommandFactoryBaserequester - The object requesting this command to startpublic boolean processMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
MouseDownProcessorprocessMouseDown in interface MouseDownProcessorpublic 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 MouseMoveProcessorCopyright © 2018. All Rights Reserved.