D:\NewZebra\JavaApplications\DesignPatternsProject\src\structural_patterns\pdf_facade_pattern\CommandPanel.java |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package structural_patterns.pdf_facade_pattern;
21
22
23
24 @author
25
26 import java.text.*;
27 import java.util.*;
28 import java.awt.event.*;
29 import java.awt.*;
30 import javax.swing.*;
31
32 public class CommandPanel extends JPanel{
33
34 public final static int MINIMUM_FONT_INDEX = 0;
35 public final static int MAX_FONT_INDEX = 6;
36 public final static int DEFAULT_FONT_INDEX = 2;
37 public final static int DEFAULT_SIZE_FONTX = 12;
38
39 public final static String END_OF_PAGE_STRING = "__Page_ = ";
40 public final static String END_OF_DOC_STRING = "__END__";
41
42 JTextArea commandPanelTextArea = null;
43 String commandPanelCurrentDataFile = null;
44
45 String [] fontSizeArray =
46 {
47 "50%",
48 "75%",
49 "100%",
50 "125%",
51 "150%",
52 "175%",
53 "200%"
54 };
55 Font commandPanelFont = null;
56 int commandPanelCurrentPage = 0;
57 int commandPanelCurrentFontSize = DEFAULT_SIZE_FONTX;
58 int commandPanelCurrentFontIndex = PDF_Base.FONT100_INDEX;
59 int commandPanelFontIndex = DEFAULT_FONT_INDEX;
60
61 Vector pageTractVector = null;
62 JTextField documentNameJTextField;
63 String commandPanelCurrentDocName = "command.data";
64
65
66 public CommandPanel() {
67 }
68
69 }
70
71