Class IconResizer
- java.lang.Object
-
- javax.swing.ImageIcon
-
- de.desy.mst.libs.framework.mstapp.util.applicationresizemanager.resizers.IconResizer
-
- All Implemented Interfaces:
java.io.Serializable
,javax.accessibility.Accessible
,javax.swing.Icon
public class IconResizer extends javax.swing.ImageIcon
Draws the icon associated with a label with the correct scale.- Version:
- 3.0.0
- Author:
- R.Bacher
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IconResizer(ApplicationResizeManager applicationResizeManager, java.awt.Component referenceComponent)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
paintIcon(java.awt.Component component, java.awt.Graphics graphics, int x, int y)
Paints the resized icon attached to a JLabel
-
-
-
Constructor Detail
-
IconResizer
public IconResizer(ApplicationResizeManager applicationResizeManager, java.awt.Component referenceComponent)
Constructor- Parameters:
referenceComponent
- reference component to be resized
-
-