All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.awt.hlist.ListCanvas
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----ncsa.awt.hlist.ListCanvas
- public class ListCanvas
- extends Canvas
- implements ItemSelectable, AdjustmentListener
This class produces an object which displays heirarchical data
-
itemListener
-
-
ListCanvas(Panel, String, int, int)
- Constructor for ListCanvas; used to display the graphical
representation of ListContainers and ListElements
-
addItemListener(ItemListener)
-
-
adjustmentValueChanged(AdjustmentEvent)
-
-
adjustSize()
- readjust the size of the canvas and panel that holds it.
-
createInitialFolder()
- Create the initial folder for this ListCanvas.
-
deleteSelection()
-
-
elements()
-
-
getClosedContainerImage()
- Get the Image representing the closed container
-
getListElementImage()
- Get the Image representing this bookmark
-
getMainContainer()
- Get the main container for this ListCanvas
-
getOpenContainerImage()
- Get the Image representing the open container
-
getSelectedObjects()
- Get the currently selected HotListItem
-
getTitle()
- Get the name of this ListCanvas
-
hilite(ListItem)
-
-
lineAfter(ListItem)
-
-
lineBefore(ListItem)
-
-
paint(Graphics)
- Paint this ListCanvas
-
paintFirstTime()
-
-
processMouseEvent(MouseEvent)
- Handle a mouseDown event within the ListCanvas
-
processMouseMotionEvent(MouseEvent)
- Handle a mouseDrag event within the ListCanvas
-
removeItemListener(ItemListener)
-
-
setCurrentItem(ListItem)
-
-
setListContainerImages(Image, Image)
- Set the Image representing the open and closed states of a
Container.
-
setListElementImage(Image)
- Set the image representing this bookmark
-
setMainContainer(ListContainer)
- Get the main container for this ListCanvas
-
unEverything()
-
itemListener
public ItemListener itemListener
ListCanvas
public ListCanvas(Panel panel,
String title,
int width,
int height)
- Constructor for ListCanvas; used to display the graphical
representation of ListContainers and ListElements
- Parameters:
- panel - the panel holding this canvas
- title - title of the ListCanvas
- width - Width of the canvas
- height - Height of the canvas
paintFirstTime
public void paintFirstTime()
adjustmentValueChanged
public void adjustmentValueChanged(AdjustmentEvent e)
addItemListener
public void addItemListener(ItemListener listener)
removeItemListener
public void removeItemListener(ItemListener listener)
setListElementImage
public void setListElementImage(Image element)
- Set the image representing this bookmark
getListElementImage
public Image getListElementImage()
- Get the Image representing this bookmark
setListContainerImages
public void setListContainerImages(Image open_img,
Image closed_img)
- Set the Image representing the open and closed states of a
Container.
getOpenContainerImage
public Image getOpenContainerImage()
- Get the Image representing the open container
getClosedContainerImage
public Image getClosedContainerImage()
- Get the Image representing the closed container
createInitialFolder
public void createInitialFolder()
- Create the initial folder for this ListCanvas. Currently there is
only one main folder per ListCanvas; this can be changed to handle
multiple main folders in the future.
processMouseEvent
public void processMouseEvent(MouseEvent e)
- Handle a mouseDown event within the ListCanvas
- Parameters:
- event - the event that occurred
- x - x coordinate
- y - y coordinate
- Overrides:
- processMouseEvent in class Component
adjustSize
public void adjustSize()
- readjust the size of the canvas and panel that holds it.
processMouseMotionEvent
public void processMouseMotionEvent(MouseEvent e)
- Handle a mouseDrag event within the ListCanvas
- Parameters:
- event - the event that occurred
- x - x coordinate
- y - y coordinate
- Overrides:
- processMouseMotionEvent in class Component
getSelectedObjects
public Object[] getSelectedObjects()
- Get the currently selected HotListItem
setMainContainer
public void setMainContainer(ListContainer folder)
- Get the main container for this ListCanvas
getMainContainer
public ListContainer getMainContainer()
- Get the main container for this ListCanvas
getTitle
public String getTitle()
- Get the name of this ListCanvas
setCurrentItem
public void setCurrentItem(ListItem item)
paint
public void paint(Graphics g)
- Paint this ListCanvas
- Overrides:
- paint in class Canvas
hilite
public void hilite(ListItem item)
lineAfter
public void lineAfter(ListItem item)
lineBefore
public void lineBefore(ListItem item)
unEverything
public void unEverything()
elements
public Enumeration elements()
deleteSelection
public void deleteSelection()
All Packages Class Hierarchy This Package Previous Next Index