/** * Get this image as an icon. */ public PortableImage getImage() { if (this.isNull()) return null; /*if (this.getData() instanceof ImageIcon) return (ImageIcon)this.getData(); // Never (legacy) else*/ if (this.getData() instanceof PortableImage) return (PortableImage)this.getData(); else return null; } /**
/** * Get this image as an icon. */ public ImageIcon getImage() { if (this.isNull()) return null; if (this.getData() instanceof ImageIcon) return (ImageIcon)this.getData(); // Never (legacy) else if (this.getData() instanceof SerializableImage) return new ImageIcon(((SerializableImage)this.getData()).getImage()); else return null; } /**
/** * Get this image as an icon. */ public ImageIcon getImage() { if (this.isNull()) return null; if (this.getData() instanceof ImageIcon) return (ImageIcon)this.getData(); // Never (legacy) else if (this.getData() instanceof SerializableImage) return new ImageIcon(((SerializableImage)this.getData()).getImage()); else return null; } /**