Package Framework

Examples of Framework.ImageData


                Object objValue = AlignedCellRenderer.expressionExecute(value, this.methodName, ".");

                int iconHeight = 0;
                if (objValue != null && objValue instanceof ImageData) {
                    // This is a column defined as an image, it can contain no text
                    ImageData id = (ImageData)objValue;
                    renderer.setIcon(id.asScaledIconImage(ICON_WIDTH, ICON_HEIGHT));
                    iconHeight = ICON_HEIGHT;
                }
                else {
                    // display icon
                    // TF:24/7/07: In Forte, if there was no selected icon, the small icon would display, even if selected.
                    Icon icon = null;
                    ImageData image = ((DisplayNode)value).getDVSmallIcon();
                    // COLET 20/01/2009 : Check if the selected image is valid by checking isNull(). If its empty, use the small icon. This is what Forte did.
                    ImageData selectedImage = ((DisplayNode)value).getDVSelectedIcon();
                    if (isSelected && selectedImage != null && !selectedImage.isNull()) {
                        image = selectedImage;
                    }

                    // We have an icon
                    if(image != null) {
View Full Code Here


    public String getName() {
        return this.name;
    }

    public void setImg(ImageData img) {
        ImageData oldValue = this.img;
        this.img = img;
        this.qq_Listeners.firePropertyChange("img", oldValue, this.img);
    }
View Full Code Here

        if (qq_palette == null) {
            qq_palette = PaletteListFactory.newPaletteList();
            qq_palette.setOrientation( Constants.FO_VERTICAL );
            qq_palette.setWrapSize( 1 );
            Array_Of_ListElement<ListElement> aole = new Array_Of_ListElement<ListElement>();
            aole.add(new ListElement(new ImageData(new ImageIcon(Main.class.getResource("main.qq_palette_1.png"))),
                    1, "One\n", ListElement.qq_Resolver.cIMAGEVALUE_INTEGERVALUE_TEXTVALUE));
            aole.add(new ListElement(new ImageData(new ImageIcon(Main.class.getResource("main.qq_palette_2.png"))),
                    2, "Two\n", ListElement.qq_Resolver.cIMAGEVALUE_INTEGERVALUE_TEXTVALUE));
            aole.add(new ListElement(new ImageData(new ImageIcon(Main.class.getResource("main.qq_palette_3.png"))),
                    3, "Three\n", ListElement.qq_Resolver.cIMAGEVALUE_INTEGERVALUE_TEXTVALUE));
            aole.add(new ListElement(new ImageData(new ImageIcon(Main.class.getResource("main.qq_palette_4.png"))),
                    4, "Four\n", ListElement.qq_Resolver.cIMAGEVALUE_INTEGERVALUE_TEXTVALUE));
            getBindingManager().bindComponent(qq_palette, "palette", aole);
            WidthPolicy.set(qq_palette, Constants.SP_NATURAL);
            HeightPolicy.set(qq_palette, Constants.SP_NATURAL);
            qq_palette.setSize(new Dimension(40, 148));
View Full Code Here

    // ------------
    public Main() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();
        this.initialize();
        ImageData i = ImageValue.get(this.getqq_sourceImage());
        this.setThings(new Array_Of_Thing<Thing>());
        PersonDN p = new PersonDN();
        this.getThings().set(0, new Thing(i, "Bob"));

        p.setName("Bob");
View Full Code Here

    public Array_Of_Thing<Thing> getThings() {
        return this.things;
    }

    public void setPicField(ImageData picField) {
        ImageData oldValue = this.picField;
        this.picField = picField;
        this.qq_Listeners.firePropertyChange("picField", oldValue, this.picField);
    }
View Full Code Here

     * isInherited=FALSE
     */
    public PictureGraphic getqq_aPicture() {
        if (qq_aPicture == null) {
            qq_aPicture = GraphicFactory.newPictureGraphic("", Constants.CG_CENTER);
            qq_aPicture.setImageValue(new ImageData(new ImageIcon(Main.class.getResource("main.qq_aPicture.png"))));
            qq_aPicture.setWidthPolicy(Constants.SP_NATURAL);
            qq_aPicture.setHeightPolicy(Constants.SP_NATURAL);
            qq_aPicture.setImageSizePolicy(Constants.IS_NATURAL);
            qq_aPicture.setOpaque( true );
            qq_aPicture.setSize(new Dimension(393, 295));
View Full Code Here

     * isInherited=FALSE
     */
    public PictureGraphic getqq_pic() {
        if (qq_pic == null) {
            qq_pic = GraphicFactory.newPictureGraphic("", Constants.CG_CENTER);
            qq_pic.setImageValue(new ImageData(new ImageIcon(Menu.class.getResource("menu.qq_pic.png"))));
            qq_pic.setWidthPolicy(Constants.SP_NATURAL);
            qq_pic.setHeightPolicy(Constants.SP_NATURAL);
            qq_pic.setImageSizePolicy(Constants.IS_NATURAL);
            qq_pic.setOpaque( true );
            qq_pic.setSize(new Dimension(112, 150));
View Full Code Here

     * isInherited=FALSE
     */
    public PictureGraphic getqq_PictureGraphic19() {
        if (qq_PictureGraphic19 == null) {
            qq_PictureGraphic19 = GraphicFactory.newPictureGraphic("", Constants.CG_CENTER);
            qq_PictureGraphic19.setImageValue(new ImageData(new ImageIcon(Menu.class.getResource("menu.qq_PictureGraphic19.png"))));
            qq_PictureGraphic19.setWidthPolicy(Constants.SP_NATURAL);
            qq_PictureGraphic19.setHeightPolicy(Constants.SP_NATURAL);
            qq_PictureGraphic19.setImageSizePolicy(Constants.IS_NATURAL);
            qq_PictureGraphic19.setOpaque( true );
            qq_PictureGraphic19.setSize(new Dimension(149, 100));
View Full Code Here

     * isInherited=FALSE
     */
    public PictureGraphic getqq_pic() {
        if (qq_pic == null) {
            qq_pic = GraphicFactory.newPictureGraphic("", Constants.CG_CENTER);
            qq_pic.setImageValue(new ImageData(new ImageIcon(Insert.class.getResource("insert.qq_pic.png"))));
            qq_pic.setWidthPolicy(Constants.SP_NATURAL);
            qq_pic.setHeightPolicy(Constants.SP_NATURAL);
            qq_pic.setImageSizePolicy(Constants.IS_NATURAL);
            qq_pic.setOpaque( true );
            qq_pic.setSize(new Dimension(681, 609));
View Full Code Here

     * isInherited=FALSE
     */
    public PictureGraphic getqq_PictureGraphic12() {
        if (qq_PictureGraphic12 == null) {
            qq_PictureGraphic12 = GraphicFactory.newPictureGraphic("", Constants.CG_CENTER);
            qq_PictureGraphic12.setImageValue(new ImageData(new ImageIcon(FixedClose.class.getResource("FixedClose.qq_PictureGraphic12.png"))));
            qq_PictureGraphic12.setWidthPolicy(Constants.SP_NATURAL);
            qq_PictureGraphic12.setHeightPolicy(Constants.SP_NATURAL);
            qq_PictureGraphic12.setImageSizePolicy(Constants.IS_NATURAL);
            qq_PictureGraphic12.setOpaque( true );
            qq_PictureGraphic12.setSize(new Dimension(249, 163));
View Full Code Here

TOP

Related Classes of Framework.ImageData

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.