Package de.yaams.extensions.basemap.tiled.mapeditor.widget

Examples of de.yaams.extensions.basemap.tiled.mapeditor.widget.IntegerSpinner


    JLabel heightLabel = new JLabel(HEIGHT_LABEL);

    objectName = new JTextField(UNTITLED_OBJECT);
    objectType = new JTextField();
    objectImageSource = new JTextField();
    objectWidth = new IntegerSpinner(0, 0, 1024);
    objectHeight = new IntegerSpinner(0, 0, 1024);

    final JButton browseButton = new JButton(BROWSE_BUTTON);
    browseButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent actionEvent) {
View Full Code Here


    // Create the primitives

    bOk = new JButton(OK_BUTTON);
    bCancel = new JButton(CANCEL_BUTTON);

    width = new IntegerSpinner(currentMap.getWidth(), 1);
    height = new IntegerSpinner(currentMap.getHeight(), 1);
    offsetX = new IntegerSpinner();
    offsetY = new IntegerSpinner();

    offsetX.addChangeListener(this);
    offsetY.addChangeListener(this);

    orient = new ResizePanel(currentMap);
View Full Code Here

    marginLabel = new JLabel(TILE_MARGIN_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);
    tileMargin = new IntegerSpinner(0, 0);
    tilebmpFile = new JTextField(10);
    tilebmpFile.setEnabled(false);

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

    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);
    // gridColor = new JColorChooser();

    // Set up the layout
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

TOP

Related Classes of de.yaams.extensions.basemap.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.