JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util.treetable
Class TreeTableSupport.DefaultIcon

java.lang.Object
  |
  +--com.klg.jclass.util.treetable.TreeTableSupport.DefaultIcon
All Implemented Interfaces:
Icon
Enclosing class:
TreeTableSupport

protected class TreeTableSupport.DefaultIcon
extends Object
implements Icon

Icon to use if plaf fails to provide one


Field Summary
protected  boolean collapsed
           
protected  int halfsize
           
protected  int size
           
 
Constructor Summary
TreeTableSupport.DefaultIcon(boolean collapsed)
          Constructor.
 
Method Summary
 int getIconHeight()
          Get the icon height
 int getIconWidth()
          Get the icon width
 void paintIcon(Component c, Graphics gc, int x, int y)
          Draws the folder state control (expand/collapse) icon centered on the specified point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

protected final int size
See Also:
Constant Field Values

halfsize

protected final int halfsize
See Also:
Constant Field Values

collapsed

protected boolean collapsed
Constructor Detail

TreeTableSupport.DefaultIcon

public TreeTableSupport.DefaultIcon(boolean collapsed)
Constructor. Sets whether icon will show collapsed or not intially

Parameters:
collapsed - The intial value of collapsed.
Method Detail

getIconHeight

public int getIconHeight()
Get the icon height

Specified by:
getIconHeight in interface Icon
Returns:
The icon height

getIconWidth

public int getIconWidth()
Get the icon width

Specified by:
getIconWidth in interface Icon
Returns:
The icon width

paintIcon

public void paintIcon(Component c,
                      Graphics gc,
                      int x,
                      int y)
Draws the folder state control (expand/collapse) icon centered on the specified point.

Specified by:
paintIcon in interface Icon
Parameters:
c - The component from which information can be gather for rendering. Not used.
gc - The graphics context to do the drawing
x - The x position to draw
y - The y position to draw

Copyright © 2004 Quest Software Inc..
All rights reserved.