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

How to use
ScreenChangeAction
in
jsettlers.common.action

Best Java code snippets using jsettlers.common.action.ScreenChangeAction (Showing top 3 results out of 315)

origin: jsettlers/settlers-remake

private void adaptScreenSize() {
  FloatRectangle newScreen = context.getScreen().getPosition();
  if (!newScreen.equals(oldScreen)) {
    getInterfaceConnector().fireAction(new ScreenChangeAction(context.getScreenArea()));
  }
  oldScreen = newScreen;
}
origin: jsettlers/settlers-remake

case SCREEN_CHANGE:
  ScreenChangeAction screenAction = (ScreenChangeAction) action;
  controls.setMapViewport(screenAction.getScreenArea());
  break;
case ZOOM_IN:
origin: jsettlers/settlers-remake

constructionMarksCalculator.setScreen(((ScreenChangeAction) action).getScreenArea());
break;
jsettlers.common.actionScreenChangeAction

Javadoc

This action is fired whenever the visible map area has been changed by the user.

Most used methods

  • getScreenArea
    Gets the new area of the screen.
  • <init>
    Creates a new screen change action.

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JComboBox (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