Examples of Screen


Examples of com.mrdls.tc.screen.Screen

  public static void init(){
    cursorLocation = new Point(0, 0);
    mouseListener = new MouseListener();
   
    frame = new JFrame(Finals.PROJECT_NAME);
    screen = new Screen();
    tc = new TerrariaClone();
    thread = new Thread(Variables.tc);
    screenSize = Finals.SIZE_DEFAULT;
   
    Canvas c = new Canvas();
View Full Code Here

Examples of com.netfever.web.struts.db.config.Screen

  @Override
  protected void execute(AnyActionForm form, HttpServletRequest request,
      HttpServletResponse response, RunnableQuery query) throws Exception
  {
    EditActionResult result;
    Screen screen;
    String screename;
    String s;
    int key;
       
    s = form.getString("key");
View Full Code Here

Examples of com.sun.glass.ui.Screen

          preferredBounds.getMinY(),
          Math.max(minWidth, preferredBounds.getWidth()),
          Math.max(minHeight, preferredBounds.getHeight()));
     
      // Get the Screen to display the dialog
      Screen screen = parentBounds != null
          ? Screen.getScreenForLocation(
              (int) (parentBounds.getMinX() + parentBounds.getWidth() / 2),
              (int) (parentBounds.getMinY() + parentBounds.getHeight() / 2))
          : null;
      if (screen == null) {
        screen = Screen.getMainScreen();
      }
     
      // Make sure the dialog doesn't exceed 70% of the screen size
     
      // Create the unpositioned rectangle for the dialog
      Rectangle2D rect = new Rectangle2D(
          screen.getX(),
          screen.getY(),
          Math.min(preferredBounds.getWidth(), screen.getWidth() * 0.7),
          Math.min(preferredBounds.getHeight(), screen.getHeight() * 0.7));
     
      // Position the rectangle (center over parent, then make sure it's contained in the screen)
     
      Rectangle2D screenBounds = new Rectangle2D(screen.getX(), screen.getY(), screen.getWidth(), screen.getHeight());
      if (parentBounds == null) {
        parentBounds = screenBounds;
      }
     
      rect = GeoFx.center(rect, parentBounds);
View Full Code Here

Examples of com.thecherno.cherno.engine.graphics.Screen

   *            The height of the display (and window) in pixels.
   */
  protected final void createDisplay(String name, int width, int height) {
    startTimer = System.currentTimeMillis();
    display = new Display(new Window(name, width, height));
    screen = new Screen(width, height, 1.0);
  }
View Full Code Here

Examples of com.trevor.king.Mines.graphics.Screen

        Toolkit kit = Toolkit.getDefaultToolkit();
        icon = kit.createImage(url);

        image = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_RGB);
        pixels = ((DataBufferInt) image.getRaster().getDataBuffer()).getData();
        screen = new Screen(WIDTH, HEIGHT);
        mines = new Minefield(FIELD_X, FIELD_Y, NUM_MINES, MINE_SIZE, MINE_SIZE, BUFFER, EDGE, screen);

        score = NUM_MINES;

        clock = new Clock();
View Full Code Here

Examples of com.trevor.king.Snake.graphics.Screen

        setMaximumSize(size);
        setMinimumSize(size);
       
        image = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_ARGB);
        pixels = ((DataBufferInt) image.getRaster().getDataBuffer()).getData();
        screen = new Screen(WIDTH, HEIGHT);
       
        URL url = ClassLoader.getSystemResource("SnakeLogo.png");
        Toolkit kit = Toolkit.getDefaultToolkit();
        icon = kit.createImage(url);
    }
View Full Code Here

Examples of com.vadman.shooter.graphics.Screen

    Dimension size = new Dimension(WIDTH, HEIGHT);
    setPreferredSize(size);
    setMinimumSize(size);
    setMaximumSize(size);
    game = new Game();
    screen = new Screen(WIDTH, HEIGHT);
    img = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_RGB);
    pixels = ((DataBufferInt) img.getRaster().getDataBuffer()).getData();
  }
View Full Code Here

Examples of com.vsked.util.Screen

    ServletOutputStream out = response.getOutputStream();
    try {
      Robot r = new Robot();
      Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
      Rectangle re = new Rectangle(d);
      Screen s = new Screen(r, re);
      ImageIO.setUseCache(false);
      ImageIO.write(s.getScreenPictureBuffer(), "jpeg", out);
    } catch (Exception e) {
      //e.printStackTrace();
    }finally{
      out.close();
    }
View Full Code Here

Examples of de.fu_berlin.inf.dpp.videosharing.source.Screen

         */
        protected synchronized void startHost()
            throws EncoderInitializationException {
            if (isDisposing)
                return;
            screen = new Screen(this);

            try {
                encoder = Encoder.getEncoder(getCodec(),
                    connectionFactory.getVideoOutputStream(), screen, this);
            } catch (EncoderInitializationException e) {
View Full Code Here

Examples of de.lessvoid.nifty.screen.Screen

    LwjglInitHelper.renderLoop(nifty, null);
    LwjglInitHelper.destroy();
  }

  private static Screen createIntroScreen(final Nifty nifty) {
    Screen screen = new ScreenBuilder("start") {{
      controller(new DefaultScreenController() {
        @Override
        public void onStartScreen() {
          nifty.gotoScreen("demo");
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.