Examples of createRegion()


Examples of games.stendhal.client.sprite.Sprite.createRegion()

    String imageName = "data/sprites/doors/" + baseImage + "_" + orientation +".png";
    Sprite[] s = sprites.get(imageName);
    if (s == null) {
      Sprite sprite = SpriteStore.get().getSprite(imageName);
      s = new Sprite[2];
      s[0] = sprite.createRegion(0, 0, 96, 96, null);
      s[1] = sprite.createRegion(0, 96, 96, 96, null);
      sprites.put(imageName, s);
    }
   
    openSprite = s[0];
View Full Code Here

Examples of games.stendhal.client.sprite.Sprite.createRegion()

    Sprite[] s = sprites.get(imageName);
    if (s == null) {
      Sprite sprite = SpriteStore.get().getSprite(imageName);
      s = new Sprite[2];
      s[0] = sprite.createRegion(0, 0, 96, 96, null);
      s[1] = sprite.createRegion(0, 96, 96, 96, null);
      sprites.put(imageName, s);
    }
   
    openSprite = s[0];
    closedSprite = s[1];
View Full Code Here

Examples of net.rim.device.api.ui.component.table.DataTemplate.createRegion()

                return fields;
            }
        };

        // Set up regions
        dataTemplate.createRegion(new XYRect(0, 0, 1, 2), style);
        dataTemplate.createRegion(new XYRect(1, 0, 2, 1), style);
        dataTemplate.createRegion(new XYRect(1, 1, 1, 1), style);
        dataTemplate.createRegion(new XYRect(2, 1, 1, 1), style);

        // Specify the size of each column by percentage, and the height of a
View Full Code Here

Examples of net.rim.device.api.ui.component.table.DataTemplate.createRegion()

            }
        };

        // Set up regions
        dataTemplate.createRegion(new XYRect(0, 0, 1, 2), style);
        dataTemplate.createRegion(new XYRect(1, 0, 2, 1), style);
        dataTemplate.createRegion(new XYRect(1, 1, 1, 1), style);
        dataTemplate.createRegion(new XYRect(2, 1, 1, 1), style);

        // Specify the size of each column by percentage, and the height of a
        // row
View Full Code Here

Examples of net.rim.device.api.ui.component.table.DataTemplate.createRegion()

        };

        // Set up regions
        dataTemplate.createRegion(new XYRect(0, 0, 1, 2), style);
        dataTemplate.createRegion(new XYRect(1, 0, 2, 1), style);
        dataTemplate.createRegion(new XYRect(1, 1, 1, 1), style);
        dataTemplate.createRegion(new XYRect(2, 1, 1, 1), style);

        // Specify the size of each column by percentage, and the height of a
        // row
        dataTemplate.setColumnProperties(0, new TemplateColumnProperties(15,
View Full Code Here

Examples of net.rim.device.api.ui.component.table.DataTemplate.createRegion()

        // Set up regions
        dataTemplate.createRegion(new XYRect(0, 0, 1, 2), style);
        dataTemplate.createRegion(new XYRect(1, 0, 2, 1), style);
        dataTemplate.createRegion(new XYRect(1, 1, 1, 1), style);
        dataTemplate.createRegion(new XYRect(2, 1, 1, 1), style);

        // Specify the size of each column by percentage, and the height of a
        // row
        dataTemplate.setColumnProperties(0, new TemplateColumnProperties(15,
                TemplateColumnProperties.PERCENTAGE_WIDTH));
View Full Code Here

Examples of net.rim.device.api.ui.component.table.DataTemplate.createRegion()

        dataTemplate.useFixedHeight(true);

        // Define regions and row height
        dataTemplate.setRowProperties(0, new TemplateRowProperties(ROW_HEIGHT));
        for (int i = 0; i < NUM_COLUMNS; i++) {
            dataTemplate.createRegion(new XYRect(i, 0, 1, 1));
            dataTemplate.setColumnProperties(i, new TemplateColumnProperties(
                    Display.getWidth() / NUM_COLUMNS));
        }

        // Apply the template to the view
View Full Code Here

Examples of net.rim.device.api.ui.component.table.DataTemplate.createRegion()

                return fields;
            }
        };

        // Define the regions of the data template and column/row size
        dataTemplate.createRegion(new XYRect(0, 0, 1, 1));
        dataTemplate.setColumnProperties(0, new TemplateColumnProperties(
                Display.getWidth()));
        dataTemplate.setRowProperties(0, new TemplateRowProperties(24));

        _view.setDataTemplate(dataTemplate);
View Full Code Here

Examples of net.rim.device.api.ui.component.table.DataTemplate.createRegion()

                        { new LabelField(text, Field.NON_FOCUSABLE) };

                return fields;
            }
        };
        dataTemplate.createRegion(new XYRect(0, 0, 1, 1));
        dataTemplate.setColumnProperties(0, new TemplateColumnProperties(
                Display.getWidth()));
        dataTemplate.setRowProperties(0, new TemplateRowProperties(32));
        _view.setDataTemplate(dataTemplate);
        dataTemplate.useFixedHeight(true);
View Full Code Here

Examples of net.rim.device.api.ui.component.table.DataTemplate.createRegion()

                return fields;
            }
        };

        // Define the regions of the data template and column/row size
        dataTemplate.createRegion(new XYRect(0, 0, 1, 1));
        dataTemplate.setColumnProperties(0, new TemplateColumnProperties(
                Display.getWidth()));
        dataTemplate.setRowProperties(0, new TemplateRowProperties(24));

        _view.setDataTemplate(dataTemplate);
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.