edu.isi.powerloom.gui.components
Class PowerloomTrees

java.lang.Object
  |
  +--edu.isi.powerloom.gui.components.PowerloomTrees
All Implemented Interfaces:
PLEditListener

public class PowerloomTrees
extends java.lang.Object
implements PLEditListener

PowerloomTrees is responsible for setting up views in the BrowserFrame and managing selection events and updating. There are several classes of methods, including:

Since:
3/3/2002 12:51:13 PM
Author:
Eric Melz

Field Summary
static int SHOW_DIRECT_INSTANCES
           
static int SHOW_DIRECT_RELATIONS
           
static int SHOW_INHERITED_INSTANCES
           
static int SHOW_INHERITED_RELATIONS
           
 
Constructor Summary
PowerloomTrees(BrowserPanel4 parent)
          Insert the method's description here.
 
Method Summary
 edu.isi.powerloom.gui.components.PowerloomTrees.SelectionRecord getAllSelections()
          Return a tuple of selected objects, which includes Module, Concept, Relation, Instance, Proposition, and Rule
 int getInstanceFilter()
           
 PLModule getMostRecentlyTouchedModule()
           
 PLObject getMostRecentlyTouchedObject()
           
 PLModule getPropositionViewModule()
           
 int getRelationFilter()
           
 PLModule getRuleViewModule()
           
 PLConcept getSelectedConcept()
           
 PLConcept[] getSelectedConcepts()
           
 PLInstance getSelectedInstance()
           
 PLModule getSelectedModule()
           
 PLProposition getSelectedProposition()
           
 PLRelation getSelectedRelation()
           
 PLProposition getSelectedRule()
           
 edu.isi.powerloom.gui.components.PowerloomTrees.SelectionRecord getSelectionAtCursor()
           
 boolean isAtBeginningOfHistory()
           
 boolean isAtEndOfHistory()
           
 javax.swing.JTree makeConceptTree(PLSurrogateContainer root)
           
 javax.swing.JList makeInstanceList(PLSurrogateContainer instances)
           
 void makeObjectVisible(PLModule module, PLObject object, boolean selectPaths)
          Make concept, relation, or instance visible in Browser...
 javax.swing.JList makePropositionList(PLSurrogateContainer propositions)
           
 javax.swing.JTree makeRelationTree(PLSurrogateContainer root)
           
 javax.swing.JList makeRuleList(PLSurrogateContainer propositions)
           
 void navigateToNextSelection()
           
 void navigateToPreviousSelection()
           
 void performEdit(PLEditEvent e)
          Insert the method's description here.
 void recordCurrentSelection()
           
 void recordCurrentSelection(PLConcept concept)
           
 void recordCurrentSelection(PLInstance instance)
           
 void recordCurrentSelection(PLModule module)
           
 void recordCurrentSelection(PLProposition proposition, boolean isRule)
           
 void recordCurrentSelection(PLRelation relation)
           
 void refreshConceptTree(PLConcept editedConcept)
          The refresh methods are called when some update to the kb has been performed which can affect the contents of a given navigation pane.
 void refreshEverything()
          Wipes out all caches, and refreshes all trees and selections
 void refreshInstanceList()
           
 void refreshModuleTree()
           
 void refreshPropositionList()
           
 void refreshRelationTree()
           
 void refreshRuleList()
           
 void setAllSelections(edu.isi.powerloom.gui.components.PowerloomTrees.SelectionRecord selections)
           
 void setInstanceFilter(int instanceFilter)
           
 void setRelationFilter(int relationFilter)
           
 void updateMostRecentlyTouchedObject(PLObject object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHOW_INHERITED_RELATIONS

public static final int SHOW_INHERITED_RELATIONS
See Also:
Constant Field Values

SHOW_DIRECT_RELATIONS

public static final int SHOW_DIRECT_RELATIONS
See Also:
Constant Field Values

SHOW_INHERITED_INSTANCES

public static final int SHOW_INHERITED_INSTANCES
See Also:
Constant Field Values

SHOW_DIRECT_INSTANCES

public static final int SHOW_DIRECT_INSTANCES
See Also:
Constant Field Values
Constructor Detail

PowerloomTrees

public PowerloomTrees(BrowserPanel4 parent)
               throws AppException
Insert the method's description here. Creation date: (3/3/2002 12:53:12 PM)

Throws:
AppException - The exception description.
Method Detail

getRelationFilter

public int getRelationFilter()

getInstanceFilter

public int getInstanceFilter()

getSelectedConcept

public PLConcept getSelectedConcept()

getSelectedConcepts

public PLConcept[] getSelectedConcepts()

getSelectedInstance

public PLInstance getSelectedInstance()

getPropositionViewModule

public PLModule getPropositionViewModule()

getRuleViewModule

public PLModule getRuleViewModule()

getSelectedModule

public PLModule getSelectedModule()

getSelectedProposition

public PLProposition getSelectedProposition()

getSelectedRelation

public PLRelation getSelectedRelation()

getSelectedRule

public PLProposition getSelectedRule()

makeConceptTree

public javax.swing.JTree makeConceptTree(PLSurrogateContainer root)
                                  throws java.lang.Exception
java.lang.Exception

makeInstanceList

public javax.swing.JList makeInstanceList(PLSurrogateContainer instances)
                                   throws java.lang.Exception
java.lang.Exception

makePropositionList

public javax.swing.JList makePropositionList(PLSurrogateContainer propositions)
                                      throws java.lang.Exception
java.lang.Exception

makeRelationTree

public javax.swing.JTree makeRelationTree(PLSurrogateContainer root)
                                   throws java.lang.Exception
java.lang.Exception

makeRuleList

public javax.swing.JList makeRuleList(PLSurrogateContainer propositions)
                               throws java.lang.Exception
java.lang.Exception

performEdit

public void performEdit(PLEditEvent e)
Insert the method's description here. Creation date: (4/12/2002 9:52:05 PM)

Specified by:
performEdit in interface PLEditListener
Parameters:
e - redesign.gui.components.PLEditEvent

makeObjectVisible

public void makeObjectVisible(PLModule module,
                              PLObject object,
                              boolean selectPaths)
Make concept, relation, or instance visible in Browser... This is used if we want to select *only* the given object, all other selections are wiped out.


isAtBeginningOfHistory

public boolean isAtBeginningOfHistory()

isAtEndOfHistory

public boolean isAtEndOfHistory()

recordCurrentSelection

public void recordCurrentSelection()

recordCurrentSelection

public void recordCurrentSelection(PLModule module)

recordCurrentSelection

public void recordCurrentSelection(PLConcept concept)

recordCurrentSelection

public void recordCurrentSelection(PLRelation relation)

recordCurrentSelection

public void recordCurrentSelection(PLInstance instance)

recordCurrentSelection

public void recordCurrentSelection(PLProposition proposition,
                                   boolean isRule)

getSelectionAtCursor

public edu.isi.powerloom.gui.components.PowerloomTrees.SelectionRecord getSelectionAtCursor()

navigateToPreviousSelection

public void navigateToPreviousSelection()

navigateToNextSelection

public void navigateToNextSelection()

getAllSelections

public edu.isi.powerloom.gui.components.PowerloomTrees.SelectionRecord getAllSelections()
Return a tuple of selected objects, which includes Module, Concept, Relation, Instance, Proposition, and Rule


refreshEverything

public void refreshEverything()
Wipes out all caches, and refreshes all trees and selections


setAllSelections

public void setAllSelections(edu.isi.powerloom.gui.components.PowerloomTrees.SelectionRecord selections)

refreshConceptTree

public void refreshConceptTree(PLConcept editedConcept)
                        throws java.lang.Exception
The refresh methods are called when some update to the kb has been performed which can affect the contents of a given navigation pane.

java.lang.Exception

refreshInstanceList

public void refreshInstanceList()
                         throws java.lang.Exception
java.lang.Exception

refreshModuleTree

public void refreshModuleTree()
                       throws java.lang.Exception
java.lang.Exception

refreshPropositionList

public void refreshPropositionList()
                            throws java.lang.Exception
java.lang.Exception

refreshRelationTree

public void refreshRelationTree()
                         throws java.lang.Exception
java.lang.Exception

refreshRuleList

public void refreshRuleList()
                     throws java.lang.Exception
java.lang.Exception

setRelationFilter

public void setRelationFilter(int relationFilter)

setInstanceFilter

public void setInstanceFilter(int instanceFilter)

getMostRecentlyTouchedObject

public PLObject getMostRecentlyTouchedObject()

getMostRecentlyTouchedModule

public PLModule getMostRecentlyTouchedModule()

updateMostRecentlyTouchedObject

public void updateMostRecentlyTouchedObject(PLObject object)


Copyright © 2002 University of Southern California Information Sciences Institute. All Rights Reserved.