public class AddPolylineCommandFactory extends AddCommandFactoryBase implements MouseDownProcessor, MouseMoveProcessor
Modifier and Type | Field and Description |
---|---|
static IFactoryInstantiator<AddPolylineCommandFactory> |
INSTANTIATOR |
protected org.vectomatic.dom.svg.OMSVGPointList |
points |
protected org.vectomatic.dom.svg.OMSVGPolylineElement |
polyline
The new polyline element
|
oneShot, owner
status
Constructor and Description |
---|
AddPolylineCommandFactory() |
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, createCommand
getStatus, updateStatus
public static final IFactoryInstantiator<AddPolylineCommandFactory> INSTANTIATOR
protected org.vectomatic.dom.svg.OMSVGPolylineElement polyline
protected org.vectomatic.dom.svg.OMSVGPointList points
public IFactoryInstantiator<?> getInstantiator()
getInstantiator
in interface ICommandFactory
public void start(Object requester)
ICommandFactory
start
in interface ICommandFactory
start
in class AddCommandFactoryBase
requester
- The object requesting this command to startpublic void stop()
ICommandFactory
stop
in interface ICommandFactory
stop
in class CommandFactoryBase
public boolean processMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
MouseDownProcessor
processMouseDown
in interface MouseDownProcessor
public boolean processMouseMove(com.google.gwt.event.dom.client.MouseMoveEvent event)
MouseMoveProcessor
processMouseMove
in interface MouseMoveProcessor
Copyright © 2018. All Rights Reserved.