multivalent.node

Class IOutline

public class IOutline extends IVBox implements EventListener

Not used -- done with spans instead, as in Outliner. Open/collapable display of subtree. treats first node (i.e., subtree) specially: as title subsequent nodes (subtrees) can be outline nodes too, for nested outline structure Can override format method to fault in content on demand. LATER: pass along outline level in a signal(?) pass along outline numbering style in a signal(?) draw connecting lines from parent to children (of type OutlineSpan) various builtin icon types, including ability to supply open and closed icon images

Version: $Revision: 1.2 $ $Date: 2002/01/27 02:49:55 $

Constructor Summary
IOutline(String name, Map<String,Object> attr, INode parent)
IOutline(String name, Map<String,Object> attr, INode parent, boolean open)
Method Summary
voidappendChild(Node child)
protected voiddrawIcon(Rectangle docclip, Context cx)
voidevent(AWTEvent e)
if click in arrow, toggles
booleaneventNode(AWTEvent e, Point rel)
booleanisOpen()
voidpaintNode(Rectangle docclip, Context cx)
voidsetIconImages(Image open, Image closed)
voidsetIconType(int choice)
voidsetOpen()
voidsetOpen(boolean o)
voidtoggle()

Constructor Detail

IOutline

public IOutline(String name, Map<String,Object> attr, INode parent)

IOutline

public IOutline(String name, Map<String,Object> attr, INode parent, boolean open)

Method Detail

appendChild

public void appendChild(Node child)

drawIcon

protected void drawIcon(Rectangle docclip, Context cx)

event

public void event(AWTEvent e)
if click in arrow, toggles

eventNode

public boolean eventNode(AWTEvent e, Point rel)

isOpen

public boolean isOpen()

paintNode

public void paintNode(Rectangle docclip, Context cx)

setIconImages

public void setIconImages(Image open, Image closed)

setIconType

public void setIconType(int choice)

setOpen

public void setOpen()

setOpen

public void setOpen(boolean o)

toggle

public void toggle()