Codota Logo
GODrawEvent.setHandler
Code IndexAdd Codota to your IDE (free)

How to use
setHandler
method
in
go.graphics.event.mouse.GODrawEvent

Best Java code snippets using go.graphics.event.mouse.GODrawEvent.setHandler (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: jsettlers/settlers-remake

private void handleDrawOnMap(GODrawEvent drawEvent) {
  this.currentSelectionAreaStart = drawEvent.getDrawPosition();
  updateSelectionArea = true;
  drawEvent.setHandler(this.drawSelectionHandler);
}
origin: jsettlers/settlers-remake

@Override
public boolean handleDrawEvent(GODrawEvent event) {
  if (context != null) {
    event.setHandler(new GOEventHandlerImplementation(event.getDrawPosition()));
  }
  return true;
}
origin: jsettlers/settlers-remake

@Override
public boolean handleDrawEvent(GODrawEvent event) {
  if (!containsPoint(event.getDrawPosition())) {
    return false;
  }
  Action action = getActionForDraw(event);
  if (action != null && context != null && minimap != null) {
    float y = context.getScreen().getHeight() / 2;
    float x = context.getScreen().getWidth() / 2;
    startMapPosition = context.getPositionOnScreen(x, y);
    event.setHandler(new DrawMinimapHandler());
    return true;
  } else {
    return false;
  }
}
go.graphics.event.mouseGODrawEventsetHandler

Popular methods of GODrawEvent

  • getDrawPosition
    gets the position the mouse is currently on. May not be null.

Popular in Java

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • findViewById (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • String (java.lang)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now