01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: /**
18: * @author Pavel Dolgov
19: * @version $Revision$
20: */package org.apache.harmony.awt.wtk;
21:
22: import java.awt.Font;
23: import java.awt.font.TextAttribute;
24: import java.awt.im.InputMethodHighlight;
25: import java.util.Map;
26:
27: /**
28: * NativeProperties
29: */
30:
31: public interface SystemProperties {
32:
33: /**
34: * Get current value of a system color
35: * @param index - one of java.awt.SystemColor constants
36: * @return ARGB value of requested system color
37: */
38: int getSystemColorARGB(int index);
39:
40: /**
41: * Get default font for GUI elements such as menus and buttons
42: * @return the font object
43: */
44: Font getDefaultFont();
45:
46: /**
47: * Fill the given Map with system properties
48: */
49: void init(Map<String, ?> desktopProperties);
50:
51: /**
52: * Fills the given map with system-dependent visual text
53: * attributes for the abstract description
54: * of the given input method highlight
55: * @see java.awt.Toolkit.mapInputMethodHighlight()
56: */
57: void mapInputMethodHighlight(InputMethodHighlight highlight,
58: Map<TextAttribute, ?> map);
59: }
|