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

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

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ChromPanelPicture (VistaApp vapp, String name)
void drawPicture (Graphics g, JComponent comp, long minx, long maxx)
void drawPicture (Graphics g)
String getFormattedXDisplayString (int currXPos)
long getXDisplay (int currXPos)
boolean isNearWest (int x)
boolean isNearEast (int x)
boolean isInside (int x)

Protected Member Functions

int convertX (double x)
int convertX (long x)

Protected Attributes

double ln10 = 2.3025850929940456840179914546844
double[] mbase = null
double base = 0
double minor = 0

Package Attributes

boolean nearWest = false
boolean nearEast = false
boolean inside = false

Detailed Description

Title: ChromPanelPicture

Description: draw relative position on the whole chromosome ruler

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

Company: LBNL

Author:
Michael Teplitskiy
Version:
1.0


Constructor & Destructor Documentation

gov::lbl::genome::gui::panel::ChromPanelPicture::ChromPanelPicture VistaApp  vapp,
String  name
[inline]
 

ChromPanelPicture

Parameters:
vapp VistaApp
name String


Member Function Documentation

int gov::lbl::genome::gui::panel::ChromPanelPicture::convertX long  x  )  [inline, protected]
 

convert a chromosome coordinate into a screen coordinate

Parameters:
x long
Returns:
int

Reimplemented from gov::lbl::genome::gui::Picture.

int gov::lbl::genome::gui::panel::ChromPanelPicture::convertX double  x  )  [inline, protected]
 

convert a chromosome coordinate into a screen coordinate

Parameters:
x double
Returns:
int

Reimplemented from gov::lbl::genome::gui::Picture.

void gov::lbl::genome::gui::panel::ChromPanelPicture::drawPicture Graphics  g  )  [inline]
 

draw chromosome ruler Picture

Parameters:
g Graphics

Reimplemented from gov::lbl::genome::gui::Picture.

void gov::lbl::genome::gui::panel::ChromPanelPicture::drawPicture Graphics  g,
JComponent  comp,
long  minx,
long  maxx
[inline]
 

draw chromosome ruler Picture

Parameters:
g Graphics
comp JComponent
minx long
maxx long

String gov::lbl::genome::gui::panel::ChromPanelPicture::getFormattedXDisplayString int  currXPos  )  [inline]
 

format the cursor position string

Parameters:
currXPos int
Returns:
String

Reimplemented from gov::lbl::genome::gui::Picture.

long gov::lbl::genome::gui::panel::ChromPanelPicture::getXDisplay int  currXPos  )  [inline]
 

convert screen coordinates into chromosome coordinates

Parameters:
currXPos int
Returns:
long

Reimplemented from gov::lbl::genome::gui::Picture.

boolean gov::lbl::genome::gui::panel::ChromPanelPicture::isInside int  x  )  [inline]
 

return true of mouse cursor is in the selected area

Parameters:
x int
Returns:
boolean
See also:
isNearWest(int)

isNearEast(int)

boolean gov::lbl::genome::gui::panel::ChromPanelPicture::isNearEast int  x  )  [inline]
 

return true if mouse cursor is near the east edge of the selected area

Parameters:
x int
Returns:
boolean
See also:
isNearWest(int)

isInside(int)

boolean gov::lbl::genome::gui::panel::ChromPanelPicture::isNearWest int  x  )  [inline]
 

return true if mouse cursor is near the west edge of the selected area

Parameters:
x int
Returns:
boolean
See also:
isNearEast(int)

isInside(int)


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