1 19 20 package org.netbeans.modules.welcome.content; 21 22 import java.awt.BasicStroke ; 23 import java.awt.Color ; 24 import java.awt.Font ; 25 import java.awt.Stroke ; 26 import javax.swing.BorderFactory ; 27 import javax.swing.ImageIcon ; 28 import javax.swing.border.Border ; 29 import org.openide.util.Utilities; 30 31 35 public interface Constants { 36 37 static final String DEFAULT_BACKGROUND_COLOR = "DefaultBackgroundColor"; static final String SCREEN_BACKGROUND_COLOR = "ScreenBackgrouncColor"; static final String SECTION_BACKGROUND_COLOR = "SectionBackgroundColor"; 41 static final String HEADER_FILL_COLOR = "HeaderFillColor"; static final String FOOTER_FILL_COLOR = "FooterFillColor"; 44 static final String SEL_HEADER_TEXT_COLOR = "SelHeaderTextColor"; static final String BUTTON_TEXT_COLOR = "ButtonTextColor"; static final String HEADER_TEXT_COLOR = "HeaderTextColor"; static final String SECTION_TEXT_COLOR = "SectionTextColor"; static final String DEFAULT_TEXT_COLOR = "DefaultTextColor"; static final String RSS_DATETIME_COLOR = "RssDateTimeColor"; 51 static final String FONT_NAME = Utils.getFontName(); 52 static final int FONT_SIZE = Utils.getDefaultFontSize(); 53 static final Font BUTTON_FONT = new Font ( FONT_NAME, Font.BOLD, FONT_SIZE ); 54 static final Font HEADER_FONT = BUTTON_FONT; 55 static final Font REGULAR_FONT = BUTTON_FONT; 56 static final Font RSS_DESCRIPTION_FONT = new Font ( FONT_NAME, Font.PLAIN, FONT_SIZE-1 ); 57 58 static final Font WELCOME_HEADER_FONT = new Font ( FONT_NAME, Font.BOLD, FONT_SIZE+3 ); 59 static final Font WELCOME_DESCRIPTION_FONT = new Font ( 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 BULLET_IMAGE = "org/netbeans/modules/welcome/resources/bullet.png"; static final String BACKGROUND_IMAGE = "org/netbeans/modules/welcome/resources/welcome_background.png"; static final String BACKGROUND_TOP_IMAGE = "org/netbeans/modules/welcome/resources/top_grad.png"; static final String BACKGROUND_BOTTOM_IMAGE = "org/netbeans/modules/welcome/resources/bottom_grad.png"; static final String NB_LOGO_IMAGE = "org/netbeans/modules/welcome/resources/nb_logo.png"; static final String SUN_LOGO_IMAGE = "org/netbeans/modules/welcome/resources/sun_logo.png"; static final String JAVA_LOGO_IMAGE = "org/netbeans/modules/welcome/resources/java_logo.png"; 82 static final String SEL_HEADER_TOP_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/t_topleft.png"; static final String SEL_HEADER_TOP_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/t_topright.png"; static final String SEL_HEADER_BOTTOM_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/t_bottomleft.png"; static final String SEL_HEADER_BOTTOM_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/t_bottomright.png"; static final String SEL_HEADER_TOP_IMAGE = "org/netbeans/modules/welcome/resources/t_top.png"; static final String SEL_HEADER_BOTTOM_IMAGE = "org/netbeans/modules/welcome/resources/t_bottom.png"; static final String SEL_HEADER_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/t_left.png"; static final String SEL_HEADER_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/t_right.png"; 91 static final String SEL_FOOTER_TOP_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/b_topleft.png"; static final String SEL_FOOTER_TOP_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/b_topright.png"; static final String SEL_FOOTER_BOTTOM_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/b_bottomleft.png"; static final String SEL_FOOTER_BOTTOM_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/b_bottomright.png"; static final String SEL_FOOTER_TOP_IMAGE = "org/netbeans/modules/welcome/resources/b_top.png"; static final String SEL_FOOTER_BOTTOM_IMAGE = "org/netbeans/modules/welcome/resources/b_bottom.png"; static final String SEL_FOOTER_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/b_left.png"; static final String SEL_FOOTER_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/b_right.png"; 100 static final String SEL_LEFT_SIDE_IMAGE = "org/netbeans/modules/welcome/resources/leftside.png"; static final String SEL_RIGHT_SIDE_IMAGE = "org/netbeans/modules/welcome/resources/rightside.png"; 103 104 static final String DESEL_HEADER_TOP_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/desel_t_topleft.png"; static final String DESEL_HEADER_TOP_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/desel_t_topright.png"; static final String DESEL_HEADER_BOTTOM_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/desel_t_bottomleft.png"; static final String DESEL_HEADER_BOTTOM_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/desel_t_bottomright.png"; static final String DESEL_HEADER_TOP_IMAGE = "org/netbeans/modules/welcome/resources/desel_t_top.png"; static final String DESEL_HEADER_BOTTOM_IMAGE = "org/netbeans/modules/welcome/resources/desel_t_bottom.png"; static final String DESEL_HEADER_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/desel_t_left.png"; static final String DESEL_HEADER_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/desel_t_right.png"; 113 static final String DESEL_FOOTER_TOP_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/desel_b_topleft.png"; static final String DESEL_FOOTER_TOP_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/desel_b_topright.png"; static final String DESEL_FOOTER_BOTTOM_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/desel_b_bottomleft.png"; static final String DESEL_FOOTER_BOTTOM_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/desel_b_bottomright.png"; static final String DESEL_FOOTER_TOP_IMAGE = "org/netbeans/modules/welcome/resources/desel_b_top.png"; static final String DESEL_FOOTER_BOTTOM_IMAGE = "org/netbeans/modules/welcome/resources/desel_b_bottom.png"; static final String DESEL_FOOTER_LEFT_IMAGE = "org/netbeans/modules/welcome/resources/desel_b_left.png"; static final String DESEL_FOOTER_RIGHT_IMAGE = "org/netbeans/modules/welcome/resources/desel_b_right.png"; 122 static final String DESEL_LEFT_SIDE_IMAGE = "org/netbeans/modules/welcome/resources/desel_leftside.png"; static final String DESEL_RIGHT_SIDE_IMAGE = "org/netbeans/modules/welcome/resources/desel_rightside.png"; 125 static final Stroke LINK_IN_FOCUS_STROKE = new BasicStroke (1, BasicStroke.CAP_SQUARE, 126 BasicStroke.JOIN_BEVEL, 0, new float[] {0, 2}, 0); 127 static final String LINK_IN_FOCUS_COLOR = "LinkInFocusColor"; static final String RSS_LINK_COLOR = "RssLinkColor"; 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 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 |