Package com.nomagic.magicdraw.ui
Class ImageIconProxy
java.lang.Object
javax.swing.ImageIcon
com.nomagic.magicdraw.ui.ImageIconProxy
- All Implemented Interfaces:
Serializable
,Accessible
,Icon
Deprecated.
This class is used only for reloading icons after image path is changed.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImageIconProxy
(IconControlerInterface iconControler) Deprecated.The proxy constructor with given controllerImageIconProxy
(Class clazz, String name) Deprecated.Constructs a new ImageIcon instance.ImageIconProxy
(Class clazz, String name, String pathToIcons) Deprecated.Constructs a new ImageIcon instance. -
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.Returns the icon's height.int
Deprecated.Returns the icon's width.getImage()
Deprecated.Returns image for the icon.void
Deprecated.Draw the icon at the specified location.Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImage, setImageObserver, toString
-
Field Details
-
mIconControler
Deprecated.
-
-
Constructor Details
-
ImageIconProxy
Deprecated.Constructs a new ImageIcon instance.- Parameters:
clazz
- the class to identify resources.name
- the name of the icon in the map.
-
ImageIconProxy
Deprecated.Constructs a new ImageIcon instance. For icons directory uses given path- Parameters:
clazz
- the class to indentify resources.name
- the name of the icon in the map.pathToIcons
- path to icons directory, this directory must contain subdirs icons32 and icons24. Can be empty string In this case it means same dir as clazz.
-
ImageIconProxy
Deprecated.The proxy constructor with given controller- Parameters:
iconControler
-
-
-
Method Details
-
paintIcon
Deprecated.Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color. -
getIconWidth
public int getIconWidth()Deprecated.Returns the icon's width.- Specified by:
getIconWidth
in interfaceIcon
- Overrides:
getIconWidth
in classImageIcon
- Returns:
- an int specifying the fixed width of the icon.
-
getImage
Deprecated.Returns image for the icon. -
getIconHeight
public int getIconHeight()Deprecated.Returns the icon's height.- Specified by:
getIconHeight
in interfaceIcon
- Overrides:
getIconHeight
in classImageIcon
- Returns:
- an int specifying the fixed height of the icon.
-
IconsFactory