public class AddEllipseCommandFactory extends AddCommandFactoryBase implements MouseDownProcessor, MouseMoveProcessor, MouseUpProcessor
Modifier and Type | Field and Description |
---|---|
protected org.vectomatic.dom.svg.OMSVGPoint |
c
The ellipse center
|
protected org.vectomatic.dom.svg.OMSVGEllipseElement |
ellipse
The new ellipse element
|
static IFactoryInstantiator<AddEllipseCommandFactory> |
INSTANTIATOR |
protected org.vectomatic.dom.svg.OMSVGPoint |
p
The ellipse corner
|
oneShot, owner
status
Constructor and Description |
---|
AddEllipseCommandFactory() |
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, createCommand
getStatus, stop, updateStatus
public static final IFactoryInstantiator<AddEllipseCommandFactory> INSTANTIATOR
protected org.vectomatic.dom.svg.OMSVGEllipseElement ellipse
protected org.vectomatic.dom.svg.OMSVGPoint c
protected org.vectomatic.dom.svg.OMSVGPoint p
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 boolean processMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
MouseDownProcessor
processMouseDown
in interface MouseDownProcessor
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
Copyright © 2018. All Rights Reserved.