@Override public void update(Graphics g, JComponent c) { // failsafe for LAF change if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) return; this.paint(g, c); } }
@Override public void update(Graphics g, JComponent c) { // failsafe for LAF change if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) return; this.paint(g, c); } }
@Override public void update(Graphics g, JComponent c) { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) return; if (toPaintBackground(c)) { BackgroundPaintingUtils.update(g, c, false); } super.paint(g, c); }
@Override public void update(Graphics g, JComponent c) { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) return; if (toPaintBackground(c)) { BackgroundPaintingUtils.update(g, c, false); } super.paint(g, c); }
@Override public void update(Graphics g, JComponent c) { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) return; // fix for issue 244 - paint the entire root pane so that it // picks the correct watermark if (SubstanceCoreUtilities.isOpaque(c)) { BackgroundPaintingUtils.update(g, c, false); } super.paint(g, c); }
@Override public void update(Graphics g, JComponent c) { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) return; // fix for issue 244 - paint the entire root pane so that it // picks the correct watermark if (SubstanceCoreUtilities.isOpaque(c)) { BackgroundPaintingUtils.update(g, c, false); } super.paint(g, c); }
@Override public boolean isInside(MouseEvent me) { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) { return false; } Shape contour = SubstanceOutlineUtilities.getBaseOutline( this.textField, 2.0f * SubstanceSizeUtils .getClassicButtonCornerRadius(SubstanceSizeUtils .getComponentFontSize(this.textField)), null); return contour.contains(me.getPoint()); }
@Override public boolean isInside(MouseEvent me) { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) { return false; } Shape contour = SubstanceOutlineUtilities.getBaseOutline( this.passwordField, 2.0f * SubstanceSizeUtils .getClassicButtonCornerRadius(SubstanceSizeUtils .getComponentFontSize(this.passwordField)), null); return contour.contains(me.getPoint()); }
@Override public void update(Graphics g, JComponent c) { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) return; if (toPaintBackground(c)) { BackgroundPaintingUtils.update(g, c, false); } super.paint(g, c); }
@Override public boolean isInside(MouseEvent me) { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) { return false; } Shape contour = SubstanceOutlineUtilities.getBaseOutline( this.passwordField, 2.0f * SubstanceSizeUtils .getClassicButtonCornerRadius(SubstanceSizeUtils .getComponentFontSize(this.passwordField)), null); return contour.contains(me.getPoint()); }
@Override public boolean isInside(MouseEvent me) { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) { return false; } Shape contour = SubstanceOutlineUtilities.getBaseOutline( this.textField, 2.0f * SubstanceSizeUtils .getClassicButtonCornerRadius(SubstanceSizeUtils .getComponentFontSize(this.textField)), null); return contour.contains(me.getPoint()); }
@Override public boolean isInside(MouseEvent me) { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) { return false; } Shape contour = SubstanceOutlineUtilities.getBaseOutline( this.textField, 2.0f * SubstanceSizeUtils .getClassicButtonCornerRadius(SubstanceSizeUtils .getComponentFontSize(this.textField)), null); return contour.contains(me.getPoint()); }
@Override public boolean isInside(MouseEvent me) { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) { return false; } Shape contour = SubstanceOutlineUtilities.getBaseOutline( this.textField, 2.0f * SubstanceSizeUtils .getClassicButtonCornerRadius(SubstanceSizeUtils .getComponentFontSize(this.textField)), null); return contour.contains(me.getPoint()); }
@Override public void update(Graphics g, JComponent c) { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) return; if (toPaintBackground(c)) { BackgroundPaintingUtils.update(g, c, false); } super.paint(g, c); }
@Override public boolean isInside(MouseEvent me) { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) { return false; } SubstanceButtonShaper shaper = ClassicButtonShaper.INSTANCE; if (shaper == null) return false; Shape contour = SubstanceOutlineUtilities.getBaseOutline(this.comboBox, SubstanceSizeUtils .getClassicButtonCornerRadius(SubstanceSizeUtils .getComponentFontSize(this.comboBox)), null); return contour.contains(me.getPoint()); } }
@Override public boolean isInside(MouseEvent me) { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) { return false; } SubstanceButtonShaper shaper = ClassicButtonShaper.INSTANCE; if (shaper == null) return false; Shape contour = SubstanceOutlineUtilities.getBaseOutline(this.comboBox, SubstanceSizeUtils .getClassicButtonCornerRadius(SubstanceSizeUtils .getComponentFontSize(this.comboBox)), null); return contour.contains(me.getPoint()); } }
@Override protected void installDefaults() { super.installDefaults(); if (SubstanceLookAndFeel.isCurrentLookAndFeel()) { this.setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceCoreUtilities.getSkin( this.frame).getActiveColorScheme( DecorationAreaType.SECONDARY_TITLE_PANE))); } // this.wasClosable = this.frame.isClosable(); }
@Override protected void installDefaults() { super.installDefaults(); if (SubstanceLookAndFeel.isCurrentLookAndFeel()) { this.setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceCoreUtilities.getSkin( this.frame).getActiveColorScheme( getThisDecorationType()))); } // this.wasClosable = this.frame.isClosable(); }
@Override public void run() { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) return; if (textArea == null) return; Color foregr = textArea.getForeground(); if ((foregr == null) || (foregr instanceof UIResource)) { textArea .setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceLookAndFeel .getCurrentSkin(textArea) .getEnabledColorScheme( SubstanceLookAndFeel .getDecorationType(textArea)))); } } });
@Override public void run() { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) return; if (textArea == null) return; Color foregr = textArea.getForeground(); if ((foregr == null) || (foregr instanceof UIResource)) { textArea .setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceLookAndFeel .getCurrentSkin(textArea) .getEnabledColorScheme( SubstanceLookAndFeel .getDecorationType(textArea)))); } } });