Searched refs:fg (Results 1 - 25 of 47) sorted by relevance

12

/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaLabelUI.java92 final Color fg = label.getForeground();
97 if ((fg.getRGB() << 8) == (disabledColor.getRGB() << 8)) return disabledColor;
100 final Color newDisabledColor = new Color(fg.getRed(), fg.getGreen(), fg.getBlue(), fg.getAlpha() / 2);
H A DAquaFocusHandler.java115 final Color fg = c.getSelectionForeground();
116 if (!(bg instanceof UIResource) || !(fg instanceof UIResource)) return;
138 final Color fg = c.getSelectionForeground();
139 if (!(bg instanceof UIResource) || !(fg instanceof UIResource)) return;
/openjdk7/jdk/src/share/classes/sun/awt/image/
H A DOffScreenImage.java83 Color fg = c.getForeground();
84 if (fg == null) {
85 fg = SystemColor.windowText;
97 fg, bg, font);
/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DLabelView.java146 fg = doc.getForeground(attr);
198 return fg;
309 private Color fg; field in class:LabelView
H A DStyleConstants.java547 Color fg = (Color) a.getAttribute(Foreground);
548 if (fg == null) {
549 fg = Color.black;
551 return fg;
558 * @param fg the color
560 public static void setForeground(MutableAttributeSet a, Color fg) { argument
561 a.addAttribute(Foreground, fg);
571 Color fg = (Color) a.getAttribute(Background);
572 if (fg == null) {
573 fg
584 setBackground(MutableAttributeSet a, Color fg) argument
[all...]
H A DStyledEditorKit.java626 * @param fg the foreground color
628 public ForegroundAction(String nm, Color fg) { argument
630 this.fg = fg;
641 Color fg = this.fg;
645 fg = Color.decode(s);
649 if (fg != null) {
651 StyleConstants.setForeground(attr, fg);
659 private Color fg; field in class:StyledEditorKit.ForegroundAction
[all...]
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/
H A DMotifTreeUI.java96 static Color fg; field in class:MotifTreeUI.MotifExpandedIcon
102 fg = UIManager.getColor("Tree.iconForeground");
123 g.setColor(fg);
H A DMotifTextUI.java130 Color fg = c.hasFocus() ? c.getCaretColor() :
139 g.setColor(fg);
/openjdk7/jdk/src/share/classes/javax/swing/
H A DDefaultListCellRenderer.java123 Color fg = null;
131 fg = DefaultLookup.getColor(this, ui, "List.dropCellForeground");
138 setForeground(fg == null ? list.getSelectionForeground() : fg);
H A DLookAndFeel.java178 Color fg = c.getForeground();
179 if (fg == null || fg instanceof UIResource) {
H A DJSlider.java952 Color fg = super.getForeground();
953 if (fg != null && !(fg instanceof UIResource)) {
954 return fg;
959 return fg;
/openjdk7/jdk/src/share/classes/javax/swing/table/
H A DDefaultTableCellRenderer.java193 Color fg = null;
203 fg = DefaultLookup.getColor(this, ui, "Table.dropCellForeground");
210 super.setForeground(fg == null ? table.getSelectionForeground()
211 : fg);
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthTextFieldUI.java94 Color fg = comp.getForeground();
95 if (fg == null || fg instanceof UIResource) {
96 fg = style.getColorForState(context, ColorType.TEXT_FOREGROUND);
97 if (fg != null) {
98 comp.setForeground(fg);
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicEditorPaneUI.java218 void updateDisplayProperties(Font font, Color fg) { argument
240 updateCSS(font, fg);
242 updateStyle(font, fg);
298 private void updateCSS(Font font, Color fg) { argument
315 fg);
327 private void updateStyle(Font font, Color fg) { argument
329 updateForeground(fg);
H A DBasicHTML.java364 private void setFontAndColor(Font font, Color fg) { argument
366 displayPropertiesToCSS(font,fg));
/openjdk7/jdk/src/share/classes/sun/awt/
H A DKeyboardFocusManagerPeerImpl.java132 FocusEvent fg = new CausedFocusEvent(lightweightChild, FocusEvent.FOCUS_GAINED,
136 focusLog.finer("Posting focus event: " + fg);
137 SunToolkit.postPriorityEvent(fg);
/openjdk7/jdk/src/share/classes/javax/swing/tree/
H A DDefaultTreeCellRenderer.java436 Color fg = null;
446 fg = col;
448 fg = getTextSelectionColor();
453 fg = getTextSelectionColor();
455 fg = getTextNonSelectionColor();
458 setForeground(fg);
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/
H A DWindowsScrollBarUI.java380 public static Grid getGrid(Color fg, Color bg) { argument
381 String key = fg.getRGB() + " " + bg.getRGB();
385 grid = new Grid(fg, bg);
391 public Grid(Color fg, Color bg) { argument
392 int cmap[] = { fg.getRGB(), bg.getRGB() };
400 paintGrid(g, fg, bg);
452 private void paintGrid(Graphics g, Color fg, Color bg) { argument
457 g.setColor(fg);
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/generic/
H A DFieldGen.java308 FieldGen fg = (FieldGen)clone();
310 fg.setConstantPool(cp);
311 return fg;
/openjdk7/jdk/src/share/classes/sun/tools/jconsole/
H A DPlotter.java342 Color fg = getForeground();
431 g.setColor(fg);
520 g.setColor(fg);
555 g.setColor(fg);
639 g.setColor(fg);
648 g.setColor(fg);
670 g.setColor(fg);
694 g.setColor(fg);
H A DThreadTab.java626 Color fg; field in class:ThreadTab.PromptingTextField
644 this.fg = UIManager.getColor("TextField.foreground");
646 setForeground(fg);
663 setForeground(fg);
/openjdk7/jdk/src/share/classes/javax/swing/text/html/
H A DImageView.java951 private Color fg; field in class:ImageView.ImageLabelView
997 if (fg == null && (parent = getParent()) != null) {
1002 fg = ((StyledDocument)doc).getForeground(attr);
1005 return fg;
/openjdk7/jdk/src/share/native/sun/awt/libpng/
H A Dpng.h2517 /* fg and bg should be in `gamma 1.0' space; alpha is the opacity */
2519 # define png_composite(composite, fg, alpha, bg) \
2520 { png_uint_16 temp = (png_uint_16)((png_uint_16)(fg) \
2526 # define png_composite_16(composite, fg, alpha, bg) \
2527 { png_uint_32 temp = (png_uint_32)((png_uint_32)(fg) \
2535 # define png_composite(composite, fg, alpha, bg) \
2536 (composite) = (png_byte)(((png_uint_16)(fg) * (png_uint_16)(alpha) + \
2540 # define png_composite_16(composite, fg, alpha, bg) \
2541 (composite) = (png_uint_16)(((png_uint_32)(fg) * (png_uint_32)(alpha) + \
/openjdk7/jdk/src/share/classes/sun/swing/
H A DSwingUtilities2.java1327 public static String displayPropertiesToCSS(Font font, Color fg) { argument
1343 if (fg != null) {
1345 if (fg.getRed() < 16) {
1348 rule.append(Integer.toHexString(fg.getRed()));
1349 if (fg.getGreen() < 16) {
1352 rule.append(Integer.toHexString(fg.getGreen()));
1353 if (fg.getBlue() < 16) {
1356 rule.append(Integer.toHexString(fg.getBlue()));
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DXEmbedChildProxyPeer.java181 FocusEvent fg = new FocusEvent(lightweightChild, FocusEvent.FOCUS_GAINED, false, currentOwner );
191 postEvent(XComponentPeer.wrapInSequenced(fg));

Completed in 82 milliseconds

12