@Override public void paint(Graphics g) { // switch off jxlabel default antialiasing // JW: that cost me dearly to track down - it's the default foreground painter // which is an AbstractPainter which has _global_ antialiased on by default // and here the _text_ antialiased is turned off // changed JXLabel default foregroundPainter to have antialiasing false by // default, so remove interference here // part of fix for #920 - the other part is in JXLabel, fix 1164 // ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, // RenderingHints.VALUE_TEXT_ANTIALIAS_OFF); super.paint(g); }
@Override public void paint(Graphics g) { // switch off jxlabel default antialiasing // JW: that cost me dearly to track down - it's the default foreground painter // which is an AbstractPainter which has _global_ antialiased on by default // and here the _text_ antialiased is turned off // changed JXLabel default foregroundPainter to have antialiasing false by // default, so remove interference here // part of fix for #920 - the other part is in JXLabel, fix 1164 // ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, // RenderingHints.VALUE_TEXT_ANTIALIAS_OFF); super.paint(g); }
@Override public void paint(Graphics g) { // switch off jxlabel default antialiasing // JW: that cost me dearly to track down - it's the default foreground painter // which is an AbstractPainter which has _global_ antialiased on by default // and here the _text_ antialiased is turned off // changed JXLabel default foregroundPainter to have antialiasing false by // default, so remove interference here // part of fix for #920 - the other part is in JXLabel, fix 1164 // ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, // RenderingHints.VALUE_TEXT_ANTIALIAS_OFF); super.paint(g); }
@Override public void paint(Graphics g) { // switch off jxlabel default antialiasing // JW: that cost me dearly to track down - it's the default foreground painter // which is an AbstractPainter which has _global_ antialiased on by default // and here the _text_ antialiased is turned off // changed JXLabel default foregroundPainter to have antialiasing false by // default, so remove interference here // part of fix for #920 - the other part is in JXLabel, fix 1164 // ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, // RenderingHints.VALUE_TEXT_ANTIALIAS_OFF); super.paint(g); }
@Override public void paint(Graphics g) { // LOG.info(getText() + ": all hints " + ((Graphics2D)g).getRenderingHints() // + "\n " + ": aliased " + ((Graphics2D)g).getRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING)); // switch off jxlabel default antialiasing // JW: that cost me dearly to track down - it's the default foreground painter // which is an AbstractPainter which has _global_ antialiased on by default // and here the _text_ antialiased is turned off ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_OFF); super.paint(g); }
@Override protected void doPaint(Graphics2D g, JXLabel label, int width, int height) { Insets i = getInsets(); g = (Graphics2D) g.create(-i.left, -i.top, width, height); try { label.paint(g); } finally { g.dispose(); } } //if any of the state of the JButton that affects the foreground has changed,
@Override protected void doPaint(Graphics2D g, JXLabel label, int width, int height) { Insets i = getInsets(); g = (Graphics2D) g.create(-i.left, -i.top, width, height); try { label.paint(g); } finally { g.dispose(); } } //if any of the state of the JButton that affects the foreground has changed,
@Override protected void doPaint(Graphics2D g, JXLabel label, int width, int height) { Insets i = getInsets(); g = (Graphics2D) g.create(-i.left, -i.top, width, height); try { label.paint(g); } finally { g.dispose(); } } //if any of the state of the JButton that affects the foreground has changed,
protected void doPaint(Graphics2D g, JXLabel label, int width, int height) { Insets i = getInsets(); g = (Graphics2D) g.create(-i.left, -i.top, width, height); try { label.paint(g); } finally { g.dispose(); } } //if any of the state of the JButton that affects the foreground has changed,
@Override protected void doPaint(Graphics2D g, JXLabel label, int width, int height) { Insets i = getInsets(); g = (Graphics2D) g.create(-i.left, -i.top, width, height); try { label.paint(g); } finally { g.dispose(); } } //if any of the state of the JButton that affects the foreground has changed,