edu.stanford.smi.protegex.widget.diagram
Class DiagramsPanel
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--edu.stanford.smi.protegex.widget.diagram.DiagramsPanel
- All Implemented Interfaces:
- Accessible, Constants, ImageObserver, MainDiagramArea, MenuContainer, Serializable
- Direct Known Subclasses:
- DiagramsPanelWithoutPalette, DiagramsPanelWithPalette
- public abstract class DiagramsPanel
- extends JPanel
- implements Constants, MainDiagramArea
Description of the Class
- Author:
- William Grosso
- See Also:
- Serialized Form
Fields inherited from interface edu.stanford.smi.protegex.widget.diagram.Constants |
CONFIGURATION_BASED_VISIBILITY_CHECKER, CONNECTOR_CLASS, CONNECTORS_SLOT, DEFAULT_LAST_DIVIDER_LOCATION, DEFAULT_LOWER_BOUND_ON_DIAGRAM_LOGICAL_HEIGHT, DEFAULT_LOWER_BOUND_ON_DIAGRAM_LOGICAL_WIDTH, DEFAULT_NODE_HEIGHT, DEFAULT_NODE_WIDTH, FIRST_OBJECT_SLOT_NAME, FIRST_OBJECT_SLOT_POINTER_NAME, IMAGE_CONTROLPOINT_PRECISION, IMAGE_MINIMUM_SIZE, LAST_DIVIDER_LOCATION, LAYOUT_INFORMATION_SLOT, LOCATION_SLOT, LOWER_RIGHT_CORNER_SLOT, MAIN_SIDE_RECTANGLE_HEIGHT, MAIN_SIDE_RECTANGLE_WIDTH, NETWORK_CLASS, NETWORK_METACLASS, NODE_SLOT, OBJECT_LOCATION_CLASS, OBJECT_SLOT, POINT_CLASS, POINT_X_SLOT, POINT_Y_SLOT, PROJECT_VISIBILITY_CHECKER, RECTANGLE_CLASS, SECOND_OBJECT_SLOT_NAME, SECOND_OBJECT_SLOT_POINTER_NAME, UPPER_LEFT_CORNER_SLOT, WIRE_CONTROLPOINT_PRECISION, WIRE_MINIMUM_SIZE |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, show, show, size, toString, transferFocus |
_project
protected edu.stanford.smi.protege.model.Project _project
_widget
protected DiagramWidget _widget
_state
protected DiagramWidgetState _state
_mainDrawingPanelMinimumSize
protected Dimension _mainDrawingPanelMinimumSize
_mainDrawingPanel
protected MainDrawingPanel _mainDrawingPanel
_mainDrawingArea
protected DiagramsAnimationContext _mainDrawingArea
_mainDrawingAreaScrollPane
protected DiagramScrollPane _mainDrawingAreaScrollPane
DiagramsPanel
public DiagramsPanel(DiagramWidget widget)
buildActorForConnector
public StandardWireActor buildActorForConnector(edu.stanford.smi.protege.model.Instance connector,
WireState specification)
buildActorForNode
public Actor buildActorForNode(edu.stanford.smi.protege.model.Instance node,
NodeState specification)
computeAttachmentsForConnector
public void computeAttachmentsForConnector(edu.stanford.smi.protege.model.Instance connector,
StandardWireActor actor)
createActorsForConnectors
protected void createActorsForConnectors()
createActorsForNodes
protected void createActorsForNodes()
createMainDrawingArea
protected void createMainDrawingArea()
finishInitialization
public abstract void finishInitialization()
getMainDrawingArea
public AnimationContext getMainDrawingArea()
- Specified by:
getMainDrawingArea
in interface MainDiagramArea
getMainDrawingPanel
public MainDrawingPanel getMainDrawingPanel()
placeConnectorOnScreen
public void placeConnectorOnScreen(edu.stanford.smi.protege.model.Instance connector,
Actor actor)
placeNodeOnScreen
public void placeNodeOnScreen(edu.stanford.smi.protege.model.Instance node,
Actor actor)
refreshConnectors
public void refreshConnectors()
- Specified by:
refreshConnectors
in interface MainDiagramArea
refreshNodes
public void refreshNodes()
- Specified by:
refreshNodes
in interface MainDiagramArea
removeCurrentConnections
protected void removeCurrentConnections()
removeCurrentNodes
protected void removeCurrentNodes()
removeEverything
protected void removeEverything()
resizeDiagram
public void resizeDiagram()
setSize
public void setSize(int width,
int height)
- Overrides:
setSize
in class Component
Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.