KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > welcome > content > Constants


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.welcome.content;
21
22 import java.awt.BasicStroke JavaDoc;
23 import java.awt.Color JavaDoc;
24 import java.awt.Font JavaDoc;
25 import java.awt.Stroke JavaDoc;
26 import javax.swing.BorderFactory JavaDoc;
27 import javax.swing.ImageIcon JavaDoc;
28 import javax.swing.border.Border JavaDoc;
29 import org.openide.util.Utilities;
30
31 /**
32  *
33  * @author S. Aubrecht
34  */

35 public interface Constants {
36
37     static final String JavaDoc DEFAULT_BACKGROUND_COLOR = "DefaultBackgroundColor"; //NOI18N
38
static final String JavaDoc SCREEN_BACKGROUND_COLOR = "ScreenBackgrouncColor"; //NOI18N
39
static final String JavaDoc SECTION_BACKGROUND_COLOR = "SectionBackgroundColor"; //NOI18N
40

41     static final String JavaDoc HEADER_FILL_COLOR = "HeaderFillColor"; //NOI18N
42
static final String JavaDoc FOOTER_FILL_COLOR = "FooterFillColor"; //NOI18N
43

44     static final String JavaDoc SEL_HEADER_TEXT_COLOR = "SelHeaderTextColor"; //NOI18N
45
static final String JavaDoc BUTTON_TEXT_COLOR = "ButtonTextColor"; //NOI18N
46
static final String JavaDoc HEADER_TEXT_COLOR = "HeaderTextColor"; //NOI18N
47
static final String JavaDoc SECTION_TEXT_COLOR = "SectionTextColor"; //NOI18N
48
static final String JavaDoc DEFAULT_TEXT_COLOR = "DefaultTextColor"; //NOI18N
49
static final String JavaDoc RSS_DATETIME_COLOR = "RssDateTimeColor"; //NOI18N
50

51     static final String JavaDoc FONT_NAME = Utils.getFontName();
52     static final int FONT_SIZE = Utils.getDefaultFontSize();
53     static final Font JavaDoc BUTTON_FONT = new Font JavaDoc( FONT_NAME, Font.BOLD, FONT_SIZE );
54     static final Font JavaDoc HEADER_FONT = BUTTON_FONT;
55     static final Font JavaDoc REGULAR_FONT = BUTTON_FONT;
56     static final Font JavaDoc RSS_DESCRIPTION_FONT = new Font JavaDoc( FONT_NAME, Font.PLAIN, FONT_SIZE-1 );
57
58     static final Font JavaDoc WELCOME_HEADER_FONT = new Font JavaDoc( FONT_NAME, Font.BOLD, FONT_SIZE+3 );
59     static final Font JavaDoc WELCOME_DESCRIPTION_FONT = new Font JavaDoc( FONT_NAME, Font.PLAIN, FONT_SIZE );
60
61     static final int BOTTOM_MARGIN = 5;
62     static final int UNDER_HEADER_MARGIN = 5;
63     static final int ROW_MARGIN = 0;
64     static final int SECTION_MARGIN = 5;
65     static final int UNDER_SECTION_MARGIN = 0;
66
67     static final int GRAPHICS_TOTAL_VERTICAL_HEIGHT = 230;
68
69     static final int UPPER_LEFT = 1;
70     static final int UPPER_RIGHT = 2;
71     static final int BOTTOM_LEFT = 4;
72     static final int BOTTOM_RIGHT = 8;
73
74     static final String JavaDoc BULLET_IMAGE = "org/netbeans/modules/welcome/resources/bullet.png"; // NOI18N
75
static final String JavaDoc BACKGROUND_IMAGE = "org/netbeans/modules/welcome/resources/welcome_background.png"; // NOI18N
76
static final String JavaDoc BACKGROUND_TOP_IMAGE = "org/netbeans/modules/welcome/resources/top_grad.png"; // NOI18N
77
static final String JavaDoc BACKGROUND_BOTTOM_IMAGE = "org/netbeans/modules/welcome/resources/bottom_grad.png"; // NOI18N
78
static final String JavaDoc NB_LOGO_IMAGE = "org/netbeans/modules/welcome/resources/nb_logo.png"; // NOI18N
79
static final String JavaDoc SUN_LOGO_IMAGE = "org/netbeans/modules/welcome/resources/sun_logo.png"; // NOI18N
80
static final String JavaDoc JAVA_LOGO_IMAGE = "org/netbeans/modules/welcome/resources/java_logo.png"; // NOI18N
81

82     static final String JavaDoc SEL_HEADER_TOP_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/t_topleft.png"; // NOI18N
83
static final String JavaDoc SEL_HEADER_TOP_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/t_topright.png"; // NOI18N
84
static final String JavaDoc SEL_HEADER_BOTTOM_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/t_bottomleft.png"; // NOI18N
85
static final String JavaDoc SEL_HEADER_BOTTOM_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/t_bottomright.png"; // NOI18N
86
static final String JavaDoc SEL_HEADER_TOP_IMAGE = "org/netbeans/modules/welcome/resources/t_top.png"; // NOI18N
87
static final String JavaDoc SEL_HEADER_BOTTOM_IMAGE = "org/netbeans/modules/welcome/resources/t_bottom.png"; // NOI18N
88
static final String JavaDoc SEL_HEADER_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/t_left.png"; // NOI18N
89
static final String JavaDoc SEL_HEADER_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/t_right.png"; // NOI18N
90

91     static final String JavaDoc SEL_FOOTER_TOP_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/b_topleft.png"; // NOI18N
92
static final String JavaDoc SEL_FOOTER_TOP_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/b_topright.png"; // NOI18N
93
static final String JavaDoc SEL_FOOTER_BOTTOM_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/b_bottomleft.png"; // NOI18N
94
static final String JavaDoc SEL_FOOTER_BOTTOM_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/b_bottomright.png"; // NOI18N
95
static final String JavaDoc SEL_FOOTER_TOP_IMAGE = "org/netbeans/modules/welcome/resources/b_top.png"; // NOI18N
96
static final String JavaDoc SEL_FOOTER_BOTTOM_IMAGE = "org/netbeans/modules/welcome/resources/b_bottom.png"; // NOI18N
97
static final String JavaDoc SEL_FOOTER_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/b_left.png"; // NOI18N
98
static final String JavaDoc SEL_FOOTER_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/b_right.png"; // NOI18N
99

100     static final String JavaDoc SEL_LEFT_SIDE_IMAGE = "org/netbeans/modules/welcome/resources/leftside.png"; // NOI18N
101
static final String JavaDoc SEL_RIGHT_SIDE_IMAGE = "org/netbeans/modules/welcome/resources/rightside.png"; // NOI18N
102

103
104     static final String JavaDoc DESEL_HEADER_TOP_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/desel_t_topleft.png"; // NOI18N
105
static final String JavaDoc DESEL_HEADER_TOP_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/desel_t_topright.png"; // NOI18N
106
static final String JavaDoc DESEL_HEADER_BOTTOM_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/desel_t_bottomleft.png"; // NOI18N
107
static final String JavaDoc DESEL_HEADER_BOTTOM_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/desel_t_bottomright.png"; // NOI18N
108
static final String JavaDoc DESEL_HEADER_TOP_IMAGE = "org/netbeans/modules/welcome/resources/desel_t_top.png"; // NOI18N
109
static final String JavaDoc DESEL_HEADER_BOTTOM_IMAGE = "org/netbeans/modules/welcome/resources/desel_t_bottom.png"; // NOI18N
110
static final String JavaDoc DESEL_HEADER_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/desel_t_left.png"; // NOI18N
111
static final String JavaDoc DESEL_HEADER_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/desel_t_right.png"; // NOI18N
112

113     static final String JavaDoc DESEL_FOOTER_TOP_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/desel_b_topleft.png"; // NOI18N
114
static final String JavaDoc DESEL_FOOTER_TOP_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/desel_b_topright.png"; // NOI18N
115
static final String JavaDoc DESEL_FOOTER_BOTTOM_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/desel_b_bottomleft.png"; // NOI18N
116
static final String JavaDoc DESEL_FOOTER_BOTTOM_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/desel_b_bottomright.png"; // NOI18N
117
static final String JavaDoc DESEL_FOOTER_TOP_IMAGE = "org/netbeans/modules/welcome/resources/desel_b_top.png"; // NOI18N
118
static final String JavaDoc DESEL_FOOTER_BOTTOM_IMAGE = "org/netbeans/modules/welcome/resources/desel_b_bottom.png"; // NOI18N
119
static final String JavaDoc DESEL_FOOTER_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/desel_b_left.png"; // NOI18N
120
static final String JavaDoc DESEL_FOOTER_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/desel_b_right.png"; // NOI18N
121

122     static final String JavaDoc DESEL_LEFT_SIDE_IMAGE = "org/netbeans/modules/welcome/resources/desel_leftside.png"; // NOI18N
123
static final String JavaDoc DESEL_RIGHT_SIDE_IMAGE = "org/netbeans/modules/welcome/resources/desel_rightside.png"; // NOI18N
124

125     static final Stroke JavaDoc LINK_IN_FOCUS_STROKE = new BasicStroke JavaDoc(1, BasicStroke.CAP_SQUARE,
126         BasicStroke.JOIN_BEVEL, 0, new float[] {0, 2}, 0);
127     static final String JavaDoc LINK_IN_FOCUS_COLOR = "LinkInFocusColor"; //NOI18N
128
static final String JavaDoc RSS_LINK_COLOR = "RssLinkColor"; //NOI18N
129

130     static final int RSS_FEED_TIMER_RELOAD_MILLIS = 60*60*1000;
131
132
133     static final int TEXT_INSETS_LEFT = 10;
134     static final int TEXT_INSETS_RIGHT = 10;
135
136     static final Border JavaDoc HEADER_TEXT_BORDER = BorderFactory.createEmptyBorder( 1, TEXT_INSETS_LEFT, 1, TEXT_INSETS_RIGHT );
137
138     static final int FEED_PANEL_MAX_WIDTH = 650;
139     static final int FEED_PANEL_MIN_WIDTH = 200;
140 }
141
Popular Tags