Public Member Functions | |
VistaPanel (VistaApp vapp) | |
VistaPanel (VistaApp vapp, int line) | |
VistaPanel (VistaApp vapp, PageFormat pf, int line) | |
VistaPanel (VistaApp vapp, PageFormat pf) | |
String | getFormattedXDisplayString (int currXPos) |
String | getFormattedXDisplayString (int currXPos, int line) |
int | getXDisplay (int currXPos) |
int | getXDisplay (int currXPos, int line) |
String | getFormattedNumberString (double x, int maxFracDigits) |
String | getFormattedNumberString (int x, int maxFracDigits) |
int | getHorizSize () |
int | getVertSize () |
void | paintComponent (Graphics g) |
Graphics2D | createImage () |
void | removeImage () |
void | setImage (BufferedImage im) |
int | getStringWidth (String s, Font f) |
String | shortenString (String s, Font f, int width) |
Protected Member Functions | |
int | convertX (long x) |
int | convertX (double x) |
Protected Attributes | |
boolean | wait_cursor = false |
int | topSpace = UIConstants.COOR_DISPLAY_HEIGHT |
int | bottomSpace = UIConstants.COOR_DISPLAY_HEIGHT |
int | leftSpace = 0 |
int | rightSpace = 0 |
int | vertSize |
int | horizSize |
int | top |
int | bottom |
int | height |
long | minX |
long | maxX |
int | offsetWidth = UIConstants.GRAPH_OFFSET_WIDTH |
double | pixelWidth |
DecimalFormat | df = new DecimalFormat() |
Cursor | waitCursor = new Cursor(Cursor.WAIT_CURSOR) |
BufferedImage | image = null |
Graphics2D | g2d = null |
Description: Parent class for many panels
Copyright: Copyright (c) 2002 Ernest Orlando Lawrence Berkeley National Laboratory
Company: LBNL
|
|
|
|
|
|
|
|
|
convert chromosome coordinates into screen (panel) coordinates
|
|
convert chromosome coordinates into screen (panel) coordinates
|
|
create transparent bitmap image. It's dimentions are taken from the panel size. Return Graphics2D
Reimplemented in gov::lbl::genome::gui::GeneralGraphComp, gov::lbl::genome::gui::panel::AnnotationPanel, gov::lbl::genome::gui::panel::AxisPanel, gov::lbl::genome::gui::panel::ChromPanel, gov::lbl::genome::gui::panel::ContigPanel, gov::lbl::genome::gui::panel::RepeatPanel, and gov::lbl::genome::gui::panel::XAxisPanel. |
|
return formattes string
|
|
return formatted string
|
|
This method converts an x-coordinate on the data display panel to an x-coordinate on the graph and return formatted string.
|
|
This method converts an x-coordinate on the data display panel to an x-coordinate on the graph and return formatted string.
|
|
return adjusted panel width
|
|
return width in pixels for the strind s and font f
|
|
return adjusted panel height
|
|
convert screen coordinates into chromosome coordinates
|
|
convert screen coordinates into chromosome coordinates
|
|
paintComponent overload JPanel paintComponent. Prepare some parameters. If image does not exist - create it first. Draw image.
Reimplemented in gov::lbl::genome::gui::GeneralGraphComp, and gov::lbl::genome::gui::panel::TracerPanel. |
|
remove image. New image will be created during next paintComponent() call Reimplemented in gov::lbl::genome::gui::GeneralGraphComp, and gov::lbl::genome::gui::panel::TracerPanel. |
|
set new image created by somebody else. Dont forget to call repaint(); |
|
shorten string is useful if string is long and does not fit in width.
|