wood.keith.opentools.otnode
Class OTStructure
- public class OTStructure
- extends TextStructure
- This class provides the OpenTools-specific structure component.
- Version:
- 1.0 12 September 2001
- 1.1 19 February 2002
- Author:
- Keith Wood (kbwood@iprimus.com.au)
getPopupActionGroup
public ActionGroup getPopupActionGroup()
- Supply an action group for a popup menu. Used in JBuilder 8+ only!!
- Returns:
- the popup action group
nodeAction
private void nodeAction(DefaultMutableTreeNode node,
boolean focus)
- Highlight the line associated with the selected node and optionally move to it.
- Parameters:
node - the selected node
focus - true to move the focus to the line, false to just highlight
getStructureIcon
public Icon getStructureIcon(Object value)
- Gets appropriate icon for a particular tree node. This routine is called when the icon needs to be rendered for a particular tree node.
- Parameters:
value - the node needing an icon
- Returns:
- the Icon appropriate for this node
getStructureForegroundColor
public Color getStructureForegroundColor(Object value,
Color baseFGColor,
Color baseBGColor)
- Differentiate between standard and non-standard categories.
- Parameters:
value - the current node
baseFGColor - the base foreground colour
baseBGColor - the base background color
- Returns:
- the foreground colour for this node
updateStructure
public void updateStructure(Document doc)
- Update the Structure Pane when file content changed. This routine is called when the .opentools file content has been changed and the user defined parse delay has expired. This version that just finds all the categories and presents them sorted to the user.
- Parameters:
doc - the document containing the content