Main Page | Namespace List | Class Hierarchy | Class List | Class Members | Related Pages

gov::lbl::genome::gui::panel::TracerPanel Class Reference

Inheritance diagram for gov::lbl::genome::gui::panel::TracerPanel:

Inheritance graph
[legend]
Collaboration diagram for gov::lbl::genome::gui::panel::TracerPanel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TracerPanel (VGBPanel dataDisplayPanel, DisplayPanel displayPanel, int line)
void paintComponent (Graphics g)
void hideCursor ()
void showCursor ()
void defaultMouseCursor ()
void crossMouseCursor ()
void waitMouseCursor ()
void invisibleMouseCursor ()
void mouseMoved (MouseEvent e)
void mouseEntered (MouseEvent e)
void mouseExited (MouseEvent e)
void mousePressed (MouseEvent e)
void mouseReleased (MouseEvent e)
void mouseClicked (MouseEvent e)
void mouseDragged (MouseEvent e)
long getChromX (int displayX)
long getChromX (int displayX, int line)
void popupOff ()
boolean isPopup ()
void redispatchMouseEvent (MouseEvent e)
void visible ()
boolean getEnabled ()
void reset ()
void drawGreenBar (long start, long end)
void createBarImage ()
void createTracerImage ()
void removeImage ()
void removeBarImage ()
void setDragged (boolean dr)

Public Attributes

boolean nomouse = false

Protected Attributes

BufferedImage tracerImage = null
BufferedImage barImage = null
TracerPanel parent = null
Vector children = null

Detailed Description

Title: TracerPanel

Description: Draw red cursor line or selection bar,read screen coordinates

Copyright: Copyright (c) 2003 Ernest Orlando Lawrence Berkeley National Laboratory

Company: LBNL

Author:
Michael Teplitsky
Version:
1.0


Constructor & Destructor Documentation

gov::lbl::genome::gui::panel::TracerPanel::TracerPanel VGBPanel  dataDisplayPanel,
DisplayPanel  displayPanel,
int  line
[inline]
 

TracerPanel

Parameters:
dataDisplayPanel VGBPanel
displayPanel DisplayPanel
line int


Member Function Documentation

void gov::lbl::genome::gui::panel::TracerPanel::createBarImage  )  [inline]
 

create a semi-transparent green bar image

void gov::lbl::genome::gui::panel::TracerPanel::createTracerImage  )  [inline]
 

Create tracer image of correspondig size

void gov::lbl::genome::gui::panel::TracerPanel::crossMouseCursor  )  [inline]
 

show crosshair mouse cursor

void gov::lbl::genome::gui::panel::TracerPanel::defaultMouseCursor  )  [inline]
 

show dafault mouse cursor

void gov::lbl::genome::gui::panel::TracerPanel::drawGreenBar long  start,
long  end
[inline]
 

draw semitransparent GreenBar

Parameters:
start long
end long

long gov::lbl::genome::gui::panel::TracerPanel::getChromX int  displayX,
int  line
[inline]
 

convert screen coordinate into the chromosome coordinate

Parameters:
displayX int
line int
Returns:
long

long gov::lbl::genome::gui::panel::TracerPanel::getChromX int  displayX  )  [inline]
 

convert screen coordinate into the chromosome coordinate

Parameters:
displayX int
Returns:
long

boolean gov::lbl::genome::gui::panel::TracerPanel::getEnabled  )  [inline]
 

getEnabled

Returns:
boolean

void gov::lbl::genome::gui::panel::TracerPanel::hideCursor  )  [inline]
 

hide tracer

void gov::lbl::genome::gui::panel::TracerPanel::invisibleMouseCursor  )  [inline]
 

Hide mouse cursor

boolean gov::lbl::genome::gui::panel::TracerPanel::isPopup  )  [inline]
 

return true if ready to show a popup menu

Returns:
boolean

void gov::lbl::genome::gui::panel::TracerPanel::mouseClicked MouseEvent  e  )  [inline]
 

Just do nothing

Parameters:
e MouseEvent

void gov::lbl::genome::gui::panel::TracerPanel::mouseDragged MouseEvent  e  )  [inline]
 

draw selected area whem mouse is dragged

Parameters:
e MouseEvent

void gov::lbl::genome::gui::panel::TracerPanel::mouseEntered MouseEvent  e  )  [inline]
 

mouseEntered

Parameters:
e MouseEvent

void gov::lbl::genome::gui::panel::TracerPanel::mouseExited MouseEvent  e  )  [inline]
 

hide tracer

Parameters:
e MouseEvent

void gov::lbl::genome::gui::panel::TracerPanel::mouseMoved MouseEvent  e  )  [inline]
 

show tracer coordinates

Parameters:
e MouseEvent

void gov::lbl::genome::gui::panel::TracerPanel::mousePressed MouseEvent  e  )  [inline]
 

Prepare to draw selection or to show a popup menu

Parameters:
e MouseEvent

void gov::lbl::genome::gui::panel::TracerPanel::mouseReleased MouseEvent  e  )  [inline]
 

process selected area and update position

Parameters:
e MouseEvent
See also:
gov.lbl.genome.gui.panel.DisplayPanel::updatePosition()

void gov::lbl::genome::gui::panel::TracerPanel::paintComponent Graphics  g  )  [inline]
 

draw tracer or green bar

Parameters:
g Graphics

Reimplemented from gov::lbl::genome::gui::panel::VistaPanel.

void gov::lbl::genome::gui::panel::TracerPanel::popupOff  )  [inline]
 

switch popup off

void gov::lbl::genome::gui::panel::TracerPanel::redispatchMouseEvent MouseEvent  e  )  [inline]
 

push mouse event inside the panel structure

Parameters:
e MouseEvent
See also:
gov.lbl.genome.gui.panel.VGBPanel::dispatchEvent(MouseEvent)

void gov::lbl::genome::gui::panel::TracerPanel::removeBarImage  )  [inline]
 

set green bar image == null

void gov::lbl::genome::gui::panel::TracerPanel::removeImage  )  [inline]
 

remove tracer image

Reimplemented from gov::lbl::genome::gui::panel::VistaPanel.

void gov::lbl::genome::gui::panel::TracerPanel::reset  )  [inline]
 

reset some variables and repaint

void gov::lbl::genome::gui::panel::TracerPanel::setDragged boolean  dr  )  [inline]
 

Is called when mouse button is pressed and mouse moved

Parameters:
dr boolean

void gov::lbl::genome::gui::panel::TracerPanel::showCursor  )  [inline]
 

show tracer

void gov::lbl::genome::gui::panel::TracerPanel::visible  )  [inline]
 

visible

void gov::lbl::genome::gui::panel::TracerPanel::waitMouseCursor  )  [inline]
 

show wait mouse cursos


The documentation for this class was generated from the following file:
Generated on Wed Jan 19 17:02:48 2005 by  doxygen 1.3.9.1