|
Protege 3.4.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
edu.stanford.smi.protege.widget.AbstractWidget
edu.stanford.smi.protege.widget.AbstractSlotWidget
edu.stanford.smi.protegex.widget.graph.GraphWidget
public class GraphWidget
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class edu.stanford.smi.protege.widget.AbstractSlotWidget |
---|
READ_ONLY_WIDGET_PROPERTY |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
GraphWidget()
|
Method Summary | |
---|---|
void |
addNotify()
|
protected GraphView |
createGraphView(GraphWidget widget)
|
edu.stanford.smi.protege.widget.WidgetConfigurationPanel |
createWidgetConfigurationPanel()
|
void |
dispose()
|
GraphDocument |
getDocument()
|
BufferedImage |
getImage()
|
static Object |
getPositionInfo(edu.stanford.smi.protege.model.Instance instance,
edu.stanford.smi.protege.model.Slot slot,
edu.stanford.smi.protege.model.Instance slotValue)
Provides access to position information for either: a) nodes b) elbows in connectors (only works for connectors that have instances associated with them -- i.e. |
Collection |
getSelection()
|
Collection |
getValues()
|
GraphView |
getView()
|
void |
handleAddExistingInstance()
|
void |
handleCreateInstance()
|
void |
handleDeleteSelectedInstances()
|
protected void |
handleDoubleClick()
|
void |
handleOwnSlotValueChanged(edu.stanford.smi.protege.event.FrameEvent event)
|
void |
handlePerformAutomaticLayout(int direction)
|
void |
handleRemoveSelectedInstances()
|
void |
handleSaveAsImage()
|
void |
handleViewSelectedInstances()
|
void |
initGraphDocument(Collection c)
|
void |
initialize()
|
static boolean |
isSuitable(edu.stanford.smi.protege.model.Cls cls,
edu.stanford.smi.protege.model.Slot slot,
edu.stanford.smi.protege.model.Facet facet)
|
void |
processViewChange(com.nwoods.jgo.JGoViewEvent e)
|
protected HashSet |
resolveComplexLinks(Node node)
|
void |
setEditable(boolean b)
|
void |
setInstance(edu.stanford.smi.protege.model.Instance instance)
|
void |
setValues(Collection c)
|
Methods inherited from class edu.stanford.smi.protege.widget.AbstractSlotWidget |
---|
addButtonConfiguration, addButtonConfiguration, allowsMultipleValues, areDirectValues, configure, displayButton, displayButton, getAssociatedCls, getButtonDescription, getCls, getClsWidget, getDefaultLabel, getDefaultToolTip, getDoubleClickAction, getFirstItem, getInstance, getInvalidValueText, getLabel, getMaximumCardinality, getMinimumCardinality, getPreferredSize, getSelectionBorderSize, getSlot, isDirectValue, isReadOnlyConfiguredWidget, isSlotAtCls, loadValues, localizeStandardLabel, reshape, setAllowed, setAssociatedCls, setCls, setDefaultToolTip, setDoubleClickListener, setInstanceValues, setInvalidValueBorder, setNormalBorder, setPreferredColumns, setPreferredRows, setPreferredSize, setReadOnlyWidget, setSelectedBorder, setSelectedBorder, setShowInstanceListener, setSlot, setup, setWidgetValues, showInstance, updateBorder, valueChanged |
Methods inherited from class edu.stanford.smi.protege.widget.AbstractWidget |
---|
addSelectionListener, beginTransaction, beginTransaction, clearSelection, commitTransaction, endTransaction, equals, getDescriptor, getKnowledgeBase, getProject, getPropertyList, getStringProperty, isDesignTime, isRuntime, notifySelectionListeners, paint, removeSelectionListener, rollbackTransaction, setLabel, setPropertyList, setup, show |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.stanford.smi.protege.widget.Widget |
---|
getDescriptor, getKnowledgeBase, getProject, setLabel |
Methods inherited from interface edu.stanford.smi.protege.util.Selectable |
---|
addSelectionListener, clearSelection, notifySelectionListeners, removeSelectionListener |
Methods inherited from interface edu.stanford.smi.protege.plugin.Plugin |
---|
getName |
Constructor Detail |
---|
public GraphWidget()
Method Detail |
---|
public void initialize()
protected GraphView createGraphView(GraphWidget widget)
public void addNotify()
addNotify
in class JComponent
public void setValues(Collection c)
setValues
in class edu.stanford.smi.protege.widget.AbstractSlotWidget
public void initGraphDocument(Collection c)
public void setInstance(edu.stanford.smi.protege.model.Instance instance)
setInstance
in interface edu.stanford.smi.protege.widget.SlotWidget
setInstance
in class edu.stanford.smi.protege.widget.AbstractSlotWidget
public Collection getValues()
getValues
in class edu.stanford.smi.protege.widget.AbstractSlotWidget
public static boolean isSuitable(edu.stanford.smi.protege.model.Cls cls, edu.stanford.smi.protege.model.Slot slot, edu.stanford.smi.protege.model.Facet facet)
public void handleViewSelectedInstances()
public void handleCreateInstance()
public void handleAddExistingInstance()
public void handleRemoveSelectedInstances()
protected HashSet resolveComplexLinks(Node node)
public void handleDeleteSelectedInstances()
public void handlePerformAutomaticLayout(int direction)
public void handleSaveAsImage()
public void handleOwnSlotValueChanged(edu.stanford.smi.protege.event.FrameEvent event)
public edu.stanford.smi.protege.widget.WidgetConfigurationPanel createWidgetConfigurationPanel()
createWidgetConfigurationPanel
in class edu.stanford.smi.protege.widget.AbstractSlotWidget
public void processViewChange(com.nwoods.jgo.JGoViewEvent e)
public void setEditable(boolean b)
setEditable
in class edu.stanford.smi.protege.widget.AbstractSlotWidget
public GraphDocument getDocument()
public GraphView getView()
public Collection getSelection()
getSelection
in interface edu.stanford.smi.protege.util.Selectable
getSelection
in class edu.stanford.smi.protege.widget.AbstractWidget
protected void handleDoubleClick()
handleDoubleClick
in class edu.stanford.smi.protege.widget.AbstractSlotWidget
public void dispose()
dispose
in interface edu.stanford.smi.protege.util.Disposable
dispose
in class edu.stanford.smi.protege.widget.AbstractSlotWidget
public static Object getPositionInfo(edu.stanford.smi.protege.model.Instance instance, edu.stanford.smi.protege.model.Slot slot, edu.stanford.smi.protege.model.Instance slotValue)
instance
- the instance containing the slot that is using the graph widgetslot
- the slot that is using the graph widgetslotValue
- the slot value for which position information is desired
public BufferedImage getImage()
|
Protege 3.4.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |