Class AbstractCanvasView<V extends AbstractCanvasView>
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- org.kie.workbench.common.stunner.core.client.canvas.AbstractCanvasView<V>
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget,com.google.gwt.user.client.ui.ProvidesResize,com.google.gwt.user.client.ui.RequiresResize,AbstractCanvas.CanvasView<V>
public abstract class AbstractCanvasView<V extends AbstractCanvasView> extends com.google.gwt.user.client.ui.Composite implements AbstractCanvas.CanvasView<V>, com.google.gwt.user.client.ui.ProvidesResize, com.google.gwt.user.client.ui.RequiresResize
-
-
Field Summary
Fields Modifier and Type Field Description static StringCURSORstatic StringCURSOR_NOT_ALLOWED
-
Constructor Summary
Constructors Constructor Description AbstractCanvasView()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddestroy()protected abstract voiddoDestroy()protected abstract VdoInitialize(CanvasSettings canvasSettings)org.kie.workbench.common.stunner.core.graph.content.view.Point2DgetAbsoluteLocation()CanvasPanelgetPanel()voidinit()Vinitialize(CanvasPanel canvasPanel, CanvasSettings canvasSettings)voidonResize()VsetCursor(AbstractCanvas.Cursors cursor)protected voidsetViewCursor(AbstractCanvas.Cursors cursor)static com.google.gwt.dom.client.Style.CursortoViewCursor(AbstractCanvas.Cursors cursor)-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.kie.workbench.common.stunner.core.client.canvas.AbstractCanvas.CanvasView
add, addChild, clear, delete, deleteChild, dock, getTransform, setGrid, undock
-
-
-
-
Field Detail
-
CURSOR
public static final String CURSOR
- See Also:
- Constant Field Values
-
CURSOR_NOT_ALLOWED
public static final String CURSOR_NOT_ALLOWED
- See Also:
- Constant Field Values
-
-
Method Detail
-
doInitialize
protected abstract V doInitialize(CanvasSettings canvasSettings)
-
doDestroy
protected abstract void doDestroy()
-
init
@PostConstruct public void init()
-
initialize
public final V initialize(CanvasPanel canvasPanel, CanvasSettings canvasSettings)
- Specified by:
initializein interfaceAbstractCanvas.CanvasView<V extends AbstractCanvasView>
-
onResize
public void onResize()
- Specified by:
onResizein interfacecom.google.gwt.user.client.ui.RequiresResize
-
setCursor
public V setCursor(AbstractCanvas.Cursors cursor)
- Specified by:
setCursorin interfaceAbstractCanvas.CanvasView<V extends AbstractCanvasView>
-
setViewCursor
protected void setViewCursor(AbstractCanvas.Cursors cursor)
-
getAbsoluteLocation
public org.kie.workbench.common.stunner.core.graph.content.view.Point2D getAbsoluteLocation()
- Specified by:
getAbsoluteLocationin interfaceAbstractCanvas.CanvasView<V extends AbstractCanvasView>
-
getPanel
public CanvasPanel getPanel()
- Specified by:
getPanelin interfaceAbstractCanvas.CanvasView<V extends AbstractCanvasView>
-
destroy
public final void destroy()
- Specified by:
destroyin interfaceAbstractCanvas.CanvasView<V extends AbstractCanvasView>
-
toViewCursor
public static com.google.gwt.dom.client.Style.Cursor toViewCursor(AbstractCanvas.Cursors cursor)
-
-