java.lang.Object
java.awt.geom.Dimension2D
java.awt.Dimension
de.grogra.icon.IconAdapter
- All Implemented Interfaces:
Serializable,Cloneable,Icon
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionIconAdapter(IconSource source, Icon icon, int width, int height, boolean forceSize, int state) -
Method Summary
Modifier and TypeMethodDescriptionstatic IconAdaptercreate(IconSource source, Dimension size) static IconAdaptercreate(IconSource source, Dimension size, boolean forceSize) static IconAdaptercreate(IconSource source, Dimension size, boolean forceSize, int state) getIcon()intintvoidvoidtoState(int state) Methods inherited from class java.awt.Dimension
equals, getHeight, getSize, getWidth, hashCode, setSize, setSize, setSize, toStringMethods inherited from class java.awt.geom.Dimension2D
clone, setSize
-
Constructor Details
-
IconAdapter
public IconAdapter(IconSource source, Icon icon, int width, int height, boolean forceSize, int state)
-
-
Method Details
-
create
-
create
-
create
-
set
-
paintIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon
-
getIconSource
-
getIcon
-
toState
-