@Override public void paint (Graphics g, JComponent c) { super.paint (MaterialDrawingUtils.getAliasedGraphics (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); }
public void paint(Graphics g, JComponent c) { Graphics2D g2D = (Graphics2D) g; Object savedRenderingHint = null; if (AbstractLookAndFeel.getTheme().isTextAntiAliasingOn()) { savedRenderingHint = g2D.getRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING); g2D.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, AbstractLookAndFeel.getTheme().getTextAntiAliasingHint()); } super.paint(g, c); if (AbstractLookAndFeel.getTheme().isTextAntiAliasingOn()) { g2D.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, savedRenderingHint); } } }
public void paint(Graphics g, JComponent c) { if (c instanceof CustomToggleButton) { boolean isSelected = ((CustomToggleButton) c).isSelected(); if (isSelected) { paintSelectedBg(g, c); paintSelectedBorder(g, c); } if (!isSelected) { paintUnselectedBg(g, c); } } super.paint(g, c); }