com.myjavaworld.gui
Class IndentIcon

java.lang.Object
  extended by com.myjavaworld.gui.IndentIcon
All Implemented Interfaces:
Icon

public class IndentIcon
extends Object
implements Icon

Version:
1.0
Author:
Sai Pullabhotla, psai [at] jMethods [dot] com

Constructor Summary
IndentIcon()
           
 
Method Summary
 int getDepth()
           
 Icon getIcon()
           
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 void setDepth(int depth)
           
 void setIcon(Icon icon)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndentIcon

public IndentIcon()
Method Detail

setIcon

public void setIcon(Icon icon)

getIcon

public Icon getIcon()

getDepth

public int getDepth()
Returns:
Returns the depth.

setDepth

public void setDepth(int depth)
Parameters:
depth - The depth to set.

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon


Copyright © 2000-2012 jMethods, Inc.. All Rights Reserved.