Package Framework

Examples of Framework.ImageData


    /**
     * @param dVLargeIcon  The dVLargeIcon to set.
     * @uml.property  name="dVLargeIcon"
     */
    public void setDVLargeIcon(ImageData largeIcon) {
        ImageData oldValue = DVLargeIcon;
        DVLargeIcon = largeIcon;
        getPropertyListeners().firePropertyChange("DVLargeIcon", oldValue, largeIcon);
    }
View Full Code Here


        ImageData oldValue = DVLargeIcon;
        DVLargeIcon = largeIcon;
        getPropertyListeners().firePropertyChange("DVLargeIcon", oldValue, largeIcon);
    }
    public void setDVLargeIcon(ImageIcon smallIcon) {
        setDVLargeIcon(new ImageData(smallIcon));
    }
View Full Code Here

     * @uml.property  name="dVSelectedIcon"
     */
    public void setDVSelectedIcon(final ImageData selectedIcon) {
//        UIutils.invokeOnGuiThread(new Runnable() {
//            public void run() {
                ImageData oldValue = DVSelectedIcon;
                DVSelectedIcon = selectedIcon;
                getPropertyListeners().firePropertyChange("DVSelectedIcon", oldValue, selectedIcon);
//            }
//        });
    }
View Full Code Here

                getPropertyListeners().firePropertyChange("DVSelectedIcon", oldValue, selectedIcon);
//            }
//        });
    }
    public void setDVSelectedIcon(ImageIcon smallIcon) {
        setDVSelectedIcon(new ImageData(smallIcon));
    }
View Full Code Here

    /**
     * @param dVSmallIcon  The dVSmallIcon to set.
     * @uml.property  name="dVSmallIcon"
     */
    public void setDVSmallIcon(final ImageData smallIcon) {
        ImageData oldValue = DVSmallIcon;
        DVSmallIcon = smallIcon;
        getPropertyListeners().firePropertyChange("DVSmallIcon", oldValue, smallIcon);
    }
View Full Code Here

        ImageData oldValue = DVSmallIcon;
        DVSmallIcon = smallIcon;
        getPropertyListeners().firePropertyChange("DVSmallIcon", oldValue, smallIcon);
    }
    public void setDVSmallIcon(ImageIcon smallIcon) {
        setDVSmallIcon(new ImageData(smallIcon));
    }
View Full Code Here

     * TagId=1
     */
    public PictureGraphic getqq_PictureGraphic() {
        if (qq_PictureGraphic == null) {
            qq_PictureGraphic = GraphicFactory.newPictureGraphic("", Constants.CG_CENTER);
            qq_PictureGraphic.setImageValue(new ImageData(new ImageIcon(getClass().getClassLoader().getResource("Express/windows/ConfirmationWindow.qq_PictureGraphic.png"))));
            qq_PictureGraphic.setName("");
            qq_PictureGraphic.setWidthPolicy(Constants.SP_NATURAL);
            qq_PictureGraphic.setHeightPolicy(Constants.SP_NATURAL);
            qq_PictureGraphic.setImageSizePolicy(Constants.IS_FIELD);
            qq_PictureGraphic.setOpaque( true );
View Full Code Here

              Dimension imageSize = PaletteList.this.getImageSize(elements);

              for (Iterator<ListElement> it = elements.iterator(); it.hasNext();) {
                  ListElement le = it.next();
                  if (le.getImageValue() != null && !le.getImageValue().isNull()) {
                      ImageData id = le.getImageValue();
                      ImageIcon thisImage = new ImageIcon(id.getValue());
                      JToggleButton thisButton = new JToggleButton(PaletteList.this.makeTransparentIcon(thisImage));
                      thisButton.setPreferredSize(imageSize);
                      thisButton.setMinimumSize(imageSize);
                      thisButton.setMaximumSize(imageSize);
                      thisButton.addActionListener(new ActionListener() {
View Full Code Here

    protected Dimension getImageSize(Array_Of_ListElement<ListElement> pElements) {
        int width = 0;
        int height = 0;
        for (Iterator<ListElement> it = pElements.iterator(); it.hasNext(); ) {
            ListElement thisElement = it.next();
            ImageData thisImage = thisElement.getImageValue();
            if (thisImage != null) {
                Image anImage = thisImage.getValue();
                // Force this image to be fully realized
                ImageIcon i = new ImageIcon(anImage);
                int thisWidth = i.getIconWidth();
                if (thisWidth > width) {
                    width = thisWidth;    
View Full Code Here

    public static ImageData get(Component comp){
        WindowSmallIconImage action = ActionMgr.getAction(comp, WindowSmallIconImage.class);
        if (action != null) {
            return action.getValue();
        }
        return new ImageData(((JFrame)comp).getIconImage());
    }
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.