|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--org.concord.biologica.ui.UIView
|
+--org.concord.biologica.ui.ObjectPropertiesView
The object properties view of BioLogica. This view will show the properties of any type of BioLogica engine object. The properties of the object will be editable if the object is not locked.
An object of this class will generate the following property change events:
UIProp.OBJECT,
PropertyChangeListener, Serialized Form| Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Field Summary | |
static int |
CHROMOSOME_IMAGE_HEIGHT
|
static int |
CHROMOSOME_IMAGE_WIDTH
|
static int |
X_BLUE_CHROMOSOME
|
static int |
X_YELLOW_CHROMOSOME
|
| Fields inherited from class org.concord.biologica.ui.UIView |
changes, fontAscent, fontDescent, fontHeight, fontMetrics, preferredHeight, preferredWidth, scrollPane |
| 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 | |
ObjectPropertiesView()
Creates an object property view. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
React to actions |
void |
focusGained(java.awt.event.FocusEvent event)
Handle focus gained event - do nothing in most cases. |
void |
focusLost(java.awt.event.FocusEvent event)
Handle focus lost event - check text in most cases. |
EngineObject |
getObject()
Get the engine object whose properties are shown in this view. |
java.awt.Dimension |
getPreferredSize()
Return the preferred size of this canvas |
boolean |
imageUpdate(java.awt.Image anImage,
int infoFlags,
int x,
int y,
int width,
int height)
ImageObserver method |
void |
itemStateChanged(java.awt.event.ItemEvent event)
Handle combo box item changed events. |
void |
mouseClicked(java.awt.event.MouseEvent event)
Handle mouse click events |
void |
mouseDragged(java.awt.event.MouseEvent event)
Handle mouse dragged event |
void |
mouseEntered(java.awt.event.MouseEvent event)
Handle mouse entered event |
void |
mouseExited(java.awt.event.MouseEvent event)
Handle mouse exited event |
void |
mouseMoved(java.awt.event.MouseEvent event)
Handle mouse moved event |
void |
mousePressed(java.awt.event.MouseEvent event)
Handle mouse pressed event |
void |
mouseReleased(java.awt.event.MouseEvent event)
Handle mouse released event |
void |
paintComponent(java.awt.Graphics g)
Draw the graphics in this view. |
void |
processPendingTextEdits()
Process pending text edit control modifications before allowing something else to occur in the user interface. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
Handle property change events |
void |
setObject(EngineObject anObject)
Set the engine object whose properties should be shown in this view. |
void |
updateState()
Update our state |
| Methods inherited from class org.concord.biologica.ui.UIView |
addPropertyChangeListener, getLocalImage, paintBackground, removePropertyChangeListener, setBackground, setFont, setForeground, setScrollPane, toolChanged, updateFont |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
| 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, 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, setSize, show, show, size, toString, transferFocus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int CHROMOSOME_IMAGE_WIDTH
public static final int CHROMOSOME_IMAGE_HEIGHT
public static final int X_YELLOW_CHROMOSOME
public static final int X_BLUE_CHROMOSOME
| Constructor Detail |
public ObjectPropertiesView()
| Method Detail |
public EngineObject getObject()
public void setObject(EngineObject anObject)
anEngineObject - EngineObject - an engine object to show in this view, may be nullpublic void paintComponent(java.awt.Graphics g)
paintComponent in class javax.swing.JComponentg - Graphics - the given graphics to use in drawingpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class UIView
public boolean imageUpdate(java.awt.Image anImage,
int infoFlags,
int x,
int y,
int width,
int height)
imageUpdate in interface java.awt.image.ImageObserverimageUpdate in class java.awt.Componentpublic void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent event)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent event)
mouseExited in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent event)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void updateState()
public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListenerevent - PropertyChangeEvent - the property change eventpublic void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged in interface java.awt.event.ItemListenerpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void focusGained(java.awt.event.FocusEvent event)
focusGained in interface java.awt.event.FocusListenerevent - FocusEvent - focus gained eventpublic void focusLost(java.awt.event.FocusEvent event)
focusLost in interface java.awt.event.FocusListenerevent - FocusEvent - focus lost eventpublic void processPendingTextEdits()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||