/Users/lyon/j4p/src/ip/gui/frames/ImageFrameInterface.java
|
1 /*
2 * Created by IntelliJ IDEA.
3 * User: lyon
4 * Date: Feb 15, 2003
5 * Time: 11:51:25 AM
6 * To change template for new interface use
7 * Code Style | Class Templates options (Tools | IDE Options).
8 */
9 package ip.gui.frames;
10
11 import gui.Clipper;
12 import gui.ImageBeanInterface;
13 import ip.gui.DisplaysPels;
14
15 import java.awt.*;
16 import java.awt.event.ActionEvent;
17 import java.awt.image.ColorModel;
18
19 public interface ImageFrameInterface extends DisplaysPels {
20 void actionPerformed(ActionEvent e);
21
22 ImageBeanInterface getImageBean();
23
24 void grabNumImage();
25
26 void setImageResize(Image i);
27
28 void setImage(Image i);
29
30 void setImageNoShort(Image img);
31
32 Image getImage();
33
34 String getFileName();
35
36 Clipper getClipper();
37
38 /**
39 short2Image - turn 3 short arrays, r, g and b into an image.
40 */
41 void short2Image();
42
43 void pels2Image(int pels[]);
44
45 /**
46 image2Short - takes the private Image instance and
47 makes 3 short arrays, r, g and b.
48 */
49 void image2Short();
50
51 void openGif();
52
53 void setFtpFileName(String _fn);
54
55 void setFileName(String _fn);
56
57 void openGif(String fn);
58
59 void revert();
60
61 void revertNoResize();
62
63 // Takes a packed RGB model and makes
64 // the short arrays
65 //void int2Short(int pels[]);
66
67 void paint(Graphics g);
68
69 int getImageWidth();
70
71 void setImageWidth(int imageWidth);
72
73 int getImageHeight();
74
75 void setImageHeight(int imageHeight);
76
77 boolean isImageComesFromFile();
78
79 void setImageComesFromFile(boolean imageComesFromFile);
80
81 ColorModel getCm();
82
83 Menu getFileMenu();
84
85 void setFileMenu(Menu fileMenu);
86
87 Menu getOpenMenu();
88
89 void setOpenMenu(Menu openMenu);
90 }
91