Categorytreebean(), Addnotify(), Getcategoryatlocation(int, int) – MiG InfoCom MiG Calendar JavaBeans User Manual
Page 58: Getpreferredsize(), Gettree(), Removenotify(), Setpreferredsize(dimension), Categorytreebean, Addnotify, Getcategoryatlocation

(continued from last page)
CategoryTreeBean
public CategoryTreeBean()
Methods
addNotify
public void addNotify()
removeNotify
public void removeNotify()
getPreferredSize
public java.awt.Dimension getPreferredSize()
setPreferredSize
public void setPreferredSize(java.awt.Dimension preferredSize)
getTree
public javax.swing.JTree getTree()
Returns the JTree that is the backing component for this tree bean.
Returns:
The JTree that is the backing component for this tree bean.
getCategoryAtLocation
public Category getCategoryAtLocation(int x,
int y)
A hit test that returns the Category for a point.
Parameters:
x
- The x value that is relative to the contained tree.
y
- The y value that is relative to the contained tree.
Returns:
The Category or
null
if no hit.
Page 58 of 196
com.miginfocom.beans.CategoryTreeBean