D:\NewZebra\JavaApplications\DesignPatternsProject\src\structural_patterns\pdf_facade_pattern\CommandPanel.java
 1 /*
 2  * CommandPanel.java 
 3  *
 4  * Disclaimer:
 5  * ZebraSoft.com disclaims all warrantees with regard to documents/programs, including 
 6  * all implied warranties. In no event shall ZebraSoft.com be liable for indirect or 
 7  * consequential damages or any damages whatsoever resulting from loss of use, data or 
 8  * profits arising out of the use of documents/programs.
 9  * 
10  * All content included on this site, such as text, graphics, logos, button icons, 
11  * images, audio clips, video clips, digital downloads, programs, data compilations, 
12  * and software, is the property of ZebraSoft.com or its content suppliers and 
13  * protected by United States and international copyright laws. 
14  *
15  * This site or any portion of this site may not be reproduced, duplicated, 
16  * copied, sold, resold, visited, or otherwise exploited for any commercial 
17  * purpose without express written consent of ZebraSoft.com.
18  */
19 
20 package structural_patterns.pdf_facade_pattern;
21 
22 /**
23  *
24  * @author Sam Eldin
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     /** Creates a new instance of CommandPanel */
66     public CommandPanel() {
67     }
68     
69 }
70 
71