org.devaki.nextobjects.ui.main
Class CloseTabIcon

java.lang.Object
  extended byorg.devaki.nextobjects.ui.main.CloseTabIcon
All Implemented Interfaces:
javax.swing.Icon

class CloseTabIcon
extends java.lang.Object
implements javax.swing.Icon

The class which generates the 'X' icon for the tabs. The constructor accepts an icon which is extra to the 'X' icon, so you can have tabs like in JBuilder. This value is null if no extra icon is required.


Constructor Summary
CloseTabIcon(javax.swing.Icon fileIcon)
          CloseTabIcon
 
Method Summary
 java.awt.Rectangle getBounds()
          get the boundaries
 int getIconHeight()
          get icon height
 int getIconWidth()
          get the icon width
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Paint icon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseTabIcon

public CloseTabIcon(javax.swing.Icon fileIcon)
CloseTabIcon

Parameters:
fileIcon - the file icon
Method Detail

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Paint icon

Specified by:
paintIcon in interface javax.swing.Icon
Parameters:
c - component
g - graphics g
x - x
y - y

getIconWidth

public int getIconWidth()
get the icon width

Specified by:
getIconWidth in interface javax.swing.Icon
Returns:
the width

getIconHeight

public int getIconHeight()
get icon height

Specified by:
getIconHeight in interface javax.swing.Icon
Returns:
height

getBounds

public java.awt.Rectangle getBounds()
get the boundaries

Returns:
bounds


Copyright © 2002-2004 devaki.org. All Rights Reserved.