public abstract class EditManipulatorBase extends Object implements MouseDownProcessor, MouseMoveProcessor, MouseUpProcessor, KeyPressProcessor, com.extjs.gxt.ui.client.data.ChangeListener
Modifier and Type | Field and Description |
---|---|
protected org.vectomatic.dom.svg.OMSVGGElement |
g
The group where SVG elements representing this
manipulator are nested
|
protected boolean |
monitorModel
True to temporarily disconnect from model updates, false otherwise
|
protected com.extjs.gxt.ui.client.store.Record |
record
A SVGElementModel record this manipulator applies to.
|
protected org.vectomatic.dom.svg.OMSVGSVGElement |
svg
The SVG element this manipulator lives in
|
Constructor and Description |
---|
EditManipulatorBase() |
Modifier and Type | Method and Description |
---|---|
abstract org.vectomatic.dom.svg.OMSVGElement |
bind(com.extjs.gxt.ui.client.store.Record record)
Binds this manipulator to the specified SVG element.
|
org.vectomatic.dom.svg.OMSVGPoint |
getCoordinates(com.google.gwt.event.dom.client.MouseEvent<? extends com.google.gwt.event.shared.EventHandler> e,
org.vectomatic.dom.svg.OMSVGMatrix m)
Returns the coordinates of a mouse event, converted
to the coordinate system of the specified matrix
|
com.extjs.gxt.ui.client.store.Record |
getManipulatedElement()
Returns the circle this manipulator applies to.
|
org.vectomatic.dom.svg.OMSVGElement |
getManipulatorElement()
Returns the graphical element which represents this manipulator.
|
void |
modelChanged(com.extjs.gxt.ui.client.data.ChangeEvent event) |
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
|
protected void |
scheduleInit() |
abstract void |
unbind()
Detaches this manipulator from the DOM tree
|
protected com.extjs.gxt.ui.client.store.Record record
protected boolean monitorModel
protected org.vectomatic.dom.svg.OMSVGSVGElement svg
protected org.vectomatic.dom.svg.OMSVGGElement g
public 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
public boolean processKeyPress(com.extjs.gxt.ui.client.event.ComponentEvent event)
KeyPressProcessor
processKeyPress
in interface KeyPressProcessor
public org.vectomatic.dom.svg.OMSVGElement getManipulatorElement()
public com.extjs.gxt.ui.client.store.Record getManipulatedElement()
public abstract void unbind()
public abstract org.vectomatic.dom.svg.OMSVGElement bind(com.extjs.gxt.ui.client.store.Record record)
record
- The SVGElementModel record this manipulator is applied to.protected void scheduleInit()
public org.vectomatic.dom.svg.OMSVGPoint getCoordinates(com.google.gwt.event.dom.client.MouseEvent<? extends com.google.gwt.event.shared.EventHandler> e, org.vectomatic.dom.svg.OMSVGMatrix m)
e
- A mouse eventm
- A transformation matrixpublic void modelChanged(com.extjs.gxt.ui.client.data.ChangeEvent event)
modelChanged
in interface com.extjs.gxt.ui.client.data.ChangeListener
Copyright © 2018. All Rights Reserved.