|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel msg.ProteinElement
public class ProteinElement
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, 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 | |
---|---|
ProteinElement(Msg_panel alles,
ProteinMatrix panel,
java.lang.String pdbcode,
java.lang.String id,
java.lang.String component,
java.lang.String subcomponent,
int x,
int y,
int vWidth,
int vHeight,
java.awt.Color colorBackground,
int pX,
int pY,
int sizeX,
int sizeY,
int ratio,
int mOffsetX,
int mOffsetY,
int rotation,
java.util.Vector lipids)
Initializes a new ProteinElement. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Performs the action of the action command. |
void |
activateHighlight()
Highlights all components with the same id. |
void |
changeLipidCubeRotation(int sizeX,
int sizeY,
int rotation)
Changes the values in the matrix of the lipids for a rotation of 90° of the matrix. |
void |
createProteinElement(java.lang.String id,
int x,
int y,
int sizeX,
int sizeY)
Creates a new ProteinElement. |
void |
deactivateHighlight()
Remove highlight of all components with the same id. |
java.lang.String |
generateToolTip()
Generates the tooltip for this component. |
Msg_panel |
getAlles()
|
int |
getBorderSize()
|
int |
getBorderSizeHl()
|
java.awt.Color |
getColorBackground()
|
java.awt.Color |
getColorBackgroundHl()
|
java.awt.Color |
getColorBackgroundPressed()
|
java.awt.Color |
getColorBorder()
|
java.awt.Color |
getColorBorderHl()
|
java.awt.Color |
getColorText()
|
java.awt.Color |
getColorTextPressed()
|
java.lang.String |
getComponent()
|
java.lang.String |
getId()
|
java.lang.String |
getKey()
|
java.util.Vector |
getLipids()
|
java.util.Vector |
getLipids2()
|
int |
getMOffsetX()
|
int |
getMOffsetY()
|
int |
getOldMouseX()
|
int |
getOldMouseY()
|
java.lang.String |
getPdbcode()
|
javax.swing.JPopupMenu |
getPopupRotate()
|
javax.swing.JLabel |
getProteinLabel()
|
ProteinMatrix |
getProteinMatrix()
|
int |
getPX()
|
int |
getPXnew()
|
int |
getPY()
|
int |
getPYnew()
|
int |
getRatio()
|
java.lang.String |
getRotateProteinText()
|
int |
getRotationAngle()
|
int |
getSizeX()
|
int |
getSizeY()
|
int |
getStartMouseX()
|
int |
getStartMouseY()
|
java.lang.String |
getSubcomponent()
|
int |
getVHeight()
|
int |
getVWidth()
|
int |
getXa()
|
int |
getYa()
|
boolean |
isPressed()
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Features when the mouse button is clicked. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Features when the mouse is dragged with pressed left button. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Features when the mouse enteres this component. |
void |
mouseExited(java.awt.event.MouseEvent e)
Features when the mouse lefts this component. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Features when the mouse is moved. |
void |
mousePressed(java.awt.event.MouseEvent e)
Features when the mouse button is pressed. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Features when the mouse button is released. |
void |
paintComponent(java.awt.Graphics g)
Paints the component. |
boolean |
rotateProteinElement()
Rotates an ProteinElement with 90°. |
void |
setAlles(Msg_panel alles)
|
void |
setBorderSize(int borderSize)
|
void |
setBorderSizeHl(int borderSizeHl)
|
void |
setColorBackground(java.awt.Color colorBackground)
|
void |
setColorBackgroundHl(java.awt.Color colorBackgroundHl)
|
void |
setColorBackgroundPressed(java.awt.Color colorBackgroundPressed)
|
void |
setColorBorder(java.awt.Color colorBorder)
|
void |
setColorBorderHl(java.awt.Color colorBorderHl)
|
void |
setColorText(java.awt.Color colorText)
|
void |
setColorTextPressed(java.awt.Color colorTextPressed)
|
void |
setComponent(java.lang.String component)
|
void |
setId(java.lang.String id)
|
void |
setKey(java.lang.String key)
|
void |
setLipids(java.util.Vector lipids)
|
void |
setMOffsetX(int offsetX)
|
void |
setMOffsetY(int offsetY)
|
void |
setOldMouseX(int oldMouseX)
|
void |
setOldMouseY(int oldMouseY)
|
void |
setPdbcode(java.lang.String pdbcode)
|
void |
setPopupRotate(javax.swing.JPopupMenu popupRotate)
|
void |
setPressed(boolean pressed)
|
void |
setProteinLabel(javax.swing.JLabel proteinLabel)
|
void |
setProteinMatrix(ProteinMatrix proteinMatrix)
|
void |
setPX(int px)
|
void |
setPXnew(int xnew)
|
void |
setPY(int py)
|
void |
setPYnew(int ynew)
|
void |
setRatio(int ratio)
|
void |
setRotateProteinText(java.lang.String rotateProteinText)
|
void |
setRotationAngle(int rotationAngle)
|
void |
setSizeX(int sizeX)
|
void |
setSizeY(int sizeY)
|
void |
setStartMouseX(int startMouseX)
|
void |
setStartMouseY(int startMouseY)
|
void |
setSubcomponent(java.lang.String subcomponent)
|
void |
setVHeight(int height)
|
void |
setVWidth(int width)
|
void |
setXa(int xa)
|
void |
setYa(int ya)
|
boolean |
testProteinMatrixPosition()
Tests if the element could be moved to the new position in the given matrix. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, 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, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, 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, 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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProteinElement(Msg_panel alles, ProteinMatrix panel, java.lang.String pdbcode, java.lang.String id, java.lang.String component, java.lang.String subcomponent, int x, int y, int vWidth, int vHeight, java.awt.Color colorBackground, int pX, int pY, int sizeX, int sizeY, int ratio, int mOffsetX, int mOffsetY, int rotation, java.util.Vector lipids)
alles
- Msg_panelpanel
- ProteinMatrixpdbcode
- Stringid
- Stringcomponent
- Stringsubcomponent
- Stringx
- inty
- intvWidth
- intvHeight
- intcolorBackground
- ColorpX
- intpY
- intsizeX
- intsizeY
- intratio
- intmOffsetX
- intmOffsetY
- introtation
- intlipids
- VectorMethod Detail |
---|
public void createProteinElement(java.lang.String id, int x, int y, int sizeX, int sizeY)
id
- Stringx
- inty
- intsizeX
- intsizeY
- intpublic boolean rotateProteinElement()
public boolean testProteinMatrixPosition()
public void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
public void changeLipidCubeRotation(int sizeX, int sizeY, int rotation)
sizeX
- intsizeY
- introtation
- intpublic java.lang.String generateToolTip()
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void activateHighlight()
public void deactivateHighlight()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public java.util.Vector getLipids2()
public Msg_panel getAlles()
public void setAlles(Msg_panel alles)
alles
- The alles to set.public int getBorderSize()
public void setBorderSize(int borderSize)
borderSize
- The borderSize to set.public int getBorderSizeHl()
public void setBorderSizeHl(int borderSizeHl)
borderSizeHl
- The borderSizeHl to set.public java.awt.Color getColorBackground()
public void setColorBackground(java.awt.Color colorBackground)
colorBackground
- The colorBackground to set.public java.awt.Color getColorBackgroundHl()
public void setColorBackgroundHl(java.awt.Color colorBackgroundHl)
colorBackgroundHl
- The colorBackgroundHl to set.public java.awt.Color getColorBackgroundPressed()
public void setColorBackgroundPressed(java.awt.Color colorBackgroundPressed)
colorBackgroundPressed
- The colorBackgroundPressed to set.public java.awt.Color getColorBorder()
public void setColorBorder(java.awt.Color colorBorder)
colorBorder
- The colorBorder to set.public java.awt.Color getColorBorderHl()
public void setColorBorderHl(java.awt.Color colorBorderHl)
colorBorderHl
- The colorBorderHl to set.public java.awt.Color getColorText()
public void setColorText(java.awt.Color colorText)
colorText
- The colorText to set.public java.awt.Color getColorTextPressed()
public void setColorTextPressed(java.awt.Color colorTextPressed)
colorTextPressed
- The colorTextPressed to set.public java.lang.String getComponent()
public void setComponent(java.lang.String component)
component
- The component to set.public java.lang.String getId()
public void setId(java.lang.String id)
id
- The id to set.public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- The key to set.public java.util.Vector getLipids()
public void setLipids(java.util.Vector lipids)
lipids
- The lipids to set.public int getMOffsetX()
public void setMOffsetX(int offsetX)
offsetX
- The mOffsetX to set.public int getMOffsetY()
public void setMOffsetY(int offsetY)
offsetY
- The mOffsetY to set.public int getOldMouseX()
public void setOldMouseX(int oldMouseX)
oldMouseX
- The oldMouseX to set.public int getOldMouseY()
public void setOldMouseY(int oldMouseY)
oldMouseY
- The oldMouseY to set.public java.lang.String getPdbcode()
public void setPdbcode(java.lang.String pdbcode)
pdbcode
- The pdbcode to set.public javax.swing.JPopupMenu getPopupRotate()
public void setPopupRotate(javax.swing.JPopupMenu popupRotate)
popupRotate
- The popupRotate to set.public boolean isPressed()
public void setPressed(boolean pressed)
pressed
- The pressed to set.public javax.swing.JLabel getProteinLabel()
public void setProteinLabel(javax.swing.JLabel proteinLabel)
proteinLabel
- The proteinLabel to set.public ProteinMatrix getProteinMatrix()
public void setProteinMatrix(ProteinMatrix proteinMatrix)
proteinMatrix
- The proteinMatrix to set.public int getPX()
public void setPX(int px)
px
- The pX to set.public int getPXnew()
public void setPXnew(int xnew)
xnew
- The pXnew to set.public int getPY()
public void setPY(int py)
py
- The pY to set.public int getPYnew()
public void setPYnew(int ynew)
ynew
- The pYnew to set.public int getRatio()
public void setRatio(int ratio)
ratio
- The ratio to set.public java.lang.String getRotateProteinText()
public void setRotateProteinText(java.lang.String rotateProteinText)
rotateProteinText
- The rotateProteinText to set.public int getRotationAngle()
public void setRotationAngle(int rotationAngle)
rotationAngle
- The rotationAngle to set.public int getSizeX()
public void setSizeX(int sizeX)
sizeX
- The sizeX to set.public int getSizeY()
public void setSizeY(int sizeY)
sizeY
- The sizeY to set.public int getStartMouseX()
public void setStartMouseX(int startMouseX)
startMouseX
- The startMouseX to set.public int getStartMouseY()
public void setStartMouseY(int startMouseY)
startMouseY
- The startMouseY to set.public java.lang.String getSubcomponent()
public void setSubcomponent(java.lang.String subcomponent)
subcomponent
- The subcomponent to set.public int getVHeight()
public void setVHeight(int height)
height
- The vHeight to set.public int getVWidth()
public void setVWidth(int width)
width
- The vWidth to set.public int getXa()
public void setXa(int xa)
xa
- The xa to set.public int getYa()
public void setYa(int ya)
ya
- The ya to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |