1968 // Cosntant alpha 1969 public boolean isWindowOpacitySupported() { 1970 return false; 1971 } 1972 1973 // Shaping 1974 public boolean isWindowShapingSupported() { 1975 return false; 1976 } 1977 1978 // Per-pixel alpha 1979 public boolean isWindowTranslucencySupported() { 1980 return false; 1981 } 1982 1983 public boolean isTranslucencyCapable(GraphicsConfiguration gc) { 1984 return false; 1985 } 1986 1987 /** 1988 * Returns whether or not a containing top level window for the passed 1989 * component is 1990 * {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT PERPIXEL_TRANSLUCENT}. 1991 * 1992 * @param c a Component which toplevel's to check 1993 * @return {@code true} if the passed component is not null and has a 1994 * containing toplevel window which is opaque (so per-pixel translucency 1995 * is not enabled), {@code false} otherwise 1996 * @see GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT 1997 */ 1998 public static boolean isContainingTopLevelOpaque(Component c) { 1999 Window w = getContainingWindow(c); 2000 return w != null && w.isOpaque(); 2001 } 2002 2003 /** 2004 * Returns whether or not a containing top level window for the passed 2005 * component is 2006 * {@link GraphicsDevice.WindowTranslucency#TRANSLUCENT TRANSLUCENT}. 2007 * | 1968 // Cosntant alpha 1969 public boolean isWindowOpacitySupported() { 1970 return false; 1971 } 1972 1973 // Shaping 1974 public boolean isWindowShapingSupported() { 1975 return false; 1976 } 1977 1978 // Per-pixel alpha 1979 public boolean isWindowTranslucencySupported() { 1980 return false; 1981 } 1982 1983 public boolean isTranslucencyCapable(GraphicsConfiguration gc) { 1984 return false; 1985 } 1986 1987 /** 1988 * Returns true if swing backbuffer should be translucent. 1989 */ 1990 public boolean isSwingBackbufferTranslucencySupported() { 1991 return false; 1992 } 1993 1994 /** 1995 * Returns whether or not a containing top level window for the passed 1996 * component is 1997 * {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT PERPIXEL_TRANSLUCENT}. 1998 * 1999 * @param c a Component which toplevel's to check 2000 * @return {@code true} if the passed component is not null and has a 2001 * containing toplevel window which is opaque (so per-pixel translucency 2002 * is not enabled), {@code false} otherwise 2003 * @see GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT 2004 */ 2005 public static boolean isContainingTopLevelOpaque(Component c) { 2006 Window w = getContainingWindow(c); 2007 return w != null && w.isOpaque(); 2008 } 2009 2010 /** 2011 * Returns whether or not a containing top level window for the passed 2012 * component is 2013 * {@link GraphicsDevice.WindowTranslucency#TRANSLUCENT TRANSLUCENT}. 2014 * |