Java Code Examples for sun.awt.Win32GraphicsEnvironment#isVistaOS()

The following examples show how to use sun.awt.Win32GraphicsEnvironment#isVistaOS() . 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: WComponentPeer.java    From dragonwell8_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns whether this component is capable of being hw accelerated.
 * More specifically, whether rendering to this component or a
 * BufferStrategy's back-buffer for this component can be hw accelerated.
 *
 * Conditions which could prevent hw acceleration include the toplevel
 * window containing this component being
 * {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 * PERPIXEL_TRANSLUCENT}.
 *
 * Another condition is if Xor paint mode was detected when rendering
 * to an on-screen accelerated surface associated with this peer.
 * in this case both on- and off-screen acceleration for this peer is
 * disabled.
 *
 * @return {@code true} if this component is capable of being hw
 * accelerated, {@code false} otherwise
 * @see GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 */
public boolean isAccelCapable() {
    if (!isAccelCapable ||
        !isContainingTopLevelAccelCapable((Component)target))
    {
        return false;
    }

    boolean isTranslucent =
        SunToolkit.isContainingTopLevelTranslucent((Component)target);
    // D3D/OGL and translucent windows interacted poorly in Windows XP;
    // these problems are no longer present in Vista
    return !isTranslucent || Win32GraphicsEnvironment.isVistaOS();
}
 
Example 2
Source File: WComponentPeer.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns whether this component is capable of being hw accelerated.
 * More specifically, whether rendering to this component or a
 * BufferStrategy's back-buffer for this component can be hw accelerated.
 *
 * Conditions which could prevent hw acceleration include the toplevel
 * window containing this component being
 * {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 * PERPIXEL_TRANSLUCENT}.
 *
 * Another condition is if Xor paint mode was detected when rendering
 * to an on-screen accelerated surface associated with this peer.
 * in this case both on- and off-screen acceleration for this peer is
 * disabled.
 *
 * @return {@code true} if this component is capable of being hw
 * accelerated, {@code false} otherwise
 * @see GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 */
public boolean isAccelCapable() {
    if (!isAccelCapable ||
        !isContainingTopLevelAccelCapable((Component)target))
    {
        return false;
    }

    boolean isTranslucent =
        SunToolkit.isContainingTopLevelTranslucent((Component)target);
    // D3D/OGL and translucent windows interacted poorly in Windows XP;
    // these problems are no longer present in Vista
    return !isTranslucent || Win32GraphicsEnvironment.isVistaOS();
}
 
Example 3
Source File: WComponentPeer.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns whether this component is capable of being hw accelerated.
 * More specifically, whether rendering to this component or a
 * BufferStrategy's back-buffer for this component can be hw accelerated.
 *
 * Conditions which could prevent hw acceleration include the toplevel
 * window containing this component being
 * {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 * PERPIXEL_TRANSLUCENT}.
 *
 * Another condition is if Xor paint mode was detected when rendering
 * to an on-screen accelerated surface associated with this peer.
 * in this case both on- and off-screen acceleration for this peer is
 * disabled.
 *
 * @return {@code true} if this component is capable of being hw
 * accelerated, {@code false} otherwise
 * @see GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 */
public boolean isAccelCapable() {
    if (!isAccelCapable ||
        !isContainingTopLevelAccelCapable((Component)target))
    {
        return false;
    }

    boolean isTranslucent =
        SunToolkit.isContainingTopLevelTranslucent((Component)target);
    // D3D/OGL and translucent windows interacted poorly in Windows XP;
    // these problems are no longer present in Vista
    return !isTranslucent || Win32GraphicsEnvironment.isVistaOS();
}
 
Example 4
Source File: WComponentPeer.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns whether this component is capable of being hw accelerated.
 * More specifically, whether rendering to this component or a
 * BufferStrategy's back-buffer for this component can be hw accelerated.
 *
 * Conditions which could prevent hw acceleration include the toplevel
 * window containing this component being
 * {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 * PERPIXEL_TRANSLUCENT}.
 *
 * Another condition is if Xor paint mode was detected when rendering
 * to an on-screen accelerated surface associated with this peer.
 * in this case both on- and off-screen acceleration for this peer is
 * disabled.
 *
 * @return {@code true} if this component is capable of being hw
 * accelerated, {@code false} otherwise
 * @see GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 */
public boolean isAccelCapable() {
    if (!isAccelCapable ||
        !isContainingTopLevelAccelCapable((Component)target))
    {
        return false;
    }

    boolean isTranslucent =
        SunToolkit.isContainingTopLevelTranslucent((Component)target);
    // D3D/OGL and translucent windows interacted poorly in Windows XP;
    // these problems are no longer present in Vista
    return !isTranslucent || Win32GraphicsEnvironment.isVistaOS();
}
 
Example 5
Source File: WComponentPeer.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns whether this component is capable of being hw accelerated.
 * More specifically, whether rendering to this component or a
 * BufferStrategy's back-buffer for this component can be hw accelerated.
 *
 * Conditions which could prevent hw acceleration include the toplevel
 * window containing this component being
 * {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 * PERPIXEL_TRANSLUCENT}.
 *
 * Another condition is if Xor paint mode was detected when rendering
 * to an on-screen accelerated surface associated with this peer.
 * in this case both on- and off-screen acceleration for this peer is
 * disabled.
 *
 * @return {@code true} if this component is capable of being hw
 * accelerated, {@code false} otherwise
 * @see GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 */
public boolean isAccelCapable() {
    if (!isAccelCapable ||
        !isContainingTopLevelAccelCapable((Component)target))
    {
        return false;
    }

    boolean isTranslucent =
        SunToolkit.isContainingTopLevelTranslucent((Component)target);
    // D3D/OGL and translucent windows interacted poorly in Windows XP;
    // these problems are no longer present in Vista
    return !isTranslucent || Win32GraphicsEnvironment.isVistaOS();
}
 
Example 6
Source File: WComponentPeer.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns whether this component is capable of being hw accelerated.
 * More specifically, whether rendering to this component or a
 * BufferStrategy's back-buffer for this component can be hw accelerated.
 *
 * Conditions which could prevent hw acceleration include the toplevel
 * window containing this component being
 * {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 * PERPIXEL_TRANSLUCENT}.
 *
 * Another condition is if Xor paint mode was detected when rendering
 * to an on-screen accelerated surface associated with this peer.
 * in this case both on- and off-screen acceleration for this peer is
 * disabled.
 *
 * @return {@code true} if this component is capable of being hw
 * accelerated, {@code false} otherwise
 * @see GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 */
public boolean isAccelCapable() {
    if (!isAccelCapable ||
        !isContainingTopLevelAccelCapable((Component)target))
    {
        return false;
    }

    boolean isTranslucent =
        SunToolkit.isContainingTopLevelTranslucent((Component)target);
    // D3D/OGL and translucent windows interacted poorly in Windows XP;
    // these problems are no longer present in Vista
    return !isTranslucent || Win32GraphicsEnvironment.isVistaOS();
}
 
Example 7
Source File: WComponentPeer.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns whether this component is capable of being hw accelerated.
 * More specifically, whether rendering to this component or a
 * BufferStrategy's back-buffer for this component can be hw accelerated.
 *
 * Conditions which could prevent hw acceleration include the toplevel
 * window containing this component being
 * {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 * PERPIXEL_TRANSLUCENT}.
 *
 * Another condition is if Xor paint mode was detected when rendering
 * to an on-screen accelerated surface associated with this peer.
 * in this case both on- and off-screen acceleration for this peer is
 * disabled.
 *
 * @return {@code true} if this component is capable of being hw
 * accelerated, {@code false} otherwise
 * @see GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 */
public boolean isAccelCapable() {
    if (!isAccelCapable ||
        !isContainingTopLevelAccelCapable((Component)target))
    {
        return false;
    }

    boolean isTranslucent =
        SunToolkit.isContainingTopLevelTranslucent((Component)target);
    // D3D/OGL and translucent windows interacted poorly in Windows XP;
    // these problems are no longer present in Vista
    return !isTranslucent || Win32GraphicsEnvironment.isVistaOS();
}
 
Example 8
Source File: WComponentPeer.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns whether this component is capable of being hw accelerated.
 * More specifically, whether rendering to this component or a
 * BufferStrategy's back-buffer for this component can be hw accelerated.
 *
 * Conditions which could prevent hw acceleration include the toplevel
 * window containing this component being
 * {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 * PERPIXEL_TRANSLUCENT}.
 *
 * Another condition is if Xor paint mode was detected when rendering
 * to an on-screen accelerated surface associated with this peer.
 * in this case both on- and off-screen acceleration for this peer is
 * disabled.
 *
 * @return {@code true} if this component is capable of being hw
 * accelerated, {@code false} otherwise
 * @see GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 */
public boolean isAccelCapable() {
    if (!isAccelCapable ||
        !isContainingTopLevelAccelCapable((Component)target))
    {
        return false;
    }

    boolean isTranslucent =
        SunToolkit.isContainingTopLevelTranslucent((Component)target);
    // D3D/OGL and translucent windows interacted poorly in Windows XP;
    // these problems are no longer present in Vista
    return !isTranslucent || Win32GraphicsEnvironment.isVistaOS();
}
 
Example 9
Source File: WComponentPeer.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns whether this component is capable of being hw accelerated.
 * More specifically, whether rendering to this component or a
 * BufferStrategy's back-buffer for this component can be hw accelerated.
 *
 * Conditions which could prevent hw acceleration include the toplevel
 * window containing this component being
 * {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 * PERPIXEL_TRANSLUCENT}.
 *
 * Another condition is if Xor paint mode was detected when rendering
 * to an on-screen accelerated surface associated with this peer.
 * in this case both on- and off-screen acceleration for this peer is
 * disabled.
 *
 * @return {@code true} if this component is capable of being hw
 * accelerated, {@code false} otherwise
 * @see GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 */
public boolean isAccelCapable() {
    if (!isAccelCapable ||
        !isContainingTopLevelAccelCapable((Component)target))
    {
        return false;
    }

    boolean isTranslucent =
        SunToolkit.isContainingTopLevelTranslucent((Component)target);
    // D3D/OGL and translucent windows interacted poorly in Windows XP;
    // these problems are no longer present in Vista
    return !isTranslucent || Win32GraphicsEnvironment.isVistaOS();
}
 
Example 10
Source File: WComponentPeer.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns whether this component is capable of being hw accelerated.
 * More specifically, whether rendering to this component or a
 * BufferStrategy's back-buffer for this component can be hw accelerated.
 *
 * Conditions which could prevent hw acceleration include the toplevel
 * window containing this component being
 * {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 * PERPIXEL_TRANSLUCENT}.
 *
 * Another condition is if Xor paint mode was detected when rendering
 * to an on-screen accelerated surface associated with this peer.
 * in this case both on- and off-screen acceleration for this peer is
 * disabled.
 *
 * @return {@code true} if this component is capable of being hw
 * accelerated, {@code false} otherwise
 * @see GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 */
public boolean isAccelCapable() {
    if (!isAccelCapable ||
        !isContainingTopLevelAccelCapable((Component)target))
    {
        return false;
    }

    boolean isTranslucent =
        SunToolkit.isContainingTopLevelTranslucent((Component)target);
    // D3D/OGL and translucent windows interacted poorly in Windows XP;
    // these problems are no longer present in Vista
    return !isTranslucent || Win32GraphicsEnvironment.isVistaOS();
}
 
Example 11
Source File: WComponentPeer.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns whether this component is capable of being hw accelerated.
 * More specifically, whether rendering to this component or a
 * BufferStrategy's back-buffer for this component can be hw accelerated.
 *
 * Conditions which could prevent hw acceleration include the toplevel
 * window containing this component being
 * {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 * PERPIXEL_TRANSLUCENT}.
 *
 * Another condition is if Xor paint mode was detected when rendering
 * to an on-screen accelerated surface associated with this peer.
 * in this case both on- and off-screen acceleration for this peer is
 * disabled.
 *
 * @return {@code true} if this component is capable of being hw
 * accelerated, {@code false} otherwise
 * @see GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 */
public boolean isAccelCapable() {
    if (!isAccelCapable ||
        !isContainingTopLevelAccelCapable((Component)target))
    {
        return false;
    }

    boolean isTranslucent =
        SunToolkit.isContainingTopLevelTranslucent((Component)target);
    // D3D/OGL and translucent windows interacted poorly in Windows XP;
    // these problems are no longer present in Vista
    return !isTranslucent || Win32GraphicsEnvironment.isVistaOS();
}
 
Example 12
Source File: WComponentPeer.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns whether this component is capable of being hw accelerated.
 * More specifically, whether rendering to this component or a
 * BufferStrategy's back-buffer for this component can be hw accelerated.
 *
 * Conditions which could prevent hw acceleration include the toplevel
 * window containing this component being
 * {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 * PERPIXEL_TRANSLUCENT}.
 *
 * Another condition is if Xor paint mode was detected when rendering
 * to an on-screen accelerated surface associated with this peer.
 * in this case both on- and off-screen acceleration for this peer is
 * disabled.
 *
 * @return {@code true} if this component is capable of being hw
 * accelerated, {@code false} otherwise
 * @see GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 */
public boolean isAccelCapable() {
    if (!isAccelCapable ||
        !isContainingTopLevelAccelCapable((Component)target))
    {
        return false;
    }

    boolean isTranslucent =
        SunToolkit.isContainingTopLevelTranslucent((Component)target);
    // D3D/OGL and translucent windows interacted poorly in Windows XP;
    // these problems are no longer present in Vista
    return !isTranslucent || Win32GraphicsEnvironment.isVistaOS();
}
 
Example 13
Source File: WComponentPeer.java    From jdk8u-dev-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns whether this component is capable of being hw accelerated.
 * More specifically, whether rendering to this component or a
 * BufferStrategy's back-buffer for this component can be hw accelerated.
 *
 * Conditions which could prevent hw acceleration include the toplevel
 * window containing this component being
 * {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 * PERPIXEL_TRANSLUCENT}.
 *
 * Another condition is if Xor paint mode was detected when rendering
 * to an on-screen accelerated surface associated with this peer.
 * in this case both on- and off-screen acceleration for this peer is
 * disabled.
 *
 * @return {@code true} if this component is capable of being hw
 * accelerated, {@code false} otherwise
 * @see GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT
 */
public boolean isAccelCapable() {
    if (!isAccelCapable ||
        !isContainingTopLevelAccelCapable((Component)target))
    {
        return false;
    }

    boolean isTranslucent =
        SunToolkit.isContainingTopLevelTranslucent((Component)target);
    // D3D/OGL and translucent windows interacted poorly in Windows XP;
    // these problems are no longer present in Vista
    return !isTranslucent || Win32GraphicsEnvironment.isVistaOS();
}