public class DragResizeStartEvent extends AbstractSmartEvent<DragResizeStartHandler> implements Cancellable
GwtEvent.Type<H>
jsObj
Constructor and Description |
---|
DragResizeStartEvent(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(DragResizeStartHandler handler) |
static <S extends HasDragResizeStartHandlers & HasHandlers> |
fire(S source,
JavaScriptObject jsObj)
Fires a open event on all registered handlers in the handler manager.If no
such handlers exist, this method will do nothing.
|
GwtEvent.Type<DragResizeStartHandler> |
getAssociatedType() |
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 GwtEvent.Type<DragResizeStartHandler> |
getType()
Gets the type associated with this event.
|
boolean |
isCancelled() |
assertLive, getSource, isLive, kill, revive
setSource, toDebugString, toString
public DragResizeStartEvent(JavaScriptObject jsObj)
public static <S extends HasDragResizeStartHandlers & HasHandlers> void fire(S source, JavaScriptObject jsObj)
S
- The event sourcesource
- the source of the handlersjsObj
- the native eventpublic static GwtEvent.Type<DragResizeStartHandler> getType()
protected void dispatch(DragResizeStartHandler handler)
dispatch
in class GwtEvent<DragResizeStartHandler>
public final GwtEvent.Type<DragResizeStartHandler> getAssociatedType()
getAssociatedType
in class GwtEvent<DragResizeStartHandler>
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()