Java Code Examples for sun.swing.SwingUtilities2#isFloatingPointScale()
The following examples show how to use
sun.swing.SwingUtilities2#isFloatingPointScale() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JViewport.java From Bytecoder with Apache License 2.0 | 5 votes |
private boolean isFPScale() { GraphicsConfiguration gc = getGraphicsConfiguration(); if (gc != null) { return SwingUtilities2.isFloatingPointScale(gc.getDefaultTransform()); } return false; }
Example 2
Source File: RepaintManager.java From Bytecoder with Apache License 2.0 | 5 votes |
private boolean isPixelsCopying(JComponent c, Graphics g) { AffineTransform tx = getTransform(g); GraphicsConfiguration gc = c.getGraphicsConfiguration(); if (tx == null || gc == null || !SwingUtilities2.isFloatingPointScale(tx)) { return false; } AffineTransform gcTx = gc.getDefaultTransform(); return gcTx.getScaleX() == tx.getScaleX() && gcTx.getScaleY() == tx.getScaleY(); }
Example 3
Source File: JViewport.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private boolean isFPScale() { GraphicsConfiguration gc = getGraphicsConfiguration(); if (gc != null) { return SwingUtilities2.isFloatingPointScale(gc.getDefaultTransform()); } return false; }
Example 4
Source File: RepaintManager.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private boolean isPixelsCopying(JComponent c, Graphics g) { AffineTransform tx = getTransform(g); GraphicsConfiguration gc = c.getGraphicsConfiguration(); if (tx == null || gc == null || !SwingUtilities2.isFloatingPointScale(tx)) { return false; } AffineTransform gcTx = gc.getDefaultTransform(); return gcTx.getScaleX() == tx.getScaleX() && gcTx.getScaleY() == tx.getScaleY(); }
Example 5
Source File: JViewport.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
private boolean isFPScale() { GraphicsConfiguration gc = getGraphicsConfiguration(); if (gc != null) { return SwingUtilities2.isFloatingPointScale(gc.getDefaultTransform()); } return false; }
Example 6
Source File: RepaintManager.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
private boolean isPixelsCopying(JComponent c, Graphics g) { AffineTransform tx = getTransform(g); GraphicsConfiguration gc = c.getGraphicsConfiguration(); if (tx == null || gc == null || !SwingUtilities2.isFloatingPointScale(tx)) { return false; } AffineTransform gcTx = gc.getDefaultTransform(); return gcTx.getScaleX() == tx.getScaleX() && gcTx.getScaleY() == tx.getScaleY(); }