|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.lbl.genome.gui.Picture
gov.lbl.genome.gui.panel.ChromPanelPicture
public class ChromPanelPicture
Title: ChromPanelPicture
Description: draw relative position on the whole chromosome ruler
Copyright: Copyright (c) 2002 Ernest Orlando Lawrence Berkeley National Laboratory
Company: LBNL
| Field Summary | |
|---|---|
protected double |
base
|
protected double |
ln10
|
protected double[] |
mbase
|
protected double |
minor
|
| Fields inherited from class gov.lbl.genome.gui.Picture |
|---|
component, debug, df, g, g2d, G2D, height, image, imageableHeight, imageableWidth, marginBottom, marginLeft, marginRight, marginTop, maxHeight, maxWidth, name, pixelWidth, tooSmall, va, width, z |
| Constructor Summary | |
|---|---|
ChromPanelPicture(VistaApp vapp,
java.lang.String name)
ChromPanelPicture |
|
| Method Summary | |
|---|---|
protected int |
convertX(double x)
convert a chromosome coordinate into a screen coordinate |
protected int |
convertX(long x)
convert a chromosome coordinate into a screen coordinate |
void |
drawPicture(java.awt.Graphics g)
draw chromosome ruler Picture |
void |
drawPicture(java.awt.Graphics g,
javax.swing.JComponent comp,
long minx,
long maxx)
draw chromosome ruler Picture |
java.lang.String |
getFormattedXDisplayString(int currXPos)
format the cursor position string |
long |
getXDisplay(int currXPos)
convert screen coordinates into chromosome coordinates |
boolean |
isInside(int x)
return true of mouse cursor is in the selected area |
boolean |
isNearEast(int x)
return true if mouse cursor is near the east edge of the selected area |
boolean |
isNearWest(int x)
return true if mouse cursor is near the west edge of the selected area |
| Methods inherited from class gov.lbl.genome.gui.Picture |
|---|
debug, drawPicture, drawPicture, drawPicture, drawPicture, drawPicture, getDX, getFormattedNumberString, getFormattedNumberString, getHeight, getImage, getImage, getImage, getImage, getImage, getImageableHeight, getImageableWidth, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxWidth, getRelX, getRelX, getStringWidth, getWidth, setComponent, setDebug, setImageableArea, setImageableArea, setMarginRight, setMargins, setMargins, setMaxX, setMaxX, setMinMaxX, setMinMaxX, setMinX, setMinX, setPage, setSize, setSize, setSize, setSize, setZ, shortenString, toString, translate, translate, X, Y |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double ln10
protected double[] mbase
protected double base
protected double minor
| Constructor Detail |
|---|
public ChromPanelPicture(VistaApp vapp,
java.lang.String name)
vapp - VistaAppname - String| Method Detail |
|---|
public void drawPicture(java.awt.Graphics g,
javax.swing.JComponent comp,
long minx,
long maxx)
g - Graphicscomp - JComponentminx - longmaxx - longpublic void drawPicture(java.awt.Graphics g)
drawPicture in class Pictureg - Graphicsprotected int convertX(double x)
convertX in class Picturex - double
protected int convertX(long x)
convertX in class Picturex - long
public java.lang.String getFormattedXDisplayString(int currXPos)
getFormattedXDisplayString in class PicturecurrXPos - int
public long getXDisplay(int currXPos)
getXDisplay in class PicturecurrXPos - int
public boolean isNearWest(int x)
x - int
isNearEast(int),
isInside(int)public boolean isNearEast(int x)
x - int
isNearWest(int),
isInside(int)public boolean isInside(int x)
x - int
isNearWest(int),
isNearEast(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||