mesquite.lib
Class AnnotationsPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by mesquite.lib.MousePanel
                  extended by mesquite.lib.MesquitePanel
                      extended by mesquite.lib.AnnotationsPanel
All Implemented Interfaces:
java.awt.dnd.DropTargetListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.TextListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, Commandable, FileDirtier

public class AnnotationsPanel
extends MesquitePanel
implements Commandable, java.awt.event.TextListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
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
 
Fields inherited from class mesquite.lib.MousePanel
target
 
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
AnnotationsPanel(AnnotPanelOwner annotOwner)
           
 
Method Summary
 void deleteCurrentNote(int modifiers)
           
 java.lang.Object doCommand(java.lang.String commandName, java.lang.String arguments, CommandChecker checker)
          This method sends two strings to the Commandable: the command name, and the arguments.
 boolean doIHaveContent(mesquite.lib.HeaderPanel panel)
           
 AttachedNote getCurrentNote()
           
 int getCurrentNoteNumber()
           
 java.awt.Dimension getMinimumSize()
          Gets the minimum size of the window
 Snapshot getSnapshot(MesquiteFile file)
           
 java.lang.String getTextContents()
           
 boolean isAttachable()
           
 void repaintImage()
           
 void setActive(boolean a)
           
 void setAttachable(boolean a)
           
 void setBounds(int x, int y, int width, int height)
           
 void setDefaultExplanation()
           
 void setExplanation(java.lang.String e)
           
 void setNote(int noteNumber)
           
 void setNotes(AttachedNotesVector aim, int noteNumber)
           
 void setNotes(AttachedNotesVector aim, java.lang.String where, java.lang.String location, int column, int row, int noteNumber)
           
 void setSize(int width, int height)
           
 void setVisible(boolean vis)
           
 void textValueChanged(java.awt.event.TextEvent e)
           
 void toggleImagePresence(mesquite.lib.HeaderPanel panel, int modifiers, boolean local)
           
 
Methods inherited from class mesquite.lib.MesquitePanel
add, dispose, getFrame, getMesquiteWindow, panelTouched, remove, setFontName, setFontSize, setFontStyle, setWindowAnnotation
 
Methods inherited from class mesquite.lib.MousePanel
actUponDroppedFileContents, deletePendingMoveDrag, dragEnter, dragExit, dragOver, drop, dropActionChanged, fileDirtiedByCommand, findFileInterpreter, getDisabledCursor, getMouseX, getMouseY, handleDroppedFileList, handleDroppedFileString, mouseClicked, mouseClicked, mouseDown, mouseDrag, mouseDragged, mouseEntered, mouseEntered, mouseExited, mouseExited, mouseMoved, mouseMoved, mousePressed, mouseReleased, mouseUp, printAll, setDontDuplicateCommands, setMoveFrequency
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, 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, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationsPanel

public AnnotationsPanel(AnnotPanelOwner annotOwner)
Method Detail

getMinimumSize

public java.awt.Dimension getMinimumSize()
Gets the minimum size of the window

Overrides:
getMinimumSize in class java.awt.Container

setAttachable

public void setAttachable(boolean a)

isAttachable

public boolean isAttachable()

textValueChanged

public void textValueChanged(java.awt.event.TextEvent e)
Specified by:
textValueChanged in interface java.awt.event.TextListener

setActive

public void setActive(boolean a)

toggleImagePresence

public void toggleImagePresence(mesquite.lib.HeaderPanel panel,
                                int modifiers,
                                boolean local)

getCurrentNote

public AttachedNote getCurrentNote()

getTextContents

public java.lang.String getTextContents()

getSnapshot

public Snapshot getSnapshot(MesquiteFile file)
Overrides:
getSnapshot in class MesquitePanel

doCommand

public java.lang.Object doCommand(java.lang.String commandName,
                                  java.lang.String arguments,
                                  CommandChecker checker)
Description copied from interface: Commandable
This method sends two strings to the Commandable: the command name, and the arguments. In order to support the command documentation system, a non-null CommandChecker must be passed to the command. The scripting parameter indicates whether the command comes from a script (e.g., saved in the Mesquite block of a NEXUS file, or in a macro file) or is attached to a direct user-interface action (e.g. selecting a menu or hitting a button). In the former, the commanded object should avoid interaction with the user to make decisions about parameters; in the latter, it is appropriate for the object to query the user for informations as needed.

Specified by:
doCommand in interface Commandable
Overrides:
doCommand in class MesquitePanel

getCurrentNoteNumber

public int getCurrentNoteNumber()

setExplanation

public void setExplanation(java.lang.String e)

setDefaultExplanation

public void setDefaultExplanation()

doIHaveContent

public boolean doIHaveContent(mesquite.lib.HeaderPanel panel)

setNotes

public void setNotes(AttachedNotesVector aim,
                     java.lang.String where,
                     java.lang.String location,
                     int column,
                     int row,
                     int noteNumber)

setNotes

public void setNotes(AttachedNotesVector aim,
                     int noteNumber)

setNote

public void setNote(int noteNumber)

repaintImage

public void repaintImage()

deleteCurrentNote

public void deleteCurrentNote(int modifiers)

setSize

public void setSize(int width,
                    int height)
Overrides:
setSize in class MesquitePanel

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)
Overrides:
setBounds in class MesquitePanel

setVisible

public void setVisible(boolean vis)
Overrides:
setVisible in class MousePanel