public class DragResizeMoveEvent extends AbstractSmartEvent<DragResizeMoveHandler> implements Cancellable
jsObj
Constructor and Description |
---|
DragResizeMoveEvent(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Call this method to cancel the default behavior of allowing the shape to be drag-resized
|
protected void |
dispatch(DragResizeMoveHandler handler) |
static <S extends HasDragResizeMoveHandlers & com.google.gwt.event.shared.HasHandlers> |
fire(S source,
com.google.gwt.core.client.JavaScriptObject jsObj)
Fires a open event on all registered handlers in the handler manager.If no
such handlers exist, this method will do nothing.
|
com.google.gwt.event.shared.GwtEvent.Type<DragResizeMoveHandler> |
getAssociatedType() |
DrawItem |
getFiringDrawItem()
Returns the
DrawItem firing the
event. |
int |
getNewHeight()
new height of this draw item
|
int |
getNewWidth()
new width of this draw item
|
int |
getNewX()
new X coordinate of this draw item within the DrawPane
|
int |
getNewY()
new Y coordinate of this draw item within the DrawPane
|
static com.google.gwt.event.shared.GwtEvent.Type<DragResizeMoveHandler> |
getType()
Gets the type associated with this event.
|
boolean |
isCancelled() |
getFiringInstanceAsJavaScriptObject
assertLive, getSource, isLive, kill, revive
public DragResizeMoveEvent(com.google.gwt.core.client.JavaScriptObject jsObj)
public DrawItem getFiringDrawItem()
DrawItem
firing the
event.public static <S extends HasDragResizeMoveHandlers & com.google.gwt.event.shared.HasHandlers> void fire(S source, com.google.gwt.core.client.JavaScriptObject jsObj)
S
- The event sourcesource
- the source of the handlersjsObj
- the native eventpublic static com.google.gwt.event.shared.GwtEvent.Type<DragResizeMoveHandler> getType()
protected void dispatch(DragResizeMoveHandler handler)
dispatch
in class com.google.gwt.event.shared.GwtEvent<DragResizeMoveHandler>
public final com.google.gwt.event.shared.GwtEvent.Type<DragResizeMoveHandler> getAssociatedType()
getAssociatedType
in class com.google.gwt.event.shared.GwtEvent<DragResizeMoveHandler>
public void cancel()
cancel
in interface Cancellable
public boolean isCancelled()
isCancelled
in interface Cancellable
public int getNewX()
public int getNewY()
public int getNewWidth()
public int getNewHeight()