congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EditorSession.getCanvas
Code IndexAdd Tabnine to your IDE (free)

How to use
getCanvas
method
in
org.kie.workbench.common.stunner.core.client.session.impl.EditorSession

Best Java code snippets using org.kie.workbench.common.stunner.core.client.session.impl.EditorSession.getCanvas (Showing top 3 results out of 315)

origin: org.kie.workbench.stunner/kie-wb-common-stunner-client-common

  private void updateGrid() {
    getSession().getCanvas().setGrid(GRIDS[gridIndex]);
  }
}
origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets

@Before
public void setup() throws Exception {
  super.init();
  when(canvasHandler.getDiagram()).thenReturn(diagram);
  when(session.getCanvasHandler()).thenReturn(canvasHandler);
  when(session.getCanvas()).thenReturn(canvas);
  when(session.getZoomControl()).thenReturn(zoomControl);
  when(session.getSelectionControl()).thenReturn(selectionControl);
  when(session.getConnectionAcceptorControl()).thenReturn(connectionAcceptorControl);
  when(session.getContainmentAcceptorControl()).thenReturn(containmentAcceptorControl);
  when(session.getDockingAcceptorControl()).thenReturn(dockingAcceptorControl);
  when(metadata.getDefinitionSetId()).thenReturn(DEFINITION_SET_ID);
  when(preferencesRegistries.get(DEFINITION_SET_ID, StunnerPreferences.class)).thenReturn(stunnerPreferences);
  this.tested = new SessionEditorImpl<>(view, canvasPanel, preferencesRegistries);
}
origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets

when(canvasHandler.getDiagram()).thenReturn(diagram);
when(session.getCanvasHandler()).thenReturn(canvasHandler);
when(session.getCanvas()).thenReturn(canvas);
when(session.getZoomControl()).thenReturn(zoomControl);
when(session.getConnectionAcceptorControl()).thenReturn(connectionAcceptorControl);
org.kie.workbench.common.stunner.core.client.session.implEditorSessiongetCanvas

Popular methods of EditorSession

  • getSelectionControl
  • getCanvasHandler
  • getCommandManager
  • getCommandRegistry
  • getKeyboardControl
  • getZoomControl
  • getClipboardControl
  • getConnectionAcceptorControl
  • getContainmentAcceptorControl
  • getDockingAcceptorControl
  • getSessionUUID
  • getSessionUUID

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Collectors (java.util.stream)
  • JLabel (javax.swing)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now