home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / un2maiq4 / pjjava / src / pj / awt / pjsizes.java < prev    next >
Encoding:
Java Source  |  1996-08-14  |  6.3 KB  |  168 lines

  1. /*---------------------------------------------------------------------------
  2.  
  3.     Written by the Personal Journal developers of Dow Jones & Company, Inc.
  4.  
  5.     Dow Jones makes no representations or warranties about 
  6.     the suitability of this software, either express or 
  7.     implied, including but not limited to the implied warranties 
  8.     of merchantability, fitness for a particular purpose, 
  9.     or non-infringement.  Dow Jones will not be liable for 
  10.     any damages suffered by a user as a result of using, 
  11.     modifying or distributing this software or its derivatives.
  12.  
  13.  
  14.     PjSizes.java
  15.  
  16.         A specification of the sizes of various components in Personal Journal.
  17.  
  18.  
  19.     Authors:
  20.  
  21.         jlee          James Lee
  22.  
  23.  
  24.     Version Ident:
  25.  
  26.     $Header: /PjJavaClient/src/pj/awt/PjSizes.java 10    3/22/96 11:13p Jlee $
  27.  
  28.  
  29.     History:
  30.  
  31.         15-Feb-1996     jlee    Initial Creation
  32.         21-Feb-1996     jlee    Changed default modifier for PjSizes class to "public final" and
  33.                                 changed the value of nPjAdTextBoxWidth from 280 to 290.
  34.          1-Mar-1996     jlee    Added default PjJava Applet width & height and changed
  35.                                 nPjAdTextBoxHeight from 75 to 81.
  36.          4-Mar-1996     jlee    Added fixed height of 3D tab used in PjTabNotebook:nTab3DHeight.
  37.          5-Mar-1996     jlee    Added Fixed height of status bar.
  38.         12-Mar-1996     jlee    Added fonts constants.
  39.         25-Mar-1996     jlee    Added fntInfoBar
  40.         27-Mar-1996     jlee    Changed PjFrame's height from 510 to 545
  41.         28-Mar-1996     jlee    Added AboutDialog box text fonts and added dimTickerSize for Ticker
  42.                                 Added nTextBoxHorInset.
  43. ---------------------------------------------------------------------------*/
  44.  
  45. package pj.awt;
  46.  
  47. import java.awt.Button;
  48. import java.awt.Dimension;
  49. import java.awt.Font;
  50.  
  51. /**
  52.  * PjSizes defines various fixed sizes used for component layouts.
  53.  * @version     0.00, 2/15/96
  54.  * @author      James Lee
  55.  */
  56. public final class PjSizes
  57.     {
  58.     // --- Class variables
  59.  
  60.     //Fixed width for Advertisement image
  61.     public static final int nPjAdImageWidth     = 137;
  62.  
  63.     //Fixed height for Advertisement image
  64.     public static final int nPjAdImageHeight    = 75;
  65.  
  66.     //Fixed width for Advertisement text box width
  67.     public static final int nPjAdTextBoxWidth   = 290;
  68.  
  69.     //Fixed height for Advertisement text box height.
  70.     public static final int nPjAdTextBoxHeight  = 76;
  71.  
  72.     //Default height for buttons
  73.     public static final int nPjButtonHeight     = 21;
  74.  
  75.     //Default height for labels
  76.     public static final int nPjLabelHeight      = 21;
  77.  
  78.     //Default vertical spacing between components.
  79.     public static final int nPjVerticalSpacing  = 2;
  80.  
  81.     //Default horizontal spacing between components.
  82.     public static final int nPjHorizontalSpacing    = 2;
  83.  
  84.     //Default width of PjJava Applet.
  85.     public static final int nPjDefaultAppletWidth   = 640;
  86.  
  87.     //Default height of PjJava Applet.
  88.     public static final int nPjDefaultAppletHeight  = 545;
  89.  
  90.     //Fixed height of 3D tab used in PjTabNotebook.
  91.     public static final int nTab3DHeight        = 27;
  92.  
  93.     //Fixed height of ticker panel.
  94.     public static final int nTickerPanelHeight  = 28;
  95.  
  96.     //Fixed height of status bar.
  97.     public static final int nStatusBarHeight    = 23;
  98.  
  99.     //Fixed width of scroll bar.
  100.     public static final int nScrollbarWidth     = 21;
  101.  
  102.     //Fixed width for Button in TitleList.
  103.     public static final int nTitleListButtonWidth   = 29;
  104.  
  105.     //Fixed height for Button in TitleList.
  106.     public static final int nTitleListButtonHeight  = 26;
  107.  
  108.     //Fixed inset used in TextBox drawing
  109.     public static final int nTextBoxHorInset  = 4;
  110.  
  111.     //Fixed size for About Diaog box OK button.
  112.     public static final Dimension dimOKButton  =  new Dimension( 90, 30 );
  113.  
  114.     //Fixed size for About Diaog box image.
  115.     public static final Dimension dimAboutBoxImage  =  new Dimension( 175, 35 );
  116.  
  117.     //Fixed size for About Diaog box.
  118.     public static final Dimension dimAboutDialogSize  =  new Dimension( 450, 320 );
  119.  
  120.     //Fixed size for Ticker.
  121.     public static final Dimension dimTickerSize  = new Dimension(640, 27);
  122.  
  123.     //The minimum width of PageView
  124.     public static final int nPjMinimumPageViewWidth = nPjAdImageWidth + nPjAdTextBoxWidth + nPjHorizontalSpacing;
  125.  
  126.     //Font used for formatted column.
  127.     public static final Font fntFormattedColumn = new Font( "Courier", Font.PLAIN, 12 );
  128.  
  129.     //Font used for unformatted column plain.
  130.     public static final Font fntUnfColumnPlain  = new Font( "Helvetica", Font.PLAIN, 13 );
  131.  
  132.     //Font used for unformatted column bold.
  133.     public static final Font fntUnfColumnBold   = new Font( "Helvetica", Font.BOLD, 14 );
  134.  
  135.     //Font used for ad text plain.
  136.     public static final Font fntAdTextPlain     = new Font( "Helvetica", Font.PLAIN, 12 );
  137.  
  138.     //Font used for Section or Page title.
  139.     public static final Font fntSectionBigTitle = new Font( "Helvetica", Font.BOLD, 25 );
  140.  
  141.     //Font used for DJChart title font.
  142.     public static final Font fntDJChartTitle    = new Font("Courier", Font.BOLD, 12);
  143.  
  144.     //Font used for Column label.
  145.     public static final Font fntColumnLabel     = new Font( "Helvetica", Font.BOLD, 12 );
  146.  
  147.     //Font used for Status bar.
  148.     public static final Font fntStatusBar       = new Font( "Helvetica", Font.BOLD, 15 );
  149.  
  150.     //Font used for Info bar.
  151.     public static final Font fntInfoBar         = new Font( "Helvetica", Font.PLAIN, 12 );
  152.  
  153.     //Font used for Personal news title list button.
  154.     public static final Font fntPNButton        = new Font( "Helvetica", Font.BOLD, 12 );
  155.  
  156.     //Font used for Personal news text field.
  157.     public static final Font fntPNTextField     = new Font( "Helvetica", Font.PLAIN, 13 );
  158.  
  159.     //Font used for AboutBox text.
  160.     public static final Font fntAboutBoxTextPlain    = new Font( "Helvetica", Font.PLAIN, 13 );
  161.  
  162.     //Font used for AboutBox text.
  163.     public static final Font fntAboutBoxTextBold    = new Font( "Helvetica", Font.BOLD, 13 );
  164.  
  165.     //Font used for AboutBox text.
  166.     public static final Font fntAboutBoxTextItalic    = new Font( "Helvetica", Font.ITALIC, 13 );
  167.     }
  168.