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
ConstructorDescriptionIconAdapter
(IconSource source, Icon icon, int width, int height, boolean forceSize, int state) -
Method Summary
Modifier and TypeMethodDescriptionstatic IconAdapter
create
(IconSource source, Dimension size) static IconAdapter
create
(IconSource source, Dimension size, boolean forceSize) static IconAdapter
create
(IconSource source, Dimension size, boolean forceSize, int state) getIcon()
int
int
void
void
toState
(int state) Methods inherited from class java.awt.Dimension
equals, getHeight, getSize, getWidth, hashCode, setSize, setSize, setSize, toString
Methods 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:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-
getIconSource
-
getIcon
-
toState
-