congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Kernel (java.awt.image)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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