Package tiled.mapeditor.widget

Examples of tiled.mapeditor.widget.IntegerSpinner


        rbEmbedInTiles = new JRadioButton(EMBED_IN_TILES_CHECKBOX);
        rbEmbedInSet = new JRadioButton(EMBED_IN_SET_CHECKBOX);
        ButtonGroup bg = new ButtonGroup();
        bg.add(rbEmbedInTiles);
        bg.add(rbEmbedInSet);
        undoDepth = new IntegerSpinner();
        cbGridAA = new JCheckBox(ANTIALIASING_CHECKBOX);
        gridOpacitySlider = new JSlider(0, 255, 255);
        tfScriptsLocation = new JTextField();
        bScriptsSave = new JButton("save");
        //gridColor = new JColorChooser();
View Full Code Here


        JLabel widthLabel = new JLabel(WIDTH_LABEL);
        JLabel heightLabel = new JLabel(HEIGHT_LABEL);

        unitName = new JTextField(UNTITLED_UNIT);
        unitType = new JTextField();
        unitWidth = new IntegerSpinner(0, 0, 1024);
        unitHeight = new IntegerSpinner(0, 0, 1024);

        JPanel miscPropPanel = new VerticalStaticJPanel();
        miscPropPanel.setLayout(new GridBagLayout());
        miscPropPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 5, 0));
        GridBagConstraints c = new GridBagConstraints();
View Full Code Here

        JLabel nameLabel = new JLabel(NAME_LABEL);
        JLabel widthLabel = new JLabel(WIDTH_LABEL);
        JLabel heightLabel = new JLabel(HEIGHT_LABEL);

        zoneName = new JTextField(UNTITLED_OBJECT);
        zoneWidth = new IntegerSpinner(0, 0, 1024);
        zoneHeight = new IntegerSpinner(0, 0, 1024);

        JPanel miscPropPanel = new VerticalStaticJPanel();
        miscPropPanel.setLayout(new GridBagLayout());
        miscPropPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 5, 0));
        GridBagConstraints c = new GridBagConstraints();
View Full Code Here

        int defaultTileWidth = prefs.getInt("tileWidth", 35);
        int defaultTileHeight = prefs.getInt("tileHeight", 35);

        // Create the primitives

        mapWidth = new IntegerSpinner(defaultMapWidth, 1);
        mapHeight = new IntegerSpinner(defaultMapHeight, 1);
        tileWidth = new IntegerSpinner(defaultTileWidth, 1);
        tileHeight = new IntegerSpinner(defaultTileHeight, 1);

        // Map size fields

        JPanel mapSize = new VerticalStaticJPanel();
        mapSize.setLayout(new GridBagLayout());
View Full Code Here

                    BorderFactory.createEmptyBorder(0, 5, 5, 5)));
        presets.setLayout(new GridLayout(1, 1));
        presets.add(brushScrollPane);

        // Brush size
        brushSize = new IntegerSpinner(1, 1);
        if (myBrush != null) {
          Rectangle r = myBrush.getBounds();
            brushSize.setValue(r.width);
        }
        brushSize.addChangeListener(this);
        brushSize.setToolTipText(BRUSH_SIZE_TOOLTIP);

        // Number of affected layers
        affectLayers = new IntegerSpinner(myBrush.getAffectedLayers(), 1);
        affectLayers.addChangeListener(this);

        // Randomize tile placement
        cbRandomBrush = new JCheckBox(RANDOM_CHECKBOX);
        cbRandomBrush.setToolTipText(RANDOM_BRUSH_TOOLTIP);
View Full Code Here

        spacingLabel = new JLabel(TILE_SPACING_LABEL);
        tilebmpFileLabel = new JLabel(IMAGE_LABEL);
        cutterLabel = new JLabel("Tile Cutter: ");

        tilesetName = new JTextField(UNTITLED_FILE);
        tileWidth = new IntegerSpinner(map.getTileWidth(), 1, 1024);
        tileHeight = new IntegerSpinner(map.getTileHeight(), 1, 1024);
        tileSpacing = new IntegerSpinner(0, 0);
        tilebmpFile = new JTextField(10);
        tilebmpFile.setEnabled(false);

        nameLabel.setLabelFor(tilesetName);
        tileWidthLabel.setLabelFor(tileWidth);
View Full Code Here

TOP

Related Classes of tiled.mapeditor.widget.IntegerSpinner

Copyright © 2018 www.massapicom. 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.