Package com.sun.dtv.lwuit.plaf

Examples of com.sun.dtv.lwuit.plaf.Style


     * @inheritDoc
     */
    public void paint(Graphics g) {
        UIManager.getInstance().getLookAndFeel().drawList(g, this);

        Style style = getStyle();
        int width = getWidth() - style.getPadding(RIGHT) - style.getPadding(LEFT) - getSideGap();
        if (isScrollableX()) {
            width = Math.max(width, getPreferredSize().getWidth() - style.getPadding(RIGHT) - style.getPadding(LEFT) - getSideGap());
        }
        int numOfcomponents = model.getSize();
        if(numOfcomponents == 0){
            return;
        }
View Full Code Here


                selectedIndex = x / (elemSize.getWidth() + itemGap);
            }
        } else {
            int numOfcomponents = getModel().getSize();
            Rectangle pos = new Rectangle();
            Style style = getStyle();
            int width = getWidth() - style.getPadding(RIGHT) - style.getPadding(LEFT) - getSideGap();
            if (isScrollableX()) {
                width = Math.max(width, getPreferredSize().getWidth() - style.getPadding(RIGHT) - style.getPadding(LEFT) - getSideGap());
            }
            Dimension rendererSize = getElementSize(false);
            Dimension selectedSize = getElementSize(true);
            for (int i = 0; i < numOfcomponents; i++) {
                calculateComponentPosition(i, width, pos, rendererSize, selectedSize, true);
View Full Code Here

     */
    public void refreshTheme() {
        Container content = getContentPane();
        content.refreshTheme(dialogUIID);

        Style titleStyle = getTitleStyle();
        if (titleStyle.isModified()) {
            titleStyle.merge(UIManager.getInstance().getComponentStyle(dialogTitleUIID));
        } else {
            setTitleStyle(UIManager.getInstance().getComponentStyle(dialogTitleUIID));
        }

        int size = content.getComponentCount();
View Full Code Here

        if(text == null || text.equals("")){
            return;
        }
        char[] text = getText().toCharArray();
       
        Style style = getStyle();
        Font font = style.getFont();
        int charWidth = font.charWidth('W');
        int textAreaWidth = getWidth()- style.getPadding(RIGHT) - style.getPadding(LEFT)-
            style.getMargin(RIGHT) - style.getMargin(LEFT); //(border(=gap) + gap )*2
        if(textAreaWidth <= 0) {
            textAreaWidth = Math.min(10, columns) * charWidth;
        }
        int minCharactersInRow = Math.max(1, textAreaWidth / charWidth);
        int rowIndex=0;
View Full Code Here

TOP

Related Classes of com.sun.dtv.lwuit.plaf.Style

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.