edu.byu.deg.OntologyEditor.shapes
Class ObjectSetShape

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byedu.byu.deg.OntologyEditor.shapes.DrawShape
                      extended byedu.byu.deg.OntologyEditor.shapes.PlanarShape
                          extended byedu.byu.deg.OntologyEditor.shapes.ConnectableShape
                              extended byedu.byu.deg.OntologyEditor.shapes.ObjConnectableShape
                                  extended byedu.byu.deg.OntologyEditor.shapes.ConnectableContainerShape
                                      extended byedu.byu.deg.OntologyEditor.shapes.ObjectSetShape
All Implemented Interfaces:
Accessible, Canvas, CustomCoordinatePlane, DocumentListener, EventListener, ImageObserver, ItemSelectable, MenuContainer, edu.byu.deg.osmx.OSMXElement.OSMXElementDeletionListener, edu.byu.deg.osmx.PositionListener, Serializable, edu.byu.deg.osmx.TextChangeListener

public class ObjectSetShape
extends ConnectableContainerShape
implements edu.byu.deg.osmx.TextChangeListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  EditableText cardinalityConstraint
           
protected  JPanel constraintPanel
           
protected  GridBagLayout gridbag
           
protected  edu.byu.deg.osmx.OSMXObjectSetType objSet
           
protected  String objSetName
           
protected static int PRIMARY_HEIGHT
           
protected static int PRIMARY_WIDTH
           
protected  PrimaryMarker primaryMarker
           
 
Fields inherited from class edu.byu.deg.OntologyEditor.shapes.ConnectableContainerShape
HIGHLEVEL_COLOR, nameText, suppressDocEvents
 
Fields inherited from class edu.byu.deg.OntologyEditor.shapes.PlanarShape
posElem, positionChanging
 
Fields inherited from class edu.byu.deg.OntologyEditor.shapes.DrawShape
DEFAULT_FONT, DEFAULT_STROKE, DEFAULT_STYLE, element, elementListener, initialLocation, parentCanvas, rootCanvas, selected, shapeBorder
 
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.Container
 
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
ObjectSetShape(Container c, edu.byu.deg.osmx.OSMXElement elem)
          Creates a new instance of ObjectSetShape
 
Method Summary
 void elementPropertyChange(PropertyChangeEvent evt)
          Handler for PropertyChangeEvents fired by OSMXElements to which this is registered as a listener.
The source of the events is usually but need not be the same object as returned by DrawShape.getElement().
 edu.byu.deg.osmx.binding.ObjectSetType getObjectSet()
           
 edu.byu.deg.osmx.binding.OSMType getOSM()
           
 String getShapeName()
           
protected  void initCardinalityConstraint()
           
protected  void initPrimaryMarker()
           
 void paintComponent(Graphics g)
           
protected  void setShapeName(String s)
           
 void textChanged(String newText)
           
protected  void updateCardinalityConstraintStyle()
           
 
Methods inherited from class edu.byu.deg.OntologyEditor.shapes.ConnectableContainerShape
changedUpdate, dragSelectedObjects, findShapeForElement, getNumberSelected, getState, insertUpdate, positionNameText, removeUpdate, setState, toBack, toFront, unselectAll, updateSelectionState
 
Methods inherited from class edu.byu.deg.OntologyEditor.shapes.ConnectableShape
getIntersectionPoint
 
Methods inherited from class edu.byu.deg.OntologyEditor.shapes.PlanarShape
initBorder, initElement, initLocation, locationChanged, setLocationFromPosition, setPosition, setPosition, updateOrder, updatePosition, updateX, updateY
 
Methods inherited from class edu.byu.deg.OntologyEditor.shapes.DrawShape
addItemListener, createStyle, delete, drag, elementDeleted, getAbsoluteCenterPoint, getBottomPoint, getBoundingBox, getCenterPoint, getConnectionPoint, getDefaultStyle, getElement, getFillColor, getFontColor, getFontFamily, getFontSize, getFontStyle, getLeftPoint, getLineColor, getLineWidth, getOrigin, getParentCanvas, getPosition, getRightPoint, getRootCanvas, getSelectedObjects, getStroke, getStyle, getTopPoint, isSelected, locationChanged, locationChanged, normalizeRect, removeItemListener, setLocation, setLocation, setSelected, setSelected
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
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, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.byu.deg.OntologyEditor.Canvas
getParentCanvas
 
Methods inherited from interface edu.byu.deg.OntologyEditor.CustomCoordinatePlane
getOrigin
 

Field Detail

cardinalityConstraint

protected EditableText cardinalityConstraint

primaryMarker

protected PrimaryMarker primaryMarker

objSetName

protected String objSetName

objSet

protected edu.byu.deg.osmx.OSMXObjectSetType objSet

constraintPanel

protected JPanel constraintPanel

gridbag

protected GridBagLayout gridbag

PRIMARY_WIDTH

protected static final int PRIMARY_WIDTH
See Also:
Constant Field Values

PRIMARY_HEIGHT

protected static final int PRIMARY_HEIGHT
See Also:
Constant Field Values
Constructor Detail

ObjectSetShape

public ObjectSetShape(Container c,
                      edu.byu.deg.osmx.OSMXElement elem)
Creates a new instance of ObjectSetShape

Method Detail

getObjectSet

public edu.byu.deg.osmx.binding.ObjectSetType getObjectSet()

getOSM

public edu.byu.deg.osmx.binding.OSMType getOSM()
Specified by:
getOSM in interface Canvas
Specified by:
getOSM in class ConnectableContainerShape

getShapeName

public String getShapeName()
Specified by:
getShapeName in class ConnectableContainerShape

textChanged

public void textChanged(String newText)
Specified by:
textChanged in interface edu.byu.deg.osmx.TextChangeListener

setShapeName

protected void setShapeName(String s)
Specified by:
setShapeName in class ConnectableContainerShape

initPrimaryMarker

protected void initPrimaryMarker()

initCardinalityConstraint

protected void initCardinalityConstraint()

updateCardinalityConstraintStyle

protected void updateCardinalityConstraintStyle()

elementPropertyChange

public void elementPropertyChange(PropertyChangeEvent evt)
Description copied from class: DrawShape
Handler for PropertyChangeEvents fired by OSMXElements to which this is registered as a listener.
The source of the events is usually but need not be the same object as returned by DrawShape.getElement().

Overrides:
elementPropertyChange in class ConnectableContainerShape

paintComponent

public void paintComponent(Graphics g)