Package net.rim.device.api.system

Examples of net.rim.device.api.system.Bitmap


                     * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
                     *      Object)
                     */
                    public void execute(final ReadOnlyCommandMetadata metadata,
                            final Object context) {
                        final Bitmap bitmap =
                                Bitmap.getBitmapResource("img/logo_blue.jpg");
                        HomeScreen.updateIcon(bitmap);
                    }
                }));
                menu.add(setIconItem);

                final MenuItem setRolloverItem =
                        new MenuItem(new StringProvider("Set Rollover Icon"),
                                0x230020, 1);
                setRolloverItem.setCommand(new Command(new CommandHandler() {
                    /**
                     * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
                     *      Object)
                     */
                    public void execute(final ReadOnlyCommandMetadata metadata,
                            final Object context) {
                        final Bitmap bitmap =
                                Bitmap.getBitmapResource("img/logo_black.jpg");
                        HomeScreen.setRolloverIcon(bitmap);
                    }
                }));
                menu.add(setRolloverItem);
View Full Code Here


        _dataObject = dataObject;
        _searchableProvider = searchableProvider;
        _searchFieldCriteriaList = new SearchFieldCriteriaList();
        _type = dataObject.getType();

        Bitmap img = null;

        if (_type == SearchableContentTypeConstants.CONTENT_TYPE_LOCATION) {
            img = Bitmap.getBitmapResource("location.png");
            _action = new LocationAction();
        }
View Full Code Here

                throw new NullPointerException("imgName==null");
            }

            final String imgResourcePath = prefix + ".png";

            final Bitmap bitmap = Bitmap.getBitmapResource(imgResourcePath);

            return bitmap;
        }
View Full Code Here

                new SearchField[] { new SearchField(SEARCH_FIELD_NAME),
                        new SearchField(SEARCH_FIELD_DATA) };

        _searchableProvider.setSupportedSearchFields(searchFields);

        final Bitmap bitmap = Bitmap.getBitmapResource("default.png");

        if (bitmap != null) {
            final Image img = ImageFactory.createImage(bitmap);
            _searchableProvider.setIcon(img);
        }
View Full Code Here

        _cube = new Cube(gl);

        gl.glEnable(GL10.GL_TEXTURE_2D);

        // Load the texture bitmap
        final Bitmap bitmap = Bitmap.getBitmapResource("BlackBerry.png");
        if (bitmap != null) {
            final int[] textureIds = new int[1];
            gl.glGenTextures(1, textureIds, 0);
            final int _texture = textureIds[0];
            gl.glBindTexture(GL10.GL_TEXTURE_2D, _texture);
View Full Code Here

                displayName.append(")");
            }

            final String os = deviceData.nextToken().trim();
            final String imageFileName = modelNumber + ".png";
            final Bitmap bitmap = Bitmap.getBitmapResource(imageFileName);
            final String year = deviceData.nextToken().trim();
            final String interfaces = deviceData.nextToken().trim();

            // Add data to the TableModel
            _tableModel.addRow(new Object[] { bitmap, displayName.toString(),
View Full Code Here

    private void displaySplashScreen() {
        final VerticalFieldManager vfm =
                new VerticalFieldManager(Manager.VERTICAL_SCROLL);

        // Initialize and add the logo to the splash screen
        final Bitmap bm = Bitmap.getBitmapResource("RandOmazeLogo.png");
        _bitmapField = new BitmapField(bm, Field.FIELD_HCENTER);
        _bitmapField.setMargin(0, 0, 0, 0);
        vfm.add(_bitmapField);

        // Initialize and add the instructions to the splash screen
View Full Code Here

     *            The reference to the OpenGL v1.1
     */
    private int getTexture(final GL11 gl) {
        // Load the texture if it has not already been loaded
        if (!_textureHandles.containsKey(_textureString)) {
            final Bitmap bitmap = Bitmap.getBitmapResource(_textureString);
            final int[] textures = new int[1];
            gl.glGenTextures(1, textures, 0);
            final Integer textureHandle = new Integer(textures[0]);
            gl.glBindTexture(GL10.GL_TEXTURE_2D, textureHandle.intValue());

View Full Code Here

     *            The reference to the OpenGL v2.0
     */
    private int getTexture(final GL20 gl) {
        // Load the texture if it has not already been loaded
        if (!_textureHandles.containsKey(_textureString)) {
            final Bitmap bitmap = Bitmap.getBitmapResource(_textureString);
            final int[] textures = new int[1];
            gl.glGenTextures(1, textures, 0);
            final Integer textureHandle = new Integer(textures[0]);
            gl.glBindTexture(GL20.GL_TEXTURE_2D, textureHandle.intValue());

View Full Code Here

        private CustomComponentsDemoScreen() {
            setTitle("Accessibility Demo");

            // Initialize the IconToolbarComponent
            _iconToolbar = new IconToolbarComponent();
            final Bitmap bitmap1 = Bitmap.getBitmapResource("1.png");
            final Bitmap bitmap2 = Bitmap.getBitmapResource("2.png");
            final Bitmap bitmap3 = Bitmap.getBitmapResource("3.png");
            final Bitmap bitmap4 = Bitmap.getBitmapResource("4.png");
            _iconToolbar.addIcon(bitmap1, " Maps ");
            _iconToolbar.addIcon(bitmap2, " Media ");
            _iconToolbar.addIcon(bitmap3, " Documents ");
            _iconToolbar.addIcon(bitmap4, " Applications ");
View Full Code Here

TOP

Related Classes of net.rim.device.api.system.Bitmap

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.