| Modifier and Type | Class and Description |
|---|---|
| private static class | GTKLookAndFeel.
Gnome layout style. |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static Map | aaTextInfo
Whether or not text is drawn antialiased. |
| private Font | fallbackFont
Font to use in places where there is no widget. |
| private static boolean | |
| private static String | gtkThemeName
Cached theme name. |
| private boolean | inInitialize
If true, GTKLookAndFeel is inside the |
| private static boolean | |
| private boolean | pclInstalled
If true, PropertyChangeListeners have been installed for the Toolkit. |
| pack-priv static ReferenceQueue | |
| private GTKStyleFactory | styleFactory
StyleFactory needs to be created only the first time. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private native boolean | |
| private boolean | |
| public static ComponentUI | createUI(JComponent c)
Hides javax. Creates the GTK look and feel class for the passed in Component. |
| private static void | |
| public UIDefaults | getDefaults()
Overrides javax. Returns the defaults for this SynthLookAndFeel. |
| public String | getDescription()
Overrides javax. Returns a textual description of SynthLookAndFeel. |
| private GTKStyleFactory | |
| pack-priv static String | |
| public String | getID()
Overrides javax. Return a string that identifies this look and feel. |
| public LayoutStyle | getLayoutStyle()
Overrides javax. Returns the |
| public String | getName()
Overrides javax. Return a short string that identifies this look and feel. |
| protected void | initComponentDefaults(UIDefaults table)
Overrides javax. Populates |
| public void | initialize()
Overrides javax. Called by UIManager when this look and feel is installed. |
| private void | initResourceBundle(UIDefaults table)
Hides javax. Initialize the defaults table with the name of the ResourceBundle used for getting localized defaults. |
| protected void | initSystemColorDefaults(UIDefaults table)
Overrides javax. Populates |
| private void | |
| pack-priv static boolean | |
| pack-priv static boolean | |
| public boolean | isNativeLookAndFeel()
Overrides javax. Returns false, SynthLookAndFeel is not a native look and feel. |
| public boolean | isSupportedLookAndFeel()
Overrides javax. Returns true, SynthLookAndFeel is always supported. |
| pack-priv static boolean | |
| private void | |
| protected void | loadSystemColors(UIDefaults table, String[] systemColors, boolean useNative)
Overrides javax. Populates |
| public boolean | Returns: whether or not the UIs should update theirSynthStyles from the SynthStyleFactory
when the ancestor changed.Overrides javax. Returns whether or not the UIs should update their
|
| pack-priv static GTKConstants. | |
| pack-priv static int | synthStateToGTKState(Region region, int state)
Maps from a Synth state to the corresponding GTK state. |
| pack-priv static GTKConstants. | synthStateToGTKStateType(int state)
Maps from Synth state to native GTK state using typesafe enumeration StateType. |
| public void | uninitialize()
Overrides javax. Called by UIManager when this look and feel is uninstalled. |
| aaTextInfo | back to summary |
|---|---|
| pack-priv static Map<Object, Object> aaTextInfo Whether or not text is drawn antialiased. This keys off the desktop property 'gnome.Xft/Antialias' and 'gnome.Xft/RGBA' We should assume ON - or some variation of ON as no GTK desktop ships with it OFF. | |
| fallbackFont | back to summary |
|---|---|
| private Font fallbackFont Font to use in places where there is no widget. | |
| gtkAAFontSettingsCond | back to summary |
|---|---|
| private static boolean gtkAAFontSettingsCond | |
| gtkThemeName | back to summary |
|---|---|
| private static String gtkThemeName Cached theme name. Used by GTKGraphicsUtils | |
| inInitialize | back to summary |
|---|---|
| private boolean inInitialize If true, GTKLookAndFeel is inside the | |
| IS_3 | back to summary |
|---|---|
| private static boolean IS_3 | |
| pclInstalled | back to summary |
|---|---|
| private boolean pclInstalled If true, PropertyChangeListeners have been installed for the Toolkit. | |
| queue | back to summary |
|---|---|
| pack-priv static ReferenceQueue<GTKLookAndFeel> queue | |
| styleFactory | back to summary |
|---|---|
| private GTKStyleFactory styleFactory StyleFactory needs to be created only the first time. | |
| GTKLookAndFeel | back to summary |
|---|---|
| public GTKLookAndFeel() | |
| applyThemeIfNeeded | back to summary |
|---|---|
| private native boolean applyThemeIfNeeded() | |
| configIconSizes | back to summary |
|---|---|
| private boolean configIconSizes(String sizeString) | |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent c) Hides javax. Creates the GTK look and feel class for the passed in Component. | |
| flushUnreferenced | back to summary |
|---|---|
| private static void flushUnreferenced() Hides javax. | |
| getDefaults | back to summary |
|---|---|
| public UIDefaults getDefaults() Overrides javax. Doc from javax. Returns the defaults for this SynthLookAndFeel.
| |
| getDescription | back to summary |
|---|---|
| public String getDescription() Overrides javax. Doc from javax. Returns a textual description of SynthLookAndFeel.
| |
| getGTKStyleFactory | back to summary |
|---|---|
| private GTKStyleFactory getGTKStyleFactory() | |
| getGtkThemeName | back to summary |
|---|---|
| pack-priv static String getGtkThemeName() Returns the cached gtkThemeName | |
| getID | back to summary |
|---|---|
| public String getID() Overrides javax. Doc from javax. Return a string that identifies this look and feel.
| |
| getLayoutStyle | back to summary |
|---|---|
| public LayoutStyle getLayoutStyle() Overrides javax. Doc from javax. Returns the
You generally don't use the
| |
| getName | back to summary |
|---|---|
| public String getName() Overrides javax. Doc from javax. Return a short string that identifies this look and feel.
| |
| initComponentDefaults | back to summary |
|---|---|
| protected void initComponentDefaults(UIDefaults table) Overrides javax. Doc from javax. Populates
| |
| initialize | back to summary |
|---|---|
| public void initialize() Overrides javax. Doc from javax. Called by UIManager when this look and feel is installed.
| |
| initResourceBundle | back to summary |
|---|---|
| private void initResourceBundle(UIDefaults table) Hides javax. Doc from javax. Initialize the defaults table with the name of the ResourceBundle used for getting localized defaults. Also initialize the default locale used when no locale is passed into UIDefaults.get(). The default locale should generally not be relied upon. It is here for compatibility with releases prior to 1.4. | |
| initSystemColorDefaults | back to summary |
|---|---|
| protected void initSystemColorDefaults(UIDefaults table) Overrides javax. Doc from javax. Populates
The name is a
The
The following shows two of the
String[] nameColorPairs = new String[] {
"desktop", "#005C5C",
"activeCaption", "#000080" };
loadSystemColors(table, nameColorPairs, isNativeLookAndFeel());
As previously stated, this invokes loadSystemColors
with the supplied table and name-color pair
array. The last argument to loadSystemColors indicates
whether the value of the field in SystemColor should be
used. This method passes the value of isNativeLookAndFeel() as the last argument to loadSystemColors.
| |
| installPropertyChangeListeners | back to summary |
|---|---|
| private void installPropertyChangeListeners() | |
| is3 | back to summary |
|---|---|
| pack-priv static boolean is3() | |
| isLeftToRight | back to summary |
|---|---|
| pack-priv static boolean isLeftToRight(Component c) Hides javax. | |
| isNativeLookAndFeel | back to summary |
|---|---|
| public boolean isNativeLookAndFeel() Overrides javax. Doc from javax. Returns false, SynthLookAndFeel is not a native look and feel.
| |
| isSupportedLookAndFeel | back to summary |
|---|---|
| public boolean isSupportedLookAndFeel() Overrides javax. Doc from javax. Returns true, SynthLookAndFeel is always supported.
| |
| isText | back to summary |
|---|---|
| pack-priv static boolean isText(Region region) | |
| loadStyles | back to summary |
|---|---|
| private void loadStyles() | |
| loadSystemColors | back to summary |
|---|---|
| protected void loadSystemColors(UIDefaults table, String[] systemColors, boolean useNative) Overrides javax. Doc from javax. Populates
An entry is added to
The value of the entry corresponds to the
If
If
| |
| shouldUpdateStyleOnAncestorChanged | back to summary |
|---|---|
| public boolean shouldUpdateStyleOnAncestorChanged() Overrides javax. Returns whether or not the UIs should update their
| |
| SwingOrientationConstantToGTK | back to summary |
|---|---|
| pack-priv static GTKConstants. Maps a swing constant to a GTK constant. | |
| synthStateToGTKState | back to summary | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| pack-priv static int synthStateToGTKState(Region region, int state) Maps from a Synth state to the corresponding GTK state. The GTK states are named differently than Synth's states, the following gives the mapping:
| |||||||||||||
| synthStateToGTKStateType | back to summary |
|---|---|
| pack-priv static GTKConstants. Maps from Synth state to native GTK state using typesafe enumeration StateType. This is only used by GTKEngine. | |
| uninitialize | back to summary |
|---|---|
| public void uninitialize() Overrides javax. Doc from javax. Called by UIManager when this look and feel is uninstalled.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static GTKLookAndFeel. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | getContainerGap(JComponent component, int position, Container parent)
Overrides sun. Returns the amount of space to place between the component and specified edge of its parent. |
| public int | getPreferredGap(JComponent component1, JComponent component2, LayoutStyle.
Overrides sun. Returns the amount of space to use between two components. |
| INSTANCE | back to summary |
|---|---|
| private static GTKLookAndFeel. | |
| GnomeLayoutStyle | back to summary |
|---|---|
| private GnomeLayoutStyle() | |
| getContainerGap | back to summary |
|---|---|
| public int getContainerGap(JComponent component, int position, Container parent) Overrides sun. Doc from javax. Returns the amount of space to place between the component and specified edge of its parent.
| |
| getPreferredGap | back to summary |
|---|---|
| public int getPreferredGap(JComponent component1, JComponent component2, LayoutStyle. Overrides sun. Doc from javax. Returns the amount of space to use between two components.
The return value indicates the distance to place
int gap = getPreferredGap(component1, component2,
ComponentPlacement.RELATED,
SwingConstants.NORTH, parent);
The type parameter indicates the relation between
the two components. If the two components will be contained in
the same parent and are showing similar logically related
items, use RELATED. If the two components will be
contained in the same parent but show logically unrelated items
use UNRELATED. Some look and feels may not
distinguish between the RELATED and
UNRELATED types.
The return value is not intended to take into account the
current size and position of
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public String | |
| public void | propertyChange(final PropertyChangeEvent pce)
Implements java. This method gets called when a bound property is changed. |
| WeakPCL | back to summary |
|---|---|
| pack-priv WeakPCL(GTKLookAndFeel target, Toolkit kit, String key) | |
| dispose | back to summary |
|---|---|
| pack-priv void dispose() | |
| getKey | back to summary |
|---|---|
| public String getKey() | |
| propertyChange | back to summary |
|---|---|
| public void propertyChange(final PropertyChangeEvent pce) Implements java. Doc from java. This method gets called when a bound property is changed.
| |