org.softsmithy.lib.swing.icon
Class XImageIcon

java.lang.Object
  extended by javax.swing.ImageIcon
      extended by org.softsmithy.lib.swing.icon.XImageIcon
All Implemented Interfaces:
Serializable, Accessible, Icon, XIcon

public class XImageIcon
extends ImageIcon
implements XIcon

Author:
puce
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.ImageIcon
ImageIcon.AccessibleImageIcon
 
Field Summary
 
Fields inherited from class javax.swing.ImageIcon
component, tracker
 
Constructor Summary
XImageIcon()
          Creates a new instance of XImageIcon
XImageIcon(byte[] imageData)
           
XImageIcon(byte[] imageData, String description)
           
XImageIcon(Image image)
           
XImageIcon(Image image, String description)
           
XImageIcon(String filename)
           
XImageIcon(String filename, String description)
           
XImageIcon(URL location)
           
XImageIcon(URL location, String description)
           
 
Method Summary
 XIcon getScaledInstance(int newWidth, int newHeight)
           
 ScalingAlgorithm getScalingAlgorithm()
          Getter for property scalingAlgorithm.
 void setScalingAlgorithm(ScalingAlgorithm scalingAlgorithm)
          Setter for property scalingAlgorithm.
 
Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageObserver, loadImage, paintIcon, setDescription, setImage, setImageObserver, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.swing.Icon
getIconHeight, getIconWidth, paintIcon
 

Constructor Detail

XImageIcon

public XImageIcon()
Creates a new instance of XImageIcon


XImageIcon

public XImageIcon(byte[] imageData)

XImageIcon

public XImageIcon(byte[] imageData,
                  String description)

XImageIcon

public XImageIcon(Image image)

XImageIcon

public XImageIcon(Image image,
                  String description)

XImageIcon

public XImageIcon(String filename)

XImageIcon

public XImageIcon(String filename,
                  String description)

XImageIcon

public XImageIcon(URL location)

XImageIcon

public XImageIcon(URL location,
                  String description)
Method Detail

getScaledInstance

public XIcon getScaledInstance(int newWidth,
                               int newHeight)
Specified by:
getScaledInstance in interface XIcon

getScalingAlgorithm

public ScalingAlgorithm getScalingAlgorithm()
Getter for property scalingAlgorithm.

Returns:
Value of property scalingAlgorithm.

setScalingAlgorithm

public void setScalingAlgorithm(ScalingAlgorithm scalingAlgorithm)
Setter for property scalingAlgorithm.

Parameters:
scalingAlgorithm - New value of property scalingAlgorithm.


Copyright © 2002-2011 SoftSmithy. All Rights Reserved.