Package net.helipilot50.stocktrade.framework

Examples of net.helipilot50.stocktrade.framework.ImageData


    public static ImageData get(Component comp){
        WindowIconImage action = ActionMgr.getAction(comp, WindowIconImage.class);
        if (action != null) {
            return action.getValue();
        }
        return new ImageData(((JFrame)comp).getIconImage());
    }
View Full Code Here


        // TF:25/03/2009:DET-90:Made this handle ImageDatas properly
        if (comp instanceof TableJButton) {
          return ((TableJButton)comp).getImageValue();
        }
        return (((JButton)comp).getIcon() == null)? null : new ImageData((ImageIcon)((JButton)comp).getIcon());
    }
View Full Code Here

    public static void set(JLabel comp, ImageData value) {
        ActionMgr.addAction(new ImageValue(comp, value));
    }

    public static ImageData get(JLabel comp){
        ImageData ret;
        ImageValue action = ActionMgr.getAction(comp, ImageValue.class);

        if (action != null) {
            ret = action.getValue();
        }

        // If nobody has set the action, then create a new ImageData. CraigM: 9/5/07.
        else {
          // TF:27/03/2009:If we're using a PictureGraphic, then we need to return the mapped picture
          if (comp instanceof PictureGraphic) {
            ret = ((PictureGraphic)comp).getImageValue();
          }
          else if (comp.getIcon() instanceof ImageIcon) {
                ret = new ImageData((ImageIcon)comp.getIcon());
            }
            else {
                UnsupportedOperationException errorVar = new UnsupportedOperationException("Only JLabels with ImageIcons are supported at this stage.");
                ErrorMgr.addError(errorVar);
                throw errorVar;
View Full Code Here

    /**
     * @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

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

TOP

Related Classes of net.helipilot50.stocktrade.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.