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

Quick Search    Search Deep

iiuf.swing
Class LocatedIcon  view LocatedIcon download LocatedIcon.java

java.lang.Object
  extended byiiuf.swing.LocatedIcon
All Implemented Interfaces:
javax.swing.Icon

public class LocatedIcon
extends java.lang.Object
implements javax.swing.Icon

Icon wrapper that stores last icon location during paint. (c) 2001, DIUF

Version:
$Name: $ $Revision: 1.1 $

Field Summary
private  javax.swing.Icon icon
           
private  java.awt.Point location
           
 
Constructor Summary
LocatedIcon(javax.swing.Icon icon)
           
 
Method Summary
 javax.swing.Icon getIcon()
           
 int getIconHeight()
          Returns the height of the icon.
 int getIconWidth()
          Returns the width of the icon.
 java.awt.Point getLocation()
           
 int getX()
           
 int getY()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Draws the icon at the location (x, y) on the specified graphics device.
 void setIcon(javax.swing.Icon icon_)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

location

private java.awt.Point location

icon

private javax.swing.Icon icon
Constructor Detail

LocatedIcon

public LocatedIcon(javax.swing.Icon icon)
Method Detail

getIconWidth

public int getIconWidth()
Description copied from interface: javax.swing.Icon
Returns the width of the icon.

Specified by:
getIconWidth in interface javax.swing.Icon

getIconHeight

public int getIconHeight()
Description copied from interface: javax.swing.Icon
Returns the height of the icon.

Specified by:
getIconHeight in interface javax.swing.Icon

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Description copied from interface: javax.swing.Icon
Draws the icon at the location (x, y) on the specified graphics device.

Specified by:
paintIcon in interface javax.swing.Icon

getLocation

public java.awt.Point getLocation()

getX

public int getX()

getY

public int getY()

getIcon

public javax.swing.Icon getIcon()

setIcon

public void setIcon(javax.swing.Icon icon_)