Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.memoire.bu
Class BuIcon  view BuIcon download BuIcon.java

java.lang.Object
  extended byjavax.swing.ImageIcon
      extended bycom.memoire.bu.BuRobustIcon
          extended bycom.memoire.bu.BuIcon
All Implemented Interfaces:
javax.accessibility.Accessible, javax.swing.Icon, java.io.Serializable

public class BuIcon
extends BuRobustIcon

An ImageIcon but with always some image.


Nested Class Summary
 
Nested classes inherited from class javax.swing.ImageIcon
javax.swing.ImageIcon.AccessibleImageIcon
 
Field Summary
static java.awt.Image defaut_
           
private  java.awt.Point hotspot_
           
 
Fields inherited from class javax.swing.ImageIcon
component, tracker
 
Constructor Summary
BuIcon()
           
BuIcon(byte[] _bytes)
           
BuIcon(java.awt.Image _image)
           
BuIcon(java.lang.String _url)
           
BuIcon(java.net.URL _url)
           
 
Method Summary
private static java.awt.Image creeDefaut()
           
 java.awt.Point getHotSpot()
           
 java.awt.Image getImage()
          Returns the backing Image for this ImageIcon.
 boolean isDefault()
           
 void paintIcon(java.awt.Component _c, java.awt.Graphics _g, int _x, int _y)
          Calls g.drawImage() on the backing Image using the set observer of this ImageIcon.
 void setHotSpot(java.awt.Point _hotspot)
           
 void setImage(java.awt.Image _image)
          Explicitly sets the backing Image for this ImageIcon.
private  void super_setImage(java.awt.Image _image)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, getIconHeight, getIconWidth, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImageObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

defaut_

public static final java.awt.Image defaut_

hotspot_

private java.awt.Point hotspot_
Constructor Detail

BuIcon

public BuIcon(java.lang.String _url)

BuIcon

public BuIcon(java.net.URL _url)

BuIcon

public BuIcon(byte[] _bytes)

BuIcon

public BuIcon(java.awt.Image _image)

BuIcon

public BuIcon()
Method Detail

creeDefaut

private static final java.awt.Image creeDefaut()

isDefault

public boolean isDefault()

getImage

public java.awt.Image getImage()
Description copied from class: javax.swing.ImageIcon
Returns the backing Image for this ImageIcon. Might be set to null in which case no image is shown.


setImage

public void setImage(java.awt.Image _image)
Description copied from class: javax.swing.ImageIcon
Explicitly sets the backing Image for this ImageIcon. Will call loadImage() to make sure that the Image is completely loaded before returning.


super_setImage

private final void super_setImage(java.awt.Image _image)

getHotSpot

public java.awt.Point getHotSpot()

setHotSpot

public void setHotSpot(java.awt.Point _hotspot)

paintIcon

public void paintIcon(java.awt.Component _c,
                      java.awt.Graphics _g,
                      int _x,
                      int _y)
Description copied from class: javax.swing.ImageIcon
Calls g.drawImage() on the backing Image using the set observer of this ImageIcon. If the set observer is null, the given Component is used as observer.

Specified by:
paintIcon in interface javax.swing.Icon
Overrides:
paintIcon in class BuRobustIcon

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).