Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/solaris/classes/sun/awt/windows/ThemeReader.java
32288 views
/*1* Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package sun.awt.windows;2627import java.awt.Color;28import java.awt.Dimension;29import java.awt.Insets;30import java.awt.Point;313233/**34* This is a stubbed out placeholder class, intended to allow building35* WindowsLookAndFeel on Unix. This class is never actually called on36* Unix, and will be deleted when WindowsLookAndFeel is no longer built37* on Unix.38*39* @author Leif Samuelsson40*/41public final class ThemeReader {4243public static boolean isThemed() {44return false;45}4647public static boolean isXPStyleEnabled() {48return false;49}5051public static void paintBackground(int[] buffer, String widget,52int part, int state, int x, int y, int w, int h, int stride) {53}5455public static Insets getThemeMargins(String widget, int part, int state, int marginType) {56return null;57}5859public static boolean isThemePartDefined(String widget, int part, int state) {60return false;61}6263public static Color getColor(String widget, int part, int state, int property) {64return null;65}6667public static int getInt(String widget, int part, int state, int property) {68return 0;69}7071public static int getEnum(String widget, int part, int state, int property) {72return 0;73}7475public static boolean getBoolean(String widget, int part, int state, int property) {76return false;77}7879public static boolean getSysBoolean(String widget, int property) {80return false;81}8283public static Point getPoint(String widget, int part, int state, int property) {84return null;85}8687public static Dimension getPosition(String widget, int part, int state, int property) {88return null;89}9091public static Dimension getPartSize(String widget, int part, int state) {92return null;93}9495public static long getThemeTransitionDuration(String widget, int part,96int stateFrom, int stateTo, int propId) {97return 0;98}99100public static boolean isGetThemeTransitionDurationDefined() {101return false;102}103104public static Insets getThemeBackgroundContentMargins(String widget,105int part, int state, int boundingWidth, int boundingHeight) {106return null;107}108}109110111