- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Charset c =
String charsetName;Charset.forName(charsetName)
Charset.defaultCharset()
ContentType contentType;contentType.getCharset()
- Smart code suggestions by Codota
}
private void handleDrawOnMap(GODrawEvent drawEvent) { this.currentSelectionAreaStart = drawEvent.getDrawPosition(); updateSelectionArea = true; drawEvent.setHandler(this.drawSelectionHandler); }
@Override public boolean handleDrawEvent(GODrawEvent event) { if (context != null) { event.setHandler(new GOEventHandlerImplementation(event.getDrawPosition())); } return true; }
@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; } }