Examples of Background


Examples of GUI.Interfaces.Background

    add(passwordField);
    add(loginName);
    add(connectionType);
    add(applyButton);
   
    Background background = new StandardBackground(false, rectangle, -1);
        add((Component) background);
        background.setBounds(0, 0, rectangle.width, rectangle.height);
   
    applyButton.addActionListener(new ActionListener(){

     
      public void actionPerformed(ActionEvent e) {
View Full Code Here

Examples of GUI.Interfaces.Background

  public NotificationWindow(Rectangle rectangle, String text, Status status, NotificationListener listener) {

    message = text;
    setBounds(rectangle);
   
    Background background = new StandardBackground(false, rectangle, -1);
        add((Component) background);
        background.setBounds(0, 0, rectangle.width, rectangle.height);
       
    this.status = status;
    com.sun.awt.AWTUtilities.setWindowOpacity(this, 0.0f);
    notificationListener = listener;
View Full Code Here

Examples of GUI.Interfaces.Background

            statusBar = new ImageBar(40, 100, 3, symbols, 35, 6, 25, 1, false);
            add(statusBar);
            statusBar.setBounds(10,10,40,100);
            statusBar.addImageBarListener(this);
           
              Background background = new StandardBackground(false, new Rectangle(x, y, width, height), -1);
              add((Component) background);
              background.setBounds(0, 0, width, height);     

              setVisible(true);
              com.sun.awt.AWTUtilities.setWindowOpacity(this, 0.75f);
          }     
View Full Code Here

Examples of com.golden.gamedev.object.Background

   *
   * @param sprite sprite to check its intersection with mouse pointer
   * @param pixelCheck true, checking the sprite image with pixel precision
   */
  public boolean checkPosMouse(Sprite sprite, boolean pixelCheck) {
    Background bg = sprite.getBackground();
   
    // check whether the mouse is in background clip area
    if (this.getMouseX() < bg.getClip().x
            || this.getMouseY() < bg.getClip().y
            || this.getMouseX() > bg.getClip().x + bg.getClip().width
            || this.getMouseY() > bg.getClip().y + bg.getClip().height) {
      return false;
    }
   
    double mosx = this.getMouseX() + bg.getX() - bg.getClip().x;
    double mosy = this.getMouseY() + bg.getY() - bg.getClip().y;
   
    if (pixelCheck) {
      try {
        return ((sprite.getImage().getRGB((int) (mosx - sprite.getX()),
                (int) (mosy - sprite.getY())) & 0xFF000000) != 0x00);
View Full Code Here

Examples of com.technophobia.substeps.model.Background

        if (currentBackground != null) {

            final int backgroundLineNumberIdx = backgroundLineNumber();

            scenario.setBackground(new Background(backgroundLineNumberIdx, currentBackground, ff.getSourceFile()));

        }
    }
View Full Code Here

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

    }

    public void init() {
        key = new Keyboard();       
        snake = new SnakeCharacter(WIDTH, HEIGHT, screen, WIDTH / 2, HEIGHT / 2, key, speed);
        bg = new Background("/snakebg.png", WIDTH, HEIGHT, screen);
       
        count = 0;
        score = 0;
       
        gs = GameState.RUNNING;
View Full Code Here

Examples of gherkin.formatter.model.Background

        stash.reset();
    }

    @Override
    public void background(String keyword, String name, String description, Integer line) {
        formatter.background(new Background(stash.comments, keyword, name, description, line));
        stash.reset();
    }
View Full Code Here

Examples of it.marteEngine.game.starcleaner.Background

    // setCamera(new Camera(this, player, container.getWidth(),
    // container.getHeight()));
    setCamera(new Camera(this, player, container.getWidth(),
        container.getHeight(), 550, 170, player.maxSpeed));

    add(new Background(0, 0), BELOW);

    time = 0;

    FuzzyPlayer.life = 3;
View Full Code Here

Examples of javafx.scene.layout.Background

    }

    @Override public void start(Stage stage) {
        VBox pane = new VBox();
        pane.setPadding(new Insets(10, 10, 10, 10));
        pane.setBackground(new Background(new BackgroundFill(Color.web("#34495e"), CornerRadii.EMPTY, Insets.EMPTY)));
        pane.setSpacing(20);
        pane.setAlignment(Pos.CENTER);
        pane.getChildren().addAll(onOffSwitch, iconSwitchSymbol, iconSwitchText, iconSwitchSymbol1);

        Scene scene = new Scene(pane, 100, 150);
View Full Code Here

Examples of javafx.scene.layout.Background

    }

    @Override public void start(Stage stage) {
        StackPane pane = new StackPane();
        pane.setPadding(new Insets(5, 5, 5, 5));
        pane.setBackground(new Background(new BackgroundFill(Color.rgb(70, 70, 70), CornerRadii.EMPTY, Insets.EMPTY)));
        pane.getChildren().setAll(signalTower);

        Scene scene = new Scene(pane);

        stage.setTitle("SignalTower");
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.