| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | GTKStyle.
GTKLazyValue is a slimmed down version of |
| private static class | GTKStyle.
An Icon that is fetched using getStockIcon. |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Color | |
| pack-priv static final Insets | |
| private static final Map | CLASS_SPECIFIC_MAP
Maps from a key that is passed to Style.get to the equivalent class specific key. |
| pack-priv static final Font | |
| private final Font | font
The font used for this particular style, as determined at construction time. |
| private static final GTKGraphicsUtils | |
| private static final String | |
| private static final Map | ICONS_MAP
Backing style properties that are used if the style does not defined the property. |
| pack-priv static final Color | |
| private final int | widgetType
Widget type used when looking up class specific values. |
| private final int | xThickness
The x/y thickness values for this particular style. |
| private final int | yThickness
The x/y thickness values for this particular style. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object | get(SynthContext context, Object key)
Overrides javax. Getter for a region specific style property. |
| private Insets | |
| pack-priv boolean | Returns: Value, or defaultValue ifkey is not definedSynthContext identifying requestor context, String Key identifying class specific value key, boolean Returned if there is no value for the specified
type defaultValue)Convenience method to get a class specific Boolean value. |
| pack-priv Insets | Returns: Value, or defaultValue ifkey is not definedSynthContext identifying requestor context, String Key identifying class specific value key, Insets Returned if there is no value for the specified
type defaultValue)Convenience method to get a class specific Insets value. |
| private static int | Returns: Value, or defaultValue ifkey is not definedWidgetType for which to fetch the value wt,Key identifying class specific value key, int Returned if there is no value for the specified
type defaultValue)Convenience method to get a class specific integer value for a particular WidgetType. |
| pack-priv int | Returns: Value, or defaultValue ifkey is not definedSynthContext identifying requestor context, String Key identifying class specific value key, int Returned if there is no value for the specified
type defaultValue)Convenience method to get a class specific integer value. |
| private static Object | Returns: Value, or null if one has not been definedWidgetType for which to fetch the value wt,Key identifying class specific value key)Returns the value for a class specific property for a particular WidgetType. |
| pack-priv Object | Returns: Value, or null if one has not been defined.Key identifying class specific value key)Returns the value for a class specific property. |
| public Color | getColor(SynthContext context, ColorType type)
Overrides javax. Returns the color for the specified state. |
| protected Color | getColorForState(SynthContext context, ColorType type)
Implements abstract javax. Returns the color for the specified state. |
| pack-priv Font | |
| protected Font | getFontForState(SynthContext context)
Implements abstract javax. Returns the font for the specified state. |
| public SynthGraphicsUtils | getGraphicsUtils(SynthContext context)
Overrides javax. Returns the |
| pack-priv Color | |
| pack-priv Color | |
| pack-priv Color | Returns: Color to render withSynthContext identifying requestor context, int to get the color for state, ColorType of the color type)Returns the color for the specified state. |
| public Insets | Returns: Insets.SynthContext identifying requestor state, Insets Where to place Insets insets)Overrides javax. Returns the Insets. |
| private Insets | |
| private Insets | |
| public SynthPainter | Returns: SynthPainterSynthContext identifying requestor state)Overrides javax. Returns a |
| private Insets | |
| private Insets | |
| private Insets | |
| private Insets | |
| private Insets | |
| private Icon | |
| private Color | getStyleSpecificColor(SynthContext context, int state, ColorType type)
Returns color specific to the current style. |
| private Icon | |
| private Insets | |
| private Insets | |
| private Insets | |
| pack-priv int | |
| pack-priv int | |
| public void | installDefaults(SynthContext context)
Overrides javax. Installs the necessary state from this Style on the
|
| public boolean | Returns: opaque Whether or not the JComponent is opaque.SynthContext identifying requestor context)Overrides javax. Returns the value to initialize the opacity property of the Component to. |
| private static native Object | |
| private static native int | |
| private static native String | |
| private static native int | |
| private static native int |
| BLACK_COLOR | back to summary |
|---|---|
| pack-priv static final Color BLACK_COLOR | |
| BUTTON_DEFAULT_BORDER_INSETS | back to summary |
|---|---|
| pack-priv static final Insets BUTTON_DEFAULT_BORDER_INSETS | |
| CLASS_SPECIFIC_MAP | back to summary |
|---|---|
| private static final Map<String, String> CLASS_SPECIFIC_MAP Maps from a key that is passed to Style.get to the equivalent class specific key. | |
| DEFAULT_FONT | back to summary |
|---|---|
| pack-priv static final Font DEFAULT_FONT | |
| font | back to summary |
|---|---|
| private final Font font The font used for this particular style, as determined at construction time. | |
| GTK_GRAPHICS | back to summary |
|---|---|
| private static final GTKGraphicsUtils GTK_GRAPHICS | |
| ICON_PROPERTY_PREFIX | back to summary |
|---|---|
| private static final String ICON_PROPERTY_PREFIX | |
| ICONS_MAP | back to summary |
|---|---|
| private static final Map<String, GTKStyle. Backing style properties that are used if the style does not defined the property. | |
| WHITE_COLOR | back to summary |
|---|---|
| pack-priv static final Color WHITE_COLOR | |
| widgetType | back to summary |
|---|---|
| private final int widgetType Widget type used when looking up class specific values. | |
| xThickness | back to summary |
|---|---|
| private final int xThickness The x/y thickness values for this particular style. | |
| yThickness | back to summary |
|---|---|
| private final int yThickness The x/y thickness values for this particular style. | |
| GTKStyle | back to summary |
|---|---|
| pack-priv GTKStyle(Font userFont, GTKEngine. | |
| get | back to summary |
|---|---|
| public Object get(SynthContext context, Object key) Overrides javax. Doc from javax. Getter for a region specific style property.
| |
| getButtonInsets | back to summary |
|---|---|
| private Insets getButtonInsets(SynthContext context, Insets insets) | |
| getClassSpecificBoolValue | back to summary |
|---|---|
| pack-priv boolean getClassSpecificBoolValue(SynthContext context, String key, boolean defaultValue) Convenience method to get a class specific Boolean value.
| |
| getClassSpecificInsetsValue | back to summary |
|---|---|
| pack-priv Insets getClassSpecificInsetsValue(SynthContext context, String key, Insets defaultValue) Convenience method to get a class specific Insets value.
| |
| getClassSpecificIntValue | back to summary |
|---|---|
| private static int getClassSpecificIntValue(GTKEngine. Convenience method to get a class specific integer value for a particular WidgetType.
| |
| getClassSpecificIntValue | back to summary |
|---|---|
| pack-priv int getClassSpecificIntValue(SynthContext context, String key, int defaultValue) Convenience method to get a class specific integer value.
| |
| getClassSpecificValue | back to summary |
|---|---|
| private static Object getClassSpecificValue(GTKEngine. Returns the value for a class specific property for a particular WidgetType. This method is useful in those cases where we need to fetch a value for a Region that is not associated with the component currently in use (e.g. we need to figure out the insets for a SCROLL_BAR, but certain values can only be extracted from a SCROLL_PANE region).
| |
| getClassSpecificValue | back to summary |
|---|---|
| pack-priv Object getClassSpecificValue(String key) Returns the value for a class specific property. A class specific value is a value that will be picked up based on class hierarchy. | |
| getColor | back to summary |
|---|---|
| public Color getColor(SynthContext context, ColorType type) Overrides javax. Doc from javax. Returns the color for the specified state. This gives precedence to
foreground and background of the
| |
| getColorForState | back to summary |
|---|---|
| protected Color getColorForState(SynthContext context, ColorType type) Implements abstract javax. Doc from javax. Returns the color for the specified state. This should NOT call any
methods on the
| |
| getDefaultFont | back to summary |
|---|---|
| pack-priv Font getDefaultFont() | |
| getFontForState | back to summary |
|---|---|
| protected Font getFontForState(SynthContext context) Implements abstract javax. Doc from javax. Returns the font for the specified state. This should NOT call any
method on the
| |
| getGraphicsUtils | back to summary |
|---|---|
| public SynthGraphicsUtils getGraphicsUtils(SynthContext context) Overrides javax. Doc from javax. Returns the
| |
| getGTKColor | back to summary |
|---|---|
| pack-priv Color getGTKColor(int state, ColorType type) | |
| getGTKColor | back to summary |
|---|---|
| pack-priv Color getGTKColor(int widgetType, int state, int colorType) | |
| getGTKColor | back to summary |
|---|---|
| pack-priv Color getGTKColor(SynthContext context, int state, ColorType type) Returns the color for the specified state.
| |
| getInsets | back to summary |
|---|---|
| public Insets getInsets(SynthContext state, Insets insets) Overrides javax. Returns the Insets. If
| |
| getMenuBarInsets | back to summary |
|---|---|
| private Insets getMenuBarInsets(SynthContext context, Insets insets) | |
| getMenuItemInsets | back to summary |
|---|---|
| private Insets getMenuItemInsets(SynthContext context, Insets insets) | |
| getPainter | back to summary |
|---|---|
| public SynthPainter getPainter(SynthContext state) Overrides javax. Returns a
| |
| getRadioInsets | back to summary |
|---|---|
| private Insets getRadioInsets(SynthContext context, Insets insets) | |
| getScrollBarInsets | back to summary |
|---|---|
| private Insets getScrollBarInsets(SynthContext context, Insets insets) | |
| getSeparatorInsets | back to summary |
|---|---|
| private Insets getSeparatorInsets(SynthContext context, Insets insets) | |
| getSimpleInsets | back to summary |
|---|---|
| private Insets getSimpleInsets(SynthContext context, Insets insets, int n) | |
| getSliderTrackInsets | back to summary |
|---|---|
| private Insets getSliderTrackInsets(SynthContext context, Insets insets) | |
| getStockIcon | back to summary |
|---|---|
| private Icon getStockIcon(SynthContext context, String key, int type) | |
| getStyleSpecificColor | back to summary |
|---|---|
| private Color getStyleSpecificColor(SynthContext context, int state, ColorType type) Returns color specific to the current style. This method is invoked when other variants don't fit. | |
| getStyleSpecificIcon | back to summary |
|---|---|
| private Icon getStyleSpecificIcon(String key, GTKConstants. | |
| getTabbedPaneTabInsets | back to summary |
|---|---|
| private Insets getTabbedPaneTabInsets(SynthContext context, Insets insets) | |
| getTextFieldInsets | back to summary |
|---|---|
| private Insets getTextFieldInsets(SynthContext context, Insets insets) | |
| getThicknessInsets | back to summary |
|---|---|
| private Insets getThicknessInsets(SynthContext context, Insets insets) | |
| getXThickness | back to summary |
|---|---|
| pack-priv int getXThickness() Returns the X thickness to use for this GTKStyle.
| |
| getYThickness | back to summary |
|---|---|
| pack-priv int getYThickness() Returns the Y thickness to use for this GTKStyle.
| |
| installDefaults | back to summary |
|---|---|
| public void installDefaults(SynthContext context) Overrides javax. Doc from javax. Installs the necessary state from this Style on the
| |
| isOpaque | back to summary |
|---|---|
| public boolean isOpaque(SynthContext context) Overrides javax. Returns the value to initialize the opacity property of the Component to. A Style should NOT assume the opacity will remain this value, the developer may reset it or override it.
| |
| nativeGetClassValue | back to summary |
|---|---|
| private static native Object nativeGetClassValue(int widgetType, String key) | |
| nativeGetColorForState | back to summary |
|---|---|
| private static native int nativeGetColorForState(int widgetType, int state, int typeID) | |
| nativeGetPangoFontName | back to summary |
|---|---|
| private static native String nativeGetPangoFontName(int widgetType) | |
| nativeGetXThickness | back to summary |
|---|---|
| private static native int nativeGetXThickness(int widgetType) | |
| nativeGetYThickness | back to summary |
|---|---|
| private static native int nativeGetYThickness(int widgetType) | |
ProxyLazyValue.
The code is duplicate so that it can get at the package private
classes in gtk.
| Modifier and Type | Field and Description |
|---|---|
| private String | className
Name of the class to create. |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object | createValue(UIDefaults table)
Implements javax. Creates the actual value retrieved from the |
| className | back to summary |
|---|---|
| private String className Name of the class to create. | |
| methodName | back to summary |
|---|---|
| private String methodName | |
| GTKLazyValue | back to summary |
|---|---|
| pack-priv GTKLazyValue(String name) | |
| GTKLazyValue | back to summary |
|---|---|
| pack-priv GTKLazyValue(String name, String methodName) | |
| createValue | back to summary |
|---|---|
| public Object createValue(UIDefaults table) Implements javax. Doc from javax. Creates the actual value retrieved from the
| |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private boolean | |
| private boolean | |
| private Icon | |
| private Icon | |
| private int | |
| private SynthStyle |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private Icon | |
| public int | getIconHeight(SynthContext context)
Implements javax. Returns the icon's height for the given synth context. |
| public int | getIconWidth(SynthContext context)
Implements javax. Returns the icon's width for the given synth context. |
| public void | paintIcon(SynthContext context, Graphics g, int x, int y, int w, int h)
Implements javax. Paints the icon at the specified location for the given synth context. |
| key | back to summary |
|---|---|
| private String key | |
| loadedLTR | back to summary |
|---|---|
| private boolean loadedLTR | |
| loadedRTL | back to summary |
|---|---|
| private boolean loadedRTL | |
| ltrIcon | back to summary |
|---|---|
| private Icon ltrIcon | |
| rtlIcon | back to summary |
|---|---|
| private Icon rtlIcon | |
| size | back to summary |
|---|---|
| private int size | |
| style | back to summary |
|---|---|
| private SynthStyle style | |
| GTKStockIcon | back to summary |
|---|---|
| pack-priv GTKStockIcon(String key, int size) | |
| getIcon | back to summary |
|---|---|
| private Icon getIcon(SynthContext context) | |
| getIconHeight | back to summary |
|---|---|
| public int getIconHeight(SynthContext context) Implements javax. Doc from javax. Returns the icon's height for the given synth context.
| |
| getIconWidth | back to summary |
|---|---|
| public int getIconWidth(SynthContext context) Implements javax. Doc from javax. Returns the icon's width for the given synth context.
| |
| paintIcon | back to summary |
|---|---|
| public void paintIcon(SynthContext context, Graphics g, int x, int y, int w, int h) Implements javax. Doc from javax. Paints the icon at the specified location for the given synth context.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static Map | |
| private static Dimension[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static Dimension | Returns: a Dimension object, or null if lsize is invalidicon type (GtkIconSize value) type)Return the size of a particular icon type (logical size) |
| private static Dimension[] | |
| public static int | Returns: icon type. Valid types are 1 to 6symbolic name, e.g. gtk-button size)Return icon type (GtkIconSize value) given a symbolic name which can occur in a theme file. |
| private static void | |
| public static void | setIconSize(int
icon type (GtkIconSize value) type, int the new icon width w, int the new icon height h)Change icon size in a type to size mapping. |
| ICON_TYPE_MAP | back to summary |
|---|---|
| private static Map<String, Integer> ICON_TYPE_MAP | |
| iconSizesMap | back to summary |
|---|---|
| private static Dimension[] iconSizesMap | |
| GTKStockIconInfo | back to summary |
|---|---|
| pack-priv GTKStockIconInfo() | |
| getIconSize | back to summary |
|---|---|
| public static Dimension getIconSize(int type) Return the size of a particular icon type (logical size)
| |
| getIconSizesMap | back to summary |
|---|---|
| private static Dimension[] getIconSizesMap() | |
| getIconType | back to summary |
|---|---|
| public static int getIconType(String size) Return icon type (GtkIconSize value) given a symbolic name which can occur in a theme file.
| |
| initIconTypeMap | back to summary |
|---|---|
| private static void initIconTypeMap() | |
| setIconSize | back to summary |
|---|---|
| public static void setIconSize(int type, int w, int h) Change icon size in a type to size mapping. This is called by code that parses the gtk-icon-sizes setting
| |