|
|||||||||
| 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
chemaxon.alchemist.utils.AlchemistLinearMoleculeView
public class AlchemistLinearMoleculeView
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
HORIZONTAL
horizontal display mode |
static int |
VERTICAL
vertical display mode |
| 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 | |
|---|---|
AlchemistLinearMoleculeView(int orientation)
Creates an AlchemistLinearMoleculeView |
|
| Method Summary | |
|---|---|
void |
addListSelectionListener(javax.swing.event.ListSelectionListener listener)
Adds a list selection listener |
void |
clearSelection()
Clears the selection |
protected void |
fireSelectionValueChanged(int firstIndex,
int lastIndex,
boolean isAdjusting)
Fires the list selection change event to all registered listeners |
java.awt.Color |
getBackground()
|
int |
getBlockIncrement()
Returns the scrollbar block increment |
javax.swing.event.ListSelectionListener[] |
getListSelectionListeners()
Returns the array of list selection listeners |
java.util.List |
getMoleculeList()
Returns the molecule object list displayed |
java.lang.String[] |
getReactionNames()
Returns the reaction names for reaction arrows or null |
int |
getSelectedIndex()
Returns the selected index, or -1 |
java.lang.Object |
getSelectedValue()
Returns the selected value, or null |
int |
getUnitIncrement()
Returns the scrollbar unit increment |
java.lang.String |
getWaitText()
Returns the text displayed in waiting mode |
boolean |
isSelectable()
Returns if molecules are selectable |
boolean |
isSelectedIndex(int index)
Returns true, if index is selected |
boolean |
isSelectionEmpty()
Returns true, if no molecule selected |
boolean |
isShowArrows()
Returns if arrows are visible among molecules |
boolean |
isWaiting()
Returns if molecule view is in waiting mode |
void |
redoLayout()
This method re-initializes and draws molecule list. |
void |
removeListSelectionListener(javax.swing.event.ListSelectionListener listener)
Removes a list selection listener |
void |
setBackground(java.awt.Color bg)
|
void |
setBlockIncrement(int blockIncrement)
Sets the scrollbar block increment |
void |
setEnabled(boolean enabled)
|
void |
setMoleculeList(java.util.List moleculeList)
Sets the molecule list to be displayed |
void |
setMoleculeList(java.util.List moleculeList,
java.util.HashMap reactionNamesMap,
java.lang.String[] reactionNamesArray)
Sets the molecule list to be displayed |
void |
setSelectable(boolean selectable)
Sets molecules selectable |
void |
setSelectedIndex(int index)
Sets the selected index |
void |
setShowArrows(boolean value)
Sets the visibility of arrows among molecules |
void |
setUnitIncrement(int unitIncrement)
Sets the scrollbar unit increment |
void |
setWaiting(boolean value)
Sets Waiting mode |
void |
setWaitText(java.lang.String text)
Sets text displayed in waiting mode |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, 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, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, 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 |
| Field Detail |
|---|
public static int VERTICAL
public static int HORIZONTAL
| Constructor Detail |
|---|
public AlchemistLinearMoleculeView(int orientation)
orientation - is the orientation of the view
can be one of VERTICAL or HORIZONTAL| Method Detail |
|---|
public java.util.List getMoleculeList()
public void setWaiting(boolean value)
value - public boolean isWaiting()
true if molecule view is in waiting modepublic void setWaitText(java.lang.String text)
text - public java.lang.String getWaitText()
public void setMoleculeList(java.util.List moleculeList)
moleculeList -
public void setMoleculeList(java.util.List moleculeList,
java.util.HashMap reactionNamesMap,
java.lang.String[] reactionNamesArray)
moleculeList - are the moleculesreactionNamesMap - are the reaction names rendered above reaction arrows and used as tooltip on arrows (Keys are short names, Values are long names)reactionNamesArray - are the reaction names rendered above reaction arrowspublic java.lang.String[] getReactionNames()
public void setUnitIncrement(int unitIncrement)
unitIncrement - public int getUnitIncrement()
public void setBlockIncrement(int blockIncrement)
blockIncrement - public int getBlockIncrement()
public void redoLayout()
public void setBackground(java.awt.Color bg)
setBackground in class javax.swing.JComponentpublic java.awt.Color getBackground()
getBackground in class java.awt.Componentpublic void setShowArrows(boolean value)
value - public boolean isShowArrows()
public boolean isSelectable()
public void setSelectable(boolean selectable)
selectable - is the new valuepublic void addListSelectionListener(javax.swing.event.ListSelectionListener listener)
listener - is the listener to be addedpublic javax.swing.event.ListSelectionListener[] getListSelectionListeners()
public void removeListSelectionListener(javax.swing.event.ListSelectionListener listener)
listener - is the listener to be removed
protected void fireSelectionValueChanged(int firstIndex,
int lastIndex,
boolean isAdjusting)
firstIndex - lastIndex - isAdjusting - public void clearSelection()
public int getSelectedIndex()
public java.lang.Object getSelectedValue()
public boolean isSelectedIndex(int index)
index -
public boolean isSelectionEmpty()
public void setSelectedIndex(int index)
index - public void setEnabled(boolean enabled)
setEnabled in class javax.swing.JComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||