Package DisplayProject.controls

Examples of DisplayProject.controls.PictureGraphic$PictureGraphicUI


        }
        return qq_PictureGraphic15;
    }

    public void setqq_PictureGraphic15(PictureGraphic value) {
        PictureGraphic oldValue = qq_PictureGraphic15;
        qq_PictureGraphic15 = value;
        this.qq_Listeners.firePropertyChange("qq_PictureGraphic15", oldValue, value);
    }
View Full Code Here


        }
        return qq_PictureGraphic17;
    }

    public void setqq_PictureGraphic17(PictureGraphic value) {
        PictureGraphic oldValue = qq_PictureGraphic17;
        qq_PictureGraphic17 = value;
        this.qq_Listeners.firePropertyChange("qq_PictureGraphic17", oldValue, value);
    }
View Full Code Here

        }
        return qq_pic;
    }

    public void setqq_pic(PictureGraphic value) {
        PictureGraphic oldValue = qq_pic;
        qq_pic = value;
        this.qq_Listeners.firePropertyChange("qq_pic", oldValue, value);
    }
View Full Code Here

        }
        return qq_aPictureGraphic;
    }

    public void setqq_aPictureGraphic(PictureGraphic value) {
        PictureGraphic oldValue = qq_aPictureGraphic;
        qq_aPictureGraphic = value;
        this.qq_Listeners.firePropertyChange("qq_aPictureGraphic", oldValue, value);
    }
View Full Code Here

        }
        return qq_blue;
    }

    public void setqq_blue(PictureGraphic value) {
        PictureGraphic oldValue = qq_blue;
        qq_blue = value;
        this.qq_Listeners.firePropertyChange("qq_blue", oldValue, value);
    }
View Full Code Here

        }
        return qq_red;
    }

    public void setqq_red(PictureGraphic value) {
        PictureGraphic oldValue = qq_red;
        qq_red = value;
        this.qq_Listeners.firePropertyChange("qq_red", oldValue, value);
    }
View Full Code Here

        }
        return qq_PictureGraphic12;
    }

    public void setqq_PictureGraphic12(PictureGraphic value) {
        PictureGraphic oldValue = qq_PictureGraphic12;
        qq_PictureGraphic12 = value;
        this.qq_Listeners.firePropertyChange("qq_PictureGraphic12", oldValue, value);
    }
View Full Code Here

    }
    public static PictureGraphic newPictureGraphic(String name){ //PM:5/11/07
        return newPictureGraphic(name, Constants.CG_DEFAULT);
    }
    public static PictureGraphic newPictureGraphic(String name, int imageGravity){
        PictureGraphic jl = new PictureGraphic();
        jl.setBackground(null);
        jl.setName(name);
        jl.setFocusable(false);
        switch (imageGravity) {
            case Constants.CG_TOPLEFT:
                jl.setHorizontalAlignment(SwingConstants.LEFT);
                jl.setVerticalAlignment(SwingConstants.TOP);

            case Constants.CG_TOPCENTER:
                jl.setHorizontalAlignment(SwingConstants.CENTER);
                jl.setVerticalAlignment(SwingConstants.TOP);

            case Constants.CG_TOPRIGHT:
                jl.setHorizontalAlignment(SwingConstants.RIGHT);
                jl.setVerticalAlignment(SwingConstants.TOP);

            case Constants.CG_MIDDLELEFT:
                jl.setHorizontalAlignment(SwingConstants.LEFT);
                jl.setVerticalAlignment(SwingConstants.CENTER);

            case Constants.CG_MIDDLERIGHT:
                jl.setHorizontalAlignment(SwingConstants.RIGHT);
                jl.setVerticalAlignment(SwingConstants.CENTER);

            case Constants.CG_BOTTOMLEFT:
                jl.setHorizontalAlignment(SwingConstants.LEFT);
                jl.setVerticalAlignment(SwingConstants.BOTTOM);

            case Constants.CG_BOTTOMCENTER:
                jl.setHorizontalAlignment(SwingConstants.CENTER);
                jl.setVerticalAlignment(SwingConstants.BOTTOM);

            case Constants.CG_BOTTOMRIGHT:
                jl.setHorizontalAlignment(SwingConstants.RIGHT);
                jl.setVerticalAlignment(SwingConstants.BOTTOM);

            default:
                jl.setHorizontalAlignment(SwingConstants.CENTER);
                jl.setVerticalAlignment(SwingConstants.CENTER);

        }
        return jl;
    }
View Full Code Here

        }
        return jl;
    }
    public static PictureGraphic newPictureGraphic(String name, ImageIcon icon, int imageGravity){
        PictureGraphic jl = newPictureGraphic(name, imageGravity);
        jl.setIcon(icon);
        return jl;
    }
View Full Code Here

        PictureGraphic jl = newPictureGraphic(name, imageGravity);
        jl.setIcon(icon);
        return jl;
    }
    public static PictureGraphic newPictureGraphic(String name, URL resource, int imageGravity){
        PictureGraphic label = null;
        if (resource != null) {
            try {
                BufferedImage image = ImageIO.read(resource);
                if (image != null) {
                    ImageIcon icon = new ImageIcon(image);
                    label = newPictureGraphic(name, icon, imageGravity);
                }
                else
                    label = newPictureGraphic(name, Constants.CG_TOPLEFT);
                    label.setText("<" + resource + ">");
            } catch (IOException e) {
                label = newPictureGraphic(name, Constants.CG_TOPLEFT);
                label.setText("<" + resource + ">");
            }
        }
        else{
            label = newPictureGraphic(name, Constants.CG_TOPLEFT);
            label.setText("< unknown resource >");
        }
        return label;
    }
View Full Code Here

TOP

Related Classes of DisplayProject.controls.PictureGraphic$PictureGraphicUI

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.