| Modifier and Type | Class and Description |
|---|---|
| private static class | GTKStyleFactory.
Represents a hash key used for fetching GTKStyle objects from the cache. |
| Modifier and Type | Field and Description |
|---|---|
| private Font | |
| private final Map | stylesCache
Saves all styles that have been accessed. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized SynthStyle | getStyle(JComponent
this parameter isn't used, may be null. c, Region of the region to get the style. id)Implements abstract javax. Returns the |
| pack-priv void |
| defaultFont | back to summary |
|---|---|
| private Font defaultFont | |
| stylesCache | back to summary |
|---|---|
| private final Map<Object, GTKStyle> stylesCache Saves all styles that have been accessed. In most common cases, the hash key is simply the WidgetType, but in more complex cases it will be a ComplexKey object that contains arguments to help differentiate similar styles. | |
| GTKStyleFactory | back to summary |
|---|---|
| pack-priv GTKStyleFactory() | |
| getStyle | back to summary |
|---|---|
| public synchronized SynthStyle getStyle(JComponent c, Region id) Implements abstract javax. Returns the
| |
| initStyles | back to summary |
|---|---|
| pack-priv void initStyles(Font defaultFont) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Object[] | |
| private final GTKEngine. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public String |
| args | back to summary |
|---|---|
| private final Object[] args | |
| wt | back to summary |
|---|---|
| private final GTKEngine. | |
| ComplexKey | back to summary |
|---|---|
| pack-priv ComplexKey(GTKEngine. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |