Package Framework

Examples of Framework.ImageData


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


      this.imageValue = null;
      this.setIcon_internal(null);
    }
    else {
      if (imageValue == null) {
        imageValue = new ImageData();
        // Associate this button listener with the value change event
        imageValue.addPropertyChangeListener("value", this);
      }
      this.imageValue.setValue((ImageIcon)icon);
      // No need to call setIcon_internal here, as this will trigger the property change event
View Full Code Here

        }
    }

    public ImageData getImageData(int pColumnID) {
        try {
            ImageData id = new ImageData(resultSet.getBytes(pColumnID));
            return id;
        } catch (SQLException e) {
          throw processException(e);
        }
    }
View Full Code Here

        }
    }

    public ImageData getImageData(String pColumnName) {
        try {
            ImageData id = new ImageData(resultSet.getBytes(pColumnName));
            return id;
        } catch (SQLException e) {
          throw processException(e);
        }
    }
View Full Code Here

    }
    public Object getCellEditorValue() {
        return this.picture.getImageValue();
    }
    public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
        ImageData image = (ImageData)value;
        picture.setImageValue(image);
        return picture;
    }
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

        }
        BufferedImage img = new BufferedImage(componentSize.width, componentSize.height, BufferedImage.TYPE_INT_RGB);
        Graphics2D grap = img.createGraphics();
        grap.fillRect(0, 0, img.getWidth(), img.getHeight());
        win.paint(grap);
        ImageData id = new ImageData(img);
        if (!includeFrame){
            ((JComponent)win).setBorder(oldBorder);
        }
        return id;
    }
View Full Code Here

     * TagId=12
     */
    public PictureGraphic getqq_FolderOneLeftEdge() {
        if (qq_FolderOneLeftEdge == null) {
            qq_FolderOneLeftEdge = GraphicFactory.newPictureGraphic("", Constants.CG_CENTER);
            qq_FolderOneLeftEdge.setImageValue(new ImageData(new ImageIcon(getClass().getClassLoader().getResource("Express/windows/IconWindow.qq_FolderOneLeftEdge.png"))));
            qq_FolderOneLeftEdge.setName("FolderOneLeftEdge");
            qq_FolderOneLeftEdge.setWidthPolicy(Constants.SP_NATURAL);
            qq_FolderOneLeftEdge.setHeightPolicy(Constants.SP_NATURAL);
            qq_FolderOneLeftEdge.setImageSizePolicy(Constants.IS_NATURAL);
            qq_FolderOneLeftEdge.setOpaque( true );
View Full Code Here

     * TagId=13
     */
    public PictureGraphic getqq_FolderLeftEdge() {
        if (qq_FolderLeftEdge == null) {
            qq_FolderLeftEdge = GraphicFactory.newPictureGraphic("", Constants.CG_CENTER);
            qq_FolderLeftEdge.setImageValue(new ImageData(new ImageIcon(getClass().getClassLoader().getResource("Express/windows/IconWindow.qq_FolderLeftEdge.png"))));
            qq_FolderLeftEdge.setName("FolderLeftEdge");
            qq_FolderLeftEdge.setWidthPolicy(Constants.SP_NATURAL);
            qq_FolderLeftEdge.setHeightPolicy(Constants.SP_NATURAL);
            qq_FolderLeftEdge.setImageSizePolicy(Constants.IS_NATURAL);
            qq_FolderLeftEdge.setOpaque( true );
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.