|
|||||||||
| 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
|
+--edu.mssm.crover.domain2d.PrintablePanel
|
+--edu.mssm.crover.domain2d.ResidueGlyph
A ResidueGlyph is the visual representation of a residue. Each instance represents a ResidueModel.
| Field Summary | |
protected int |
border
|
static int |
CIRCLE_SHAPE
Circular shape. |
protected boolean |
numbering
|
static int |
OCTAGONAL_SHAPE
Octagonal shape. |
protected ConstrainedPoint |
position
|
static int |
RECT_SHAPE
rectangular shape. |
protected java.awt.Stroke |
singleLineStroke
|
| Fields inherited from class edu.mssm.crover.domain2d.PrintablePanel |
SVG_ANCHOR_HREF_PROPERTY |
| 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 | |
ResidueGlyph(ResidueModel sharedResidueModel)
Builds a glyph with a border. |
|
ResidueGlyph(ResidueModel sharedResidueModel,
int border)
Builds a glyph from a model. |
|
| Method Summary | |
boolean |
contains(int x,
int y)
Redefines the clickable limit of the glyph component. |
void |
dispose()
Dispose of this drawing. |
protected void |
finalize()
|
ConstrainedPoint |
firstResiduePos()
|
java.awt.Component |
getComponent()
Returns the component associated with this drawing. |
ResidueModel |
getModel()
Returns the model this glyph represents. |
java.awt.geom.Rectangle2D |
getRenderingBox()
Returns the box in which the glyph rendering is being done. |
boolean |
getSelectionState()
Gets the selection state. |
DrawingSurface |
getSurface()
Returns null. |
ConstrainedPoint |
lastResiduePos()
|
void |
paintComponent(java.awt.Graphics g)
|
ConstrainedPoint |
position()
Returns the position of this drawing, inside its direct container. |
void |
setDefaults(ResidueGlyphRenderingAttributes attributes)
Reads and initialize the rendering attributes from the default attributes. |
void |
setDrawNumbering(boolean show)
|
void |
setLocation(int x,
int y)
|
void |
setLocation(java.awt.Point p)
|
void |
setModel(ResidueModel new_model)
Sets the model this glyph represents. |
void |
setOutline(boolean outline)
Select the outline drawing mode. |
void |
setSelected(boolean state)
Sets the selection state. |
void |
suggestLocation(int x,
int y)
Suggest a new location for this drawing, inside its container. |
void |
suggestLocation(java.awt.Point p)
Suggest a new location for this drawing, inside its container. |
void |
update(java.awt.Graphics g)
|
void |
update(java.util.Observable o,
java.lang.Object arg)
|
| Methods inherited from class edu.mssm.crover.domain2d.PrintablePanel |
coolPrint, recurseSVGPrint, svgPrint |
| 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, 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 |
| 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, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.mssm.crover.domain2d.Drawing |
getParent |
| Field Detail |
protected int border
protected java.awt.Stroke singleLineStroke
public static final int CIRCLE_SHAPE
public static final int RECT_SHAPE
public static final int OCTAGONAL_SHAPE
protected ConstrainedPoint position
protected boolean numbering
| Constructor Detail |
public ResidueGlyph(ResidueModel sharedResidueModel)
public ResidueGlyph(ResidueModel sharedResidueModel,
int border)
| Method Detail |
public void setDefaults(ResidueGlyphRenderingAttributes attributes)
public java.awt.Component getComponent()
Drawing
getComponent in interface Drawingpublic void setSelected(boolean state)
public boolean getSelectionState()
public ResidueModel getModel()
public void setOutline(boolean outline)
outline - True when outline mode is desired, false for filled shapes.public void dispose()
Drawing
dispose in interface Drawingpublic void setModel(ResidueModel new_model)
public void update(java.util.Observable o,
java.lang.Object arg)
update in interface java.util.Observerpublic void update(java.awt.Graphics g)
update in class javax.swing.JComponentpublic void paintComponent(java.awt.Graphics g)
paintComponent in class javax.swing.JComponent
public void setLocation(int x,
int y)
setLocation in class java.awt.Componentpublic void setLocation(java.awt.Point p)
setLocation in class java.awt.Componentpublic ConstrainedPoint position()
Drawing
position in interface Drawingpublic ConstrainedPoint firstResiduePos()
public ConstrainedPoint lastResiduePos()
public DrawingSurface getSurface()
getSurface in interface Drawingfor details .public void suggestLocation(java.awt.Point p)
Drawing
suggestLocation in interface Drawing
public void suggestLocation(int x,
int y)
Drawing
suggestLocation in interface Drawing
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void setDrawNumbering(boolean show)
public java.awt.geom.Rectangle2D getRenderingBox()
ResidueGlyphFactory.getRenderingBox()
and should return the same rectangle when all the glyphs are the same size.
public boolean contains(int x,
int y)
contains in class javax.swing.JComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||