apollo.gui.genomemap
Class ApolloPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by apollo.gui.genomemap.ApolloPanel
All Implemented Interfaces:
DataLoadListener, ControlledObjectI, BaseFocusListener, FeatureSelectionListener, RubberbandListener, ViewListener, ApolloPanelI, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.MouseInputListener

public class ApolloPanel
extends javax.swing.JPanel
implements ApolloPanelI, BaseFocusListener, ControlledObjectI, FeatureSelectionListener, java.awt.event.KeyListener, javax.swing.event.MouseInputListener, java.awt.event.MouseWheelListener, DataLoadListener, RubberbandListener, ViewListener

This class is a container to hold and manage the various Views which are needed by Apollo. It holds all the views from both strands.

See Also:
Serialized Form

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
protected  boolean allowsMovement
           
protected  java.awt.Image backBuffer
           
protected  int backBufferHeight
           
protected  int backBufferWidth
           
protected  Controller controller
           
protected  TierViewI dragTierView
           
protected  ViewI focus
           
protected  boolean inDrag
           
protected  boolean inTierDrag
           
protected  boolean invalid
           
protected  ApolloLayoutManager layout_manager
           
protected  java.awt.Rectangle layoutBounds
           
protected  java.util.Vector linearViews
           
protected static org.apache.log4j.Logger logger
           
protected  java.lang.String name
           
protected  java.util.Vector pickViews
           
protected  java.awt.event.MouseEvent pressEvent
           
protected  RubberbandRectangle rubberband
           
protected  boolean showEdgeMatches
           
protected  StatusBar statusBar
           
protected  boolean syncLimits
           
 
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
 
Method Summary
 void add(ViewI view)
           
 void add(ViewI view, java.lang.Object constraints)
          Add a View to the views.
 void changeTierHeights(int change)
           
 void clearEdges()
           
 void clearSelection()
           
 void doLayout()
           
protected  void doMiddleClick(java.awt.event.MouseEvent evt)
           
protected  void doTierDrag(java.awt.event.MouseEvent evt)
           
protected  void doViewDrag(java.awt.event.MouseEvent evt)
           
 void endTierDrag(java.awt.event.MouseEvent evt)
           
 void endViewDrag(java.awt.event.MouseEvent evt)
           
 void finalize()
           
 java.lang.Object getApolloLock()
           
 java.awt.Image getBackBuffer()
           
 Controller getController()
          Gets the apollo event controller for the panel.
 java.lang.Object getControllerWindow()
          Shouldnt this return Window - would we ever want a non-window?
 DragViewI getDragView()
           
 java.util.Vector getDragViews()
           
 ViewI getFocus()
           
 int getLinearCentre()
           
 int getLinearMaximum()
           
 int getLinearMinimum()
           
 java.lang.String getName()
          Returns the name of the panel.
 PickViewI getPickViewFocus()
          If focus is a pick focus, returns the PickViewI
 java.util.Vector getPickViews(java.awt.Rectangle bounds)
          find pick views which are at least partly within a specified rectangle
 java.awt.Dimension getPreferredSize()
           
 RubberbandRectangle getRubberband()
          Rubberband related methods
 Selection getSelection()
           
 StatusBar getStatusBar()
           
 StrandedZoomableApolloPanel getStrandedZoomableApolloPanel()
           
protected  ViewI getViewAt(java.awt.Point p)
          Get the View at a specified location in the Panel
 java.awt.Graphics getViewGraphics()
          Get the Graphics to draw to.
 java.util.Vector getViews()
          get the views Vector
 java.util.Vector getViews(java.awt.Rectangle bounds)
          find non drag views which are at least partly within a specified rectangle
 java.util.Vector getViews(java.awt.Rectangle bounds, java.util.Vector viewVector)
           
 int getVisibleBasepairWidth()
          This returns the width of the panel in base pairs NOT pixels.
 boolean handleBaseFocusEvent(BaseFocusEvent evt)
           
 boolean handleDataLoadEvent(DataLoadEvent evt)
           
 boolean handleFeatureSelectionEvent(FeatureSelectionEvent evt)
          FeatureSelectionListener - should this scroll to the selection? YES This sets Selection selection to the features in the selection event that are found in the views.
 boolean handleRubberbandEvent(RubberbandEvent evt)
           
 boolean handleViewEvent(ViewEvent evt)
           
 void highlightEdges(Selection sel, boolean state)
          I believe this highlights edges in other views that line up with the edges in the selection
 boolean isShowingEdgeMatches()
           
 boolean isSynced()
          Gets flag indicating whether to synchronise the limits on all the LinearViews.
 void keyPressed(java.awt.event.KeyEvent evt)
          Keyboard event listeners
 void keyReleased(java.awt.event.KeyEvent evt)
           
 void keyTyped(java.awt.event.KeyEvent evt)
           
 void mouseClicked(java.awt.event.MouseEvent evt)
           
 void mouseDragged(java.awt.event.MouseEvent evt)
          There are 2 types of dragging - tierDrag and viewDrag.
 void mouseEntered(java.awt.event.MouseEvent evt)
          MouseInputListener routines
 void mouseExited(java.awt.event.MouseEvent evt)
           
 void mouseMoved(java.awt.event.MouseEvent evt)
          Gets features under mouse and puts name and position in status bar
 void mousePressed(java.awt.event.MouseEvent evt)
          When the mouse button comes down (but is not released) it may be either the right mouse button or the left.
 void mouseReleased(java.awt.event.MouseEvent evt)
           
 void mouseWheelMoved(java.awt.event.MouseWheelEvent evt)
           
 boolean needsAutoRemoval()
          If getControllerWindow is non null, and needsAutoRemoval is true then Controller will automatically remove the ControlledObjectI as a listener when its ControllerWindow is closing.
 void paintComponent(java.awt.Graphics g)
          Overidden paintComponent to draw any views requiring a repaint
 void print(java.io.File file, java.lang.String orientation, java.lang.String scale)
           
 void putVerticalScrollbarsAtStart()
           
 void remove(ViewI view)
          Remove a View from the views
 void setController(Controller controller)
          Sets the event controller for the panel.
 void setEdgeMatching(boolean state)
           
protected  void setFocusView(ViewI focus)
          Sets the view which has 'focus'
 void setInvalidity(boolean state)
          Causes views to layout if this.doLayout is called
 void setLayout(ApolloLayoutManager manager)
          Set the Apollo specific layout manager for this Panel
 void setLinearCentre(int Position)
          Sets the linear centre for the focused view, or all LinearViews depending on syncLimits flag
 void setMovementAllowed(boolean state)
           
 void setName(java.lang.String name)
          Sets the name of the panel - is this used at all?
 void setScaleView(ScaleView scale)
           
 void setStatusBar(StatusBar sb)
           
 void setSyncLimits(boolean state)
          Sets flag indicating whether to synchronise the limits on all the LinearViews.
 void setSyncLimits(boolean state, int reglow, int reghigh)
           
 void setViewGraphics(java.awt.Graphics g)
          Set the Graphics to draw to.
 void setVisible(boolean state)
           
 void setZoomFactor(double xFactor, double yFactor)
          Set zoom factor on all views
 void setZoomFactorX(double xFactor)
          Set X zoom factor on all views
 void setZoomFactorY(double yFactor)
          Set Y zoom factor on all views
protected  void syncViewLimits(int reglow, int reghigh)
          Actually do the view limit synchronisation This actually adds a 1/100 of seq length as padding to each end, and updates all the views with these limits.
 
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, 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, 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, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, 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, 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, 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, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

backBuffer

protected java.awt.Image backBuffer

backBufferWidth

protected int backBufferWidth

backBufferHeight

protected int backBufferHeight

linearViews

protected java.util.Vector linearViews

pickViews

protected java.util.Vector pickViews

layout_manager

protected ApolloLayoutManager layout_manager

controller

protected Controller controller

focus

protected ViewI focus

name

protected java.lang.String name

syncLimits

protected boolean syncLimits

rubberband

protected RubberbandRectangle rubberband

inDrag

protected boolean inDrag

pressEvent

protected java.awt.event.MouseEvent pressEvent

inTierDrag

protected boolean inTierDrag

dragTierView

protected TierViewI dragTierView

statusBar

protected StatusBar statusBar

layoutBounds

protected java.awt.Rectangle layoutBounds

invalid

protected boolean invalid

allowsMovement

protected boolean allowsMovement

showEdgeMatches

protected boolean showEdgeMatches
Method Detail

getApolloLock

public final java.lang.Object getApolloLock()

add

public void add(ViewI view,
                java.lang.Object constraints)
Add a View to the views. This no longer does an invalidate/validate trigerring a layout. This is now the responsibility of the caller to do. This is more efficient for the case when you are adding many things, you only need to do the validate/layout after adding everything, not for each add. Also the intermediate layouts would screw up scroll bar values on revcomp.


add

public void add(ViewI view)

setScaleView

public void setScaleView(ScaleView scale)

setLayout

public void setLayout(ApolloLayoutManager manager)
Set the Apollo specific layout manager for this Panel


remove

public void remove(ViewI view)
Remove a View from the views


putVerticalScrollbarsAtStart

public void putVerticalScrollbarsAtStart()

setSyncLimits

public void setSyncLimits(boolean state)
Sets flag indicating whether to synchronise the limits on all the LinearViews. This is necessary for the OverviewPanel, but not desirable for the FineEditor panel.


setSyncLimits

public void setSyncLimits(boolean state,
                          int reglow,
                          int reghigh)

isSynced

public boolean isSynced()
Gets flag indicating whether to synchronise the limits on all the LinearViews.


syncViewLimits

protected void syncViewLimits(int reglow,
                              int reghigh)
Actually do the view limit synchronisation This actually adds a 1/100 of seq length as padding to each end, and updates all the views with these limits. This means that limits != sequence start and end.


setLinearCentre

public void setLinearCentre(int Position)
Sets the linear centre for the focused view, or all LinearViews depending on syncLimits flag


setMovementAllowed

public void setMovementAllowed(boolean state)

getLinearCentre

public int getLinearCentre()

getLinearMinimum

public int getLinearMinimum()

getLinearMaximum

public int getLinearMaximum()

setVisible

public void setVisible(boolean state)
Overrides:
setVisible in class javax.swing.JComponent

getVisibleBasepairWidth

public int getVisibleBasepairWidth()
This returns the width of the panel in base pairs NOT pixels. Is the linear part of the method name suppose to connote this? If so it is not obvious. It should probably be renamed getBasePairWidth or getCoordinateWidth if we dont want to assume base pairs. Its returning start and end base pair that is currently visible. Loops through linear views and uses first visible one.


setZoomFactor

public void setZoomFactor(double xFactor,
                          double yFactor)
Set zoom factor on all views


setZoomFactorX

public void setZoomFactorX(double xFactor)
Set X zoom factor on all views


setZoomFactorY

public void setZoomFactorY(double yFactor)
Set Y zoom factor on all views


setController

public void setController(Controller controller)
Sets the event controller for the panel. This is for controlling the dispatch of Apollo specific (Feature) events. All the components dealling with apollo data should register with a single controller, which will notify them when changes, selections, moves... occur.

Specified by:
setController in interface ControlledObjectI

getSelection

public Selection getSelection()
Specified by:
getSelection in interface ApolloPanelI

getController

public Controller getController()
Gets the apollo event controller for the panel.

Specified by:
getController in interface ControlledObjectI
Specified by:
getController in interface ApolloPanelI

getControllerWindow

public java.lang.Object getControllerWindow()
Description copied from interface: ControlledObjectI
Shouldnt this return Window - would we ever want a non-window?

Specified by:
getControllerWindow in interface ControlledObjectI

needsAutoRemoval

public boolean needsAutoRemoval()
Description copied from interface: ControlledObjectI
If getControllerWindow is non null, and needsAutoRemoval is true then Controller will automatically remove the ControlledObjectI as a listener when its ControllerWindow is closing. If getControllerWindow is null needsAutoRemoval is meaningless. Rename this removeAsListenerOnWindowClose?

Specified by:
needsAutoRemoval in interface ControlledObjectI

print

public void print(java.io.File file,
                  java.lang.String orientation,
                  java.lang.String scale)

paintComponent

public void paintComponent(java.awt.Graphics g)
Overidden paintComponent to draw any views requiring a repaint

Overrides:
paintComponent in class javax.swing.JComponent

doLayout

public void doLayout()
Overrides:
doLayout in class java.awt.Container

setViewGraphics

public void setViewGraphics(java.awt.Graphics g)
Set the Graphics to draw to.

Parameters:
g - The new graphics to draw to.

setInvalidity

public void setInvalidity(boolean state)
Causes views to layout if this.doLayout is called


getViewGraphics

public java.awt.Graphics getViewGraphics()
Get the Graphics to draw to.

Parameters:
g - The new graphics to draw to.

getBackBuffer

public java.awt.Image getBackBuffer()
Specified by:
getBackBuffer in interface ApolloPanelI

getName

public java.lang.String getName()
Returns the name of the panel.

Overrides:
getName in class java.awt.Component

setName

public void setName(java.lang.String name)
Sets the name of the panel - is this used at all?

Overrides:
setName in class java.awt.Component
Parameters:
name - The name of the panel.

getViewAt

protected ViewI getViewAt(java.awt.Point p)
Get the View at a specified location in the Panel


setFocusView

protected void setFocusView(ViewI focus)
Sets the view which has 'focus'


getFocus

public ViewI getFocus()
Specified by:
getFocus in interface ApolloPanelI

handleDataLoadEvent

public boolean handleDataLoadEvent(DataLoadEvent evt)
Specified by:
handleDataLoadEvent in interface DataLoadListener

handleViewEvent

public boolean handleViewEvent(ViewEvent evt)
Specified by:
handleViewEvent in interface ViewListener

handleBaseFocusEvent

public boolean handleBaseFocusEvent(BaseFocusEvent evt)
Specified by:
handleBaseFocusEvent in interface BaseFocusListener

handleFeatureSelectionEvent

public boolean handleFeatureSelectionEvent(FeatureSelectionEvent evt)
FeatureSelectionListener - should this scroll to the selection? YES This sets Selection selection to the features in the selection event that are found in the views. When feature gets added to Selection, Selection tells it its selected. Repaint is called and features will paint themselves selected if they are so.

Specified by:
handleFeatureSelectionEvent in interface FeatureSelectionListener

highlightEdges

public void highlightEdges(Selection sel,
                           boolean state)
I believe this highlights edges in other views that line up with the edges in the selection


setEdgeMatching

public void setEdgeMatching(boolean state)

isShowingEdgeMatches

public boolean isShowingEdgeMatches()

clearEdges

public void clearEdges()

mouseWheelMoved

public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt)
Specified by:
mouseWheelMoved in interface java.awt.event.MouseWheelListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent evt)
MouseInputListener routines

Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent evt)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent evt)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

getPickViewFocus

public PickViewI getPickViewFocus()
If focus is a pick focus, returns the PickViewI


doMiddleClick

protected void doMiddleClick(java.awt.event.MouseEvent evt)

mousePressed

public void mousePressed(java.awt.event.MouseEvent evt)
When the mouse button comes down (but is not released) it may be either the right mouse button or the left. The middle mouse button is for clicks only. If it is the right button then popup a menu. If it is the left button then select and start dragging.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
evt -

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent evt)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

endViewDrag

public void endViewDrag(java.awt.event.MouseEvent evt)

endTierDrag

public void endTierDrag(java.awt.event.MouseEvent evt)

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent evt)
There are 2 types of dragging - tierDrag and viewDrag. Tier drag (shift-right mouse) moves the tier to a new place. "ViewDrag" (left mouse or shift left mouse) lets you drag results into the annotation area to create new genes or exons. Shift-dragging adds an exon to an existing gene (?).

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

doTierDrag

protected void doTierDrag(java.awt.event.MouseEvent evt)

doViewDrag

protected void doViewDrag(java.awt.event.MouseEvent evt)

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent evt)
Gets features under mouse and puts name and position in status bar

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

changeTierHeights

public void changeTierHeights(int change)

keyPressed

public void keyPressed(java.awt.event.KeyEvent evt)
Keyboard event listeners

Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent evt)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent evt)
Specified by:
keyTyped in interface java.awt.event.KeyListener

getRubberband

public RubberbandRectangle getRubberband()
Rubberband related methods


handleRubberbandEvent

public boolean handleRubberbandEvent(RubberbandEvent evt)
Specified by:
handleRubberbandEvent in interface RubberbandListener

getViews

public java.util.Vector getViews()
get the views Vector


getPickViews

public java.util.Vector getPickViews(java.awt.Rectangle bounds)
find pick views which are at least partly within a specified rectangle


getViews

public java.util.Vector getViews(java.awt.Rectangle bounds)
find non drag views which are at least partly within a specified rectangle


getViews

public java.util.Vector getViews(java.awt.Rectangle bounds,
                                 java.util.Vector viewVector)

getDragViews

public java.util.Vector getDragViews()

getDragView

public DragViewI getDragView()

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class javax.swing.JComponent

clearSelection

public void clearSelection()
Specified by:
clearSelection in interface ApolloPanelI

setStatusBar

public void setStatusBar(StatusBar sb)

getStatusBar

public StatusBar getStatusBar()

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

getStrandedZoomableApolloPanel

public StrandedZoomableApolloPanel getStrandedZoomableApolloPanel()
Specified by:
getStrandedZoomableApolloPanel in interface ApolloPanelI