Package net.rim.device.api.ui

Examples of net.rim.device.api.ui.XYRect


                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


                }
            }
            buffer.append(summary == null || equal ? "" : summary);

            // Draw text with 10 pixels padding between icon and text
            final XYRect rect =
                    new XYRect(rowHeight + 10, y, listField.getWidth(),
                            rowHeight);
            _graphicsHelper.drawTextWithHighlight(graphics, buffer.toString(),
                    _searchInput.getText(), rect);
        }
    }
View Full Code Here

     */
    protected void initialize(final VG g) {
        final VG11 vg = (VG11) g;
        vg.vgSetfv(VG10.VG_CLEAR_COLOR, 4, MY_CLEAR_COLOR, 0);

        final XYRect rect = new XYRect();

        // Create the bitmap from bundled resource "icons.png"
        final Bitmap bitmap = Bitmap.getBitmapResource("icons.png");

        // Create the image for all the icons
View Full Code Here

         */
        protected void paint(final Graphics graphics) {
            super.paint(graphics);

            // Draw caret.
            getFocusRect(new XYRect());
            drawFocus(graphics, true);
        }
View Full Code Here

                                .getString(BlackBerryMemo.TITLE, 0),
                                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

                            { 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

                        { 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

                            { 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

                    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

        protected void paint(final Graphics graphics) {
            super.paint(graphics);

            // If muted, draw an X through the volume field
            if (_muted) {
                final XYRect extent = getExtent();
                graphics.drawLine(0, 0, extent.width, extent.height);
                graphics.drawLine(0, extent.height, extent.width, 0);
            }
        }
View Full Code Here

TOP

Related Classes of net.rim.device.api.ui.XYRect

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.