/*
 * RulesBrickPanel.java
 * In this panel all available rule bricks are displayed
 * Created on 25. August 2004, 19:39
 */

package TUGLaby;

import java.awt.Color;
import java.awt.Image;
import java.util.HashMap;

/**
 * 
 * @author user
 */
public class RulesBrickPanel extends javax.swing.JPanel {
    private BrickPanel condition_rule_;

    private BrickPanel action_rule_;

    /** Creates a new instance of RulesBrickPanel */

    public RulesBrickPanel(HashMap brick_images) {

        this.setBackground(Color.red);

        condition_rule_ = new BrickPanel("ConditionRule", (Image) brick_images
                .get("CONDITION_DEFAULT"), (Image) brick_images
                .get("CONDITION_HOVER"));
        action_rule_ = new BrickPanel("ActionRule", (Image) brick_images
                .get("ACTION_DEFAULT"), (Image) brick_images
                .get("ACTION_HOVER"));

        setLayout(null);
        this.add(condition_rule_);
        this.add(action_rule_);
        condition_rule_
                .setToolTipText("<html>Um auf Gegebenheiten im Labyrinth zu reagieren<br> musst du"
                        + " mittels einer <bold>Bedingung</bold> den Zustand abfragen.</html>");
        action_rule_.setToolTipText("Bla Bla");
        condition_rule_.setBounds(1, 1, 120, 60);
        action_rule_.setBounds(122, 1, 120, 60);

    }

}
