

Public Member Functions | |
| Picture (VistaApp vapp, String name) | |
| BufferedImage | getImage () |
| BufferedImage | getImage (JComponent comp, int i) |
| BufferedImage | getImage (JComponent comp) |
| BufferedImage | getImage (PageFormat pf) |
| BufferedImage | getImage (int width, int height) |
| void | drawPicture (Graphics gr, JComponent comp, int i) |
| void | drawPicture (Graphics gr, JComponent comp) |
| void | drawPicture (Graphics gr, PageFormat pf) |
| void | drawPicture (Graphics gr, PageFormat pf, int line) |
| void | drawPicture (Graphics gr, int width, int height) |
| void | drawPicture (Graphics gr) |
| void | debug (String s) |
| void | setDebug (boolean d) |
| int | getWidth () |
| int | getHeight () |
| int | getMaxWidth () |
| int | getMaxHeight () |
| int | getImageableWidth () |
| int | getImageableHeight () |
| int | getMarginLeft () |
| int | getMarginRight () |
| int | getMarginTop () |
| int | getMarginBottom () |
| void | setSize () |
| void | setSize (JComponent comp) |
| void | setSize (PageFormat pf) |
| void | setSize (int width, int height) |
| void | setMargins (PageFormat pf) |
| void | setMargins (int left, int top, int right, int bottom) |
| void | setImageableArea (PageFormat pf) |
| void | setImageableArea (int left, int top, int width, int height) |
| String | toString () |
| void | translate (int x, int y) |
| void | translate (int x, int y, int x1, int y1) |
| void | setMarginRight (int x) |
| int | getStringWidth (String s, Font f) |
| String | shortenString (String s, Font f, int width) |
| int | X (int x) |
| int | Y (int y) |
| String | getFormattedNumberString (double x, int maxFracDigits) |
| String | getFormattedNumberString (int x, int maxFracDigits) |
| String | getFormattedXDisplayString (int currXPos) |
| long | getXDisplay (int currXPos) |
| void | setMinX (long minx) |
| void | setMaxX (long maxx) |
| void | setMinMaxX (long minx, long maxx) |
| void | setMinX (int i) |
| void | setMaxX (int i) |
| void | setMinMaxX (int i) |
| void | setComponent (JComponent comp) |
| void | setPage (PageFormat pf) |
| long | getDX () |
| double | getRelX (long x) |
| double | getRelX (double x) |
| void | setZ (int Z) |
Protected Member Functions | |
| int | convertX (double x) |
| int | convertX (long x) |
Protected Attributes | |
| VistaApp | va = null |
| int | width = 10 |
| int | height = 10 |
| int | imageableWidth |
| int | imageableHeight |
| int | marginLeft = 0 |
| int | marginRight = 0 |
| int | marginTop = 0 |
| int | marginBottom = 0 |
| int | maxWidth |
| int | maxHeight |
| double | pixelWidth = 0 |
| Graphics | g = null |
| Graphics2D | g2d = null |
| DecimalFormat | df = new DecimalFormat() |
| String | name = "picture" |
| boolean | debug = false |
| boolean | G2D = false |
| JComponent | component |
| BufferedImage | image = null |
| long | minX = UIConstants.DEFAULT_MIN_X |
| long | maxX = UIConstants.DEFAULT_MAX_X |
| boolean | tooSmall = false |
| int | z = 0 |
Description: Some panel require intermediate class for drawing. This class provides basic methods for drawing pictures
Copyright: Copyright (c) 2002 Ernest Orlando Lawrence Berkeley National Laboratory
Company: LBNL
|
||||||||||||
|
|
|
|
convert cromosome coordinate to the picture coordinate
Reimplemented in gov::lbl::genome::gui::panel::ChromPanelPicture. |
|
|
convert cromosome coordinate to the picture coordinate
Reimplemented in gov::lbl::genome::gui::panel::ChromPanelPicture. |
|
|
pring debuging output
|
|
|
||||||||||||||||
|
draw Picture
|
|
||||||||||||||||
|
draw Picture
Reimplemented in gov::lbl::genome::gui::panel::ContigPanelPicture. |
|
||||||||||||
|
draw Picture
|
|
||||||||||||
|
draw Picture
Reimplemented in gov::lbl::genome::gui::panel::AnnotationPanelPicture, and gov::lbl::genome::gui::panel::ContigPanelPicture. |
|
||||||||||||||||
|
draw Picture
|
|
|
return maxX-minX
|
|
||||||||||||
|
return Formatted Number String
|
|
||||||||||||
|
return Formatted Number String
|
|
|
return Formatted String converted to the chromosome coordinates
Reimplemented in gov::lbl::genome::gui::panel::ChromPanelPicture. |
|
|
return picture Height
|
|
||||||||||||
|
return new Image with the size specified by parameters
|
|
|
return new Image with the size equals to the page size
|
|
|
return new Image with the size equals to the componet size
|
|
||||||||||||
|
return new Image with the size equals to the componet size
|
|
|
return new Image with default size
|
|
|
return height of the Imageable rectangle
|
|
|
return width of the Imageable rectangle
|
|
|
return bottom Margin
|
|
|
return left Margin
|
|
|
return right Margin
|
|
|
return top Margin
|
|
|
return Max drawable Height
|
|
|
return tMax drawable Width
|
|
|
eturn relative position from the begining
|
|
|
return relative position from the begining
|
|
||||||||||||
|
return Width (in pixels) of the string
|
|
|
return picture Width
|
|
|
convert the parameter into chromosome coordinates
Reimplemented in gov::lbl::genome::gui::panel::ChromPanelPicture. |
|
|
set Component
|
|
|
set Debuging mode
|
|
||||||||||||||||||||
|
set Imageable Area from the parameters
|
|
|
setI mageable Area from the pages Imageable area
|
|
|
set right Margin
|
|
||||||||||||||||||||
|
set Margins from the parameters
|
|
|
set Margins from the page margins
|
|
|
set Max X
|
|
|
set Max X
|
|
|
set Min and Max X
|
|
||||||||||||
|
set Min and Max X
|
|
|
set Min X
|
|
|
set Min X
|
|
|
set Page
|
|
||||||||||||
|
set Size from the parameters
|
|
|
set Size from the page
|
|
|
set size from the component
|
|
|
set size from the default component |
|
|
this parameter can be 0 or 1. Usualy it's 0, but because of the "off by one" bug in the PDF library, all "fill" operations require corrected coordinates.
|
|
||||||||||||||||
|
remove last characters from the string until its width is less or equal the maximum parameter
|
|
|
return summary string
|
|
||||||||||||||||||||
|
change size and position of the imageable area
|
|
||||||||||||
|
translate imageable area
|
|
|
correct x coordinates
|
|
|
correct y coordinates
|
1.3.9.1