Top Inners Fields Constructors Methods
com.sun.java.swing.plaf.gtk

pack-priv Class GTKIconFactory

extends Object
Class Inheritance
Imports
javax.swing.plaf.synth.SynthIcon, javax.swing.plaf.synth.*, java.util.*, java.awt.*, java.awt.image.BufferedImage, java.lang.reflect.*, javax.swing.*, javax.swing.plaf.*, sun.swing.plaf.synth.*, com.sun.java.swing.plaf.gtk.GTKConstants.ArrowType, .GTKConstants.ExpanderStyle, .GTKConstants.Orientation, .GTKConstants.ShadowType

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private static final String
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
private static final String
private static Map<String, GTKIconFactory.DelegatingIcon>
private static final String
private static final String
private static final String
private static final String
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static Icon
public static SynthIcon
public static SynthIcon
public static Icon
private static GTKIconFactory.DelegatingIcon
getIcon(String methodName)

public static SynthIcon
public static SynthIcon
public static SynthIcon
public static SynthIcon
public static SynthIcon
public static SynthIcon
pack-priv static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ASCENDING_SORT_ICONback to summary
private static final String ASCENDING_SORT_ICON
CHECK_BOX_ICONback to summary
private static final String CHECK_BOX_ICON
CHECK_BOX_MENU_ITEM_CHECK_ICONback to summary
private static final String CHECK_BOX_MENU_ITEM_CHECK_ICON
CHECK_ICON_EXTRA_INSETback to summary
pack-priv static final int CHECK_ICON_EXTRA_INSET
DEFAULT_ICON_SIZEback to summary
pack-priv static final int DEFAULT_ICON_SIZE
DEFAULT_ICON_SPACINGback to summary
pack-priv static final int DEFAULT_ICON_SPACING
DEFAULT_TOGGLE_MENU_ITEM_SIZEback to summary
pack-priv static final int DEFAULT_TOGGLE_MENU_ITEM_SIZE
DESCENDING_SORT_ICONback to summary
private static final String DESCENDING_SORT_ICON
iconsPoolback to summary
private static Map<String, GTKIconFactory.DelegatingIcon> iconsPool
RADIO_BUTTON_ICONback to summary
private static final String RADIO_BUTTON_ICON
RADIO_BUTTON_MENU_ITEM_CHECK_ICONback to summary
private static final String RADIO_BUTTON_MENU_ITEM_CHECK_ICON
TOOL_BAR_HANDLE_ICONback to summary
private static final String TOOL_BAR_HANDLE_ICON
TREE_COLLAPSED_ICONback to summary
private static final String TREE_COLLAPSED_ICON
TREE_EXPANDED_ICONback to summary
private static final String TREE_EXPANDED_ICON

Constructor Detail

GTKIconFactoryback to summary
pack-priv GTKIconFactory()

Method Detail

getAscendingSortIconback to summary
public static Icon getAscendingSortIcon()
getCheckBoxIconback to summary
public static SynthIcon getCheckBoxIcon()
getCheckBoxMenuItemCheckIconback to summary
public static SynthIcon getCheckBoxMenuItemCheckIcon()
getDescendingSortIconback to summary
public static Icon getDescendingSortIcon()
getIconback to summary
private static GTKIconFactory.DelegatingIcon getIcon(String methodName)
getMenuArrowIconback to summary
public static SynthIcon getMenuArrowIcon()
getRadioButtonIconback to summary
public static SynthIcon getRadioButtonIcon()
getRadioButtonMenuItemCheckIconback to summary
public static SynthIcon getRadioButtonMenuItemCheckIcon()
getToolBarHandleIconback to summary
public static SynthIcon getToolBarHandleIcon()
getTreeCollapsedIconback to summary
public static SynthIcon getTreeCollapsedIcon()
getTreeExpandedIconback to summary
public static SynthIcon getTreeExpandedIcon()
resetIconsback to summary
pack-priv static void resetIcons()
com.sun.java.swing.plaf.gtk back to summary

private Class GTKIconFactory.DelegatingIcon

extends Object
implements UIResource, SynthIcon
Class Inheritance
All Implemented Interfaces
javax.swing.plaf.synth.SynthIcon, javax.swing.Icon, javax.swing.plaf.UIResource
Known Direct Subclasses
com.sun.java.swing.plaf.gtk.GTKIconFactory.SynthExpanderIcon, com.sun.java.swing.plaf.gtk.GTKIconFactory.ToolBarHandleIcon, com.sun.java.swing.plaf.gtk.GTKIconFactory.MenuArrowIcon

Field Summary

Modifier and TypeField and Description
pack-priv int
private Object
private static final Class<?>[]

Constructor Summary

AccessConstructor and Description
pack-priv
DelegatingIcon(String methodName)

Method Summary

Modifier and TypeMethod and Description
pack-priv int
public int
getIconHeight(SynthContext
SynthContext requesting the Icon, may be null.
context
)

Implements javax.swing.plaf.synth.SynthIcon.getIconHeight.

Returns the icon's height for the given synth context.
public int
getIconWidth(SynthContext
SynthContext requesting the Icon, may be null.
context
)

Implements javax.swing.plaf.synth.SynthIcon.getIconWidth.

Returns the icon's width for the given synth context.
protected Method
protected Class<?>[]
public void
paintIcon(SynthContext
identifies hosting region, may be null.
context
,
Graphics
the graphics context
g
,
int
the x location to paint to
x
,
int
the y location to paint to
y
,
int
the width of the region to paint to, may be 0
w
,
int
the height of the region to paint to, may be 0
h
)

Implements javax.swing.plaf.synth.SynthIcon.paintIcon.

Paints the icon at the specified location for the given synth context.
pack-priv void
private Method
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

iconDimensionback to summary
pack-priv int iconDimension
methodback to summary
private Object method
PARAM_TYPESback to summary
private static final Class<?>[] PARAM_TYPES

Constructor Detail

DelegatingIconback to summary
pack-priv DelegatingIcon(String methodName)

Method Detail

getIconDimensionback to summary
pack-priv int getIconDimension(SynthContext context)
getIconHeightback to summary
public int getIconHeight(SynthContext context)

Implements javax.swing.plaf.synth.SynthIcon.getIconHeight.

Doc from javax.swing.plaf.synth.SynthIcon.getIconHeight.

Returns the icon's height for the given synth context.

Parameters
context:SynthContext

SynthContext requesting the Icon, may be null.

Returns:int

an int specifying the height of the icon.

getIconWidthback to summary
public int getIconWidth(SynthContext context)

Implements javax.swing.plaf.synth.SynthIcon.getIconWidth.

Doc from javax.swing.plaf.synth.SynthIcon.getIconWidth.

Returns the icon's width for the given synth context.

Parameters
context:SynthContext

SynthContext requesting the Icon, may be null.

Returns:int

an int specifying the width of the icon.

getMethodback to summary
protected Method getMethod()
getMethodParamTypesback to summary
protected Class<?>[] getMethodParamTypes()
paintIconback to summary
public void paintIcon(SynthContext context, Graphics g, int x, int y, int w, int h)

Implements javax.swing.plaf.synth.SynthIcon.paintIcon.

Doc from javax.swing.plaf.synth.SynthIcon.paintIcon.

Paints the icon at the specified location for the given synth context.

Parameters
context:SynthContext

identifies hosting region, may be null.

g:Graphics

the graphics context

x:int

the x location to paint to

y:int

the y location to paint to

w:int

the width of the region to paint to, may be 0

h:int

the height of the region to paint to, may be 0

resetIconDimensionsback to summary
pack-priv void resetIconDimensions()
resolveMethodback to summary
private Method resolveMethod(String name)
com.sun.java.swing.plaf.gtk back to summary

private Class GTKIconFactory.SynthExpanderIcon

extends DelegatingIcon
Class Inheritance

Field Summary

Inherited from com.sun.java.swing.plaf.gtk.GTKIconFactory.DelegatingIcon:
iconDimension

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv int
public void
paintIcon(SynthContext
identifies hosting region, may be null.
context
,
Graphics
the graphics context
g
,
int
the x location to paint to
x
,
int
the y location to paint to
y
,
int
the width of the region to paint to, may be 0
w
,
int
the height of the region to paint to, may be 0
h
)

Overrides com.sun.java.swing.plaf.gtk.GTKIconFactory.DelegatingIcon.paintIcon.

Implements javax.swing.plaf.synth.SynthIcon.paintIcon.

Paints the icon at the specified location for the given synth context.
private void
Inherited from com.sun.java.swing.plaf.gtk.GTKIconFactory.DelegatingIcon:
getIconHeightgetIconWidthgetMethodgetMethodParamTypesresetIconDimensions

Constructor Detail

SynthExpanderIconback to summary
pack-priv SynthExpanderIcon(String method)

Method Detail

getIconDimensionback to summary
pack-priv int getIconDimension(SynthContext context)

Overrides com.sun.java.swing.plaf.gtk.GTKIconFactory.DelegatingIcon.getIconDimension.

paintIconback to summary
public void paintIcon(SynthContext context, Graphics g, int x, int y, int w, int h)

Overrides com.sun.java.swing.plaf.gtk.GTKIconFactory.DelegatingIcon.paintIcon.

Implements javax.swing.plaf.synth.SynthIcon.paintIcon.

Doc from javax.swing.plaf.synth.SynthIcon.paintIcon.

Paints the icon at the specified location for the given synth context.

Parameters
context:SynthContext

identifies hosting region, may be null.

g:Graphics

the graphics context

x:int

the x location to paint to

y:int

the y location to paint to

w:int

the width of the region to paint to, may be 0

h:int

the height of the region to paint to, may be 0

updateSizeIfNecessaryback to summary
private void updateSizeIfNecessary(SynthContext context)
com.sun.java.swing.plaf.gtk back to summary

private Class GTKIconFactory.ToolBarHandleIcon

extends DelegatingIcon
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final Class<?>[]
private SynthStyle
Inherited from com.sun.java.swing.plaf.gtk.GTKIconFactory.DelegatingIcon:
iconDimension

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
getIconHeight(SynthContext
SynthContext requesting the Icon, may be null.
context
)

Overrides com.sun.java.swing.plaf.gtk.GTKIconFactory.DelegatingIcon.getIconHeight.

Implements javax.swing.plaf.synth.SynthIcon.getIconHeight.

Returns the icon's height for the given synth context.
public int
getIconWidth(SynthContext
SynthContext requesting the Icon, may be null.
context
)

Overrides com.sun.java.swing.plaf.gtk.GTKIconFactory.DelegatingIcon.getIconWidth.

Implements javax.swing.plaf.synth.SynthIcon.getIconWidth.

Returns the icon's width for the given synth context.
protected Class<?>[]
public void
paintIcon(SynthContext
identifies hosting region, may be null.
context
,
Graphics
the graphics context
g
,
int
the x location to paint to
x
,
int
the y location to paint to
y
,
int
the width of the region to paint to, may be 0
w
,
int
the height of the region to paint to, may be 0
h
)

Overrides com.sun.java.swing.plaf.gtk.GTKIconFactory.DelegatingIcon.paintIcon.

Implements javax.swing.plaf.synth.SynthIcon.paintIcon.

Paints the icon at the specified location for the given synth context.
Inherited from com.sun.java.swing.plaf.gtk.GTKIconFactory.DelegatingIcon:
getIconDimensiongetMethodresetIconDimensions

Field Detail

PARAM_TYPESback to summary
private static final Class<?>[] PARAM_TYPES

Hides com.sun.java.swing.plaf.gtk.GTKIconFactory.DelegatingIcon.PARAM_TYPES.

styleback to summary
private SynthStyle style

Constructor Detail

ToolBarHandleIconback to summary
public ToolBarHandleIcon()

Method Detail

getIconHeightback to summary
public int getIconHeight(SynthContext context)

Overrides com.sun.java.swing.plaf.gtk.GTKIconFactory.DelegatingIcon.getIconHeight.

Implements javax.swing.plaf.synth.SynthIcon.getIconHeight.

Doc from javax.swing.plaf.synth.SynthIcon.getIconHeight.

Returns the icon's height for the given synth context.

Parameters
context:SynthContext

SynthContext requesting the Icon, may be null.

Returns:int

an int specifying the height of the icon.

getIconWidthback to summary
public int getIconWidth(SynthContext context)

Overrides com.sun.java.swing.plaf.gtk.GTKIconFactory.DelegatingIcon.getIconWidth.

Implements javax.swing.plaf.synth.SynthIcon.getIconWidth.

Doc from javax.swing.plaf.synth.SynthIcon.getIconWidth.

Returns the icon's width for the given synth context.

Parameters
context:SynthContext

SynthContext requesting the Icon, may be null.

Returns:int

an int specifying the width of the icon.

getMethodParamTypesback to summary
protected Class<?>[] getMethodParamTypes()

Overrides com.sun.java.swing.plaf.gtk.GTKIconFactory.DelegatingIcon.getMethodParamTypes.

paintIconback to summary
public void paintIcon(SynthContext context, Graphics g, int x, int y, int w, int h)

Overrides com.sun.java.swing.plaf.gtk.GTKIconFactory.DelegatingIcon.paintIcon.

Implements javax.swing.plaf.synth.SynthIcon.paintIcon.

Doc from javax.swing.plaf.synth.SynthIcon.paintIcon.

Paints the icon at the specified location for the given synth context.

Parameters
context:SynthContext

identifies hosting region, may be null.

g:Graphics

the graphics context

x:int

the x location to paint to

y:int

the y location to paint to

w:int

the width of the region to paint to, may be 0

h:int

the height of the region to paint to, may be 0