public class AddPolygonCommandFactory extends AddCommandFactoryBase implements MouseDownProcessor, MouseMoveProcessor
| Modifier and Type | Field and Description |
|---|---|
static IFactoryInstantiator<AddPolygonCommandFactory> |
INSTANTIATOR |
protected org.vectomatic.dom.svg.OMSVGPointList |
points |
protected org.vectomatic.dom.svg.OMSVGPolygonElement |
polygon
The new polygon element
|
oneShot, ownerstatus| Constructor and Description |
|---|
AddPolygonCommandFactory() |
| 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
|
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)
|
applyCssContextStyle, createCommandgetStatus, updateStatuspublic static final IFactoryInstantiator<AddPolygonCommandFactory> INSTANTIATOR
protected org.vectomatic.dom.svg.OMSVGPolygonElement polygon
protected org.vectomatic.dom.svg.OMSVGPointList points
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 void stop()
ICommandFactorystop in interface ICommandFactorystop in class CommandFactoryBasepublic boolean processMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
MouseDownProcessorprocessMouseDown in interface MouseDownProcessorpublic boolean processMouseMove(com.google.gwt.event.dom.client.MouseMoveEvent event)
MouseMoveProcessorprocessMouseMove in interface MouseMoveProcessorCopyright © 2018. All Rights Reserved.