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

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

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DisplayPanel (VistaApp vapp)
void refreshAnnotations ()
void refreshAnnotations (Status status)
void updateSelectList ()
synchronized void removeGraph (int pos)
synchronized Vector getVisibleCurveNames ()
synchronized void removeGraph (String name)
void resetPrintedGraphs ()
void addPrintedGraph (int pos)
void removeAllGraphs ()
boolean removeAllSelectedGraphs ()
Collection getAllSelectedGraphs ()
void unselectAllGraphs ()
void setSettings ()
void setDetails ()
void setArrows ()
void multiSelectGraphs ()
GeneralGraphView getGraph (int pos)
Collection getAllGraphs ()
Vector getAllCurves ()
Vector getAllCurveInfos ()
RepeatPanel getRepeatPanel ()
AnnotationPanel getAnnotationPanel ()
synchronized void replaceGraph (GeneralGraphView graph, int i)
synchronized void swapGraphs (int graph1, int graph2)
synchronized void moveSelectedUp ()
synchronized void moveSelectedDown ()
int[] getSelectedIndices ()
void setSelectedIndices (int[] indices)
void rebuildPanel ()
void addGraph (GeneralGraphView graph)
void removeDataImages ()
void refreshGraphs ()
Vector getStatistics ()
Dimension getGraphPanelSize ()
TracerPanel getTracerPanel ()
void setTracerPanel (TracerPanel tp)
JPopupMenu getPopup ()
int getNumberOfGraphs ()
int getPanelCapacity ()
void addCurves (Status status)
void addDefaultCurve (GenomeInfo genome)
void componentResized (ComponentEvent e)
void componentMoved (ComponentEvent e)
void componentShown (ComponentEvent e)
void componentHidden (ComponentEvent e)
int print (Graphics g, PageFormat pf, int pi) throws PrinterException
void drawContent (Graphics g, int width, int height)
int getPrintHeight (int graphs, int lines)
void drawContent (Graphics g, PageFormat pf)
void repaintTracerPanels ()
void setXBorders (int x)
void resetXBorders ()
long getChromDX ()
boolean updatePosition ()
void setPrintCapacity (int graphs, int lines)
void setFixedRows (int rows)
int getUniqOrganisms ()
int getFirstSelectedIndex ()
void selectGraph (int index)
int getLastSelectedIndex ()
void hideGraph (String curveName)
void showGraph (String curveName)

Public Attributes

int pages = 0
int currentPage = 0
int prevPage = 0
int curvesPerPage = 0
boolean inTracerPanel = false
boolean dragged = false
boolean drawbar = false
int xstart = 0
int xend = 0
int startTracerPanel = 0
int endTracerPanel = 0
int activeTracerPanel = 0

Protected Member Functions

void annotationLegend (Graphics g, Color color, int x, int y, String name)
void repeatLegend (Graphics g, Color color, int x, int y, String name)
void contigLegend (Graphics g, Color color, int x, int y, String name)

Protected Attributes

AxisPanel axisPanel = new AxisPanel(va)
Thread refreshThread = null

Package Attributes

int curveNum = -1
int canAdd = 0
Vector tracerPanels = null
ArrowsPanel arrowsPanel = null

Detailed Description

Title: DisplayPanel

Description: This panal is a container for all graphical content

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

Company: LBNL

Author:
Lila Tretikov, Michael Teplitskiy
Version:
1.0


Constructor & Destructor Documentation

gov::lbl::genome::gui::panel::DisplayPanel::DisplayPanel VistaApp  vapp  )  [inline]
 

DisplayPanel

Parameters:
vapp VistaApp


Member Function Documentation

void gov::lbl::genome::gui::panel::DisplayPanel::addCurves Status  status  )  [inline]
 

add Curves that are saved in status

Parameters:
status Status

void gov::lbl::genome::gui::panel::DisplayPanel::addDefaultCurve GenomeInfo  genome  )  [inline]
 

add Default Curves for the genome

Parameters:
genome GenomeInfo

void gov::lbl::genome::gui::panel::DisplayPanel::addGraph GeneralGraphView  graph  )  [inline]
 

add new Graph to the and

Parameters:
graph GeneralGraphView

void gov::lbl::genome::gui::panel::DisplayPanel::addPrintedGraph int  pos  )  [inline]
 

add graph to a printedGraph list.

Parameters:
pos int

void gov::lbl::genome::gui::panel::DisplayPanel::annotationLegend Graphics  g,
Color  color,
int  x,
int  y,
String  name
[inline, protected]
 

draw annotation legend

Parameters:
g Graphics
color Color
x int
y int
name String

void gov::lbl::genome::gui::panel::DisplayPanel::componentResized ComponentEvent  e  )  [inline]
 

Logic of this method is the following: If number of rows is fixed and only vertical size changed - do nothing. In all other cases try to rebuild panel to show maximum details

Parameters:
e ComponentEvent

void gov::lbl::genome::gui::panel::DisplayPanel::contigLegend Graphics  g,
Color  color,
int  x,
int  y,
String  name
[inline, protected]
 

draw contig legend

Parameters:
g Graphics
color Color
x int
y int
name String

void gov::lbl::genome::gui::panel::DisplayPanel::drawContent Graphics  g,
PageFormat  pf
[inline]
 

print content on the page (printer, PDF or image)

Parameters:
g Graphics
pf PageFormat

void gov::lbl::genome::gui::panel::DisplayPanel::drawContent Graphics  g,
int  width,
int  height
[inline]
 

draw Content in area with specified size

Parameters:
g Graphics
width int
height int
See also:
drawContent(Graphics, PageFormat)

Vector gov::lbl::genome::gui::panel::DisplayPanel::getAllCurveInfos  )  [inline]
 

return vector with all CurveInfo

See also:
gov.lbl.genome.common.CurveInfo
Returns:
Vector

Vector gov::lbl::genome::gui::panel::DisplayPanel::getAllCurves  )  [inline]
 

return all curves in all graphs

Returns:
Vector

Collection gov::lbl::genome::gui::panel::DisplayPanel::getAllGraphs  )  [inline]
 

return All Graphs

Returns:
Collection

Collection gov::lbl::genome::gui::panel::DisplayPanel::getAllSelectedGraphs  )  [inline]
 

return list of All Selected Graphs

Returns:
Collection

AnnotationPanel gov::lbl::genome::gui::panel::DisplayPanel::getAnnotationPanel  )  [inline]
 

return Annotation Panel

Returns:
AnnotationPanel

long gov::lbl::genome::gui::panel::DisplayPanel::getChromDX  )  [inline]
 

return number of selected points

Returns:
long

int gov::lbl::genome::gui::panel::DisplayPanel::getFirstSelectedIndex  )  [inline]
 

return index of the first (from top) selected graph

Returns:
int
See also:
getLastSelectedIndex()

GeneralGraphView gov::lbl::genome::gui::panel::DisplayPanel::getGraph int  pos  )  [inline]
 

get Graph

Parameters:
pos int
Returns:
GeneralGraphView

Dimension gov::lbl::genome::gui::panel::DisplayPanel::getGraphPanelSize  )  [inline]
 

return dimension of the graph panel

Returns:
Dimension

int gov::lbl::genome::gui::panel::DisplayPanel::getLastSelectedIndex  )  [inline]
 

return index of the last (from top) selected graph

Returns:
int
See also:
getFirstSelectedIndex()

int gov::lbl::genome::gui::panel::DisplayPanel::getNumberOfGraphs  )  [inline]
 

return Number Of Graphs

Returns:
int

int gov::lbl::genome::gui::panel::DisplayPanel::getPanelCapacity  )  [inline]
 

return number of rows that would be drawn in the panel

Returns:
int

JPopupMenu gov::lbl::genome::gui::panel::DisplayPanel::getPopup  )  [inline]
 

return Popup menu

Returns:
JPopupMenu

int gov::lbl::genome::gui::panel::DisplayPanel::getPrintHeight int  graphs,
int  lines
[inline]
 

return min height that is necessary to fit all the content

Parameters:
graphs int
lines int
Returns:
int

RepeatPanel gov::lbl::genome::gui::panel::DisplayPanel::getRepeatPanel  )  [inline]
 

return Repeat Panel

Returns:
RepeatPanel

int [] gov::lbl::genome::gui::panel::DisplayPanel::getSelectedIndices  )  [inline]
 

return numbers of selected lines in the bottom panel curve list

Returns:
int[]
See also:
setSelectedIndices(int[])

Vector gov::lbl::genome::gui::panel::DisplayPanel::getStatistics  )  [inline]
 

return conservation Statistics for all curves

Returns:
Vector
See also:
gov.lbl.genome.gui.VistaCurveView::getStatistics()

gov.lbl.genome.gui.GeneralGraphView::getStatistics()

TracerPanel gov::lbl::genome::gui::panel::DisplayPanel::getTracerPanel  )  [inline]
 

return Tracer Panel

Returns:
TracerPanel

int gov::lbl::genome::gui::panel::DisplayPanel::getUniqOrganisms  )  [inline]
 

return number uniq organisms

Returns:
int

synchronized Vector gov::lbl::genome::gui::panel::DisplayPanel::getVisibleCurveNames  )  [inline]
 

return names of visible Curves

Returns:
Vector

void gov::lbl::genome::gui::panel::DisplayPanel::hideGraph String  curveName  )  [inline]
 

hide Graph

Parameters:
curveName String

synchronized void gov::lbl::genome::gui::panel::DisplayPanel::moveSelectedDown  )  [inline]
 

move Selected Graphs Down

See also:
moveSelectedUp()

synchronized void gov::lbl::genome::gui::panel::DisplayPanel::moveSelectedUp  )  [inline]
 

move Selected Graphs Up

See also:
moveSelectedDown()

void gov::lbl::genome::gui::panel::DisplayPanel::multiSelectGraphs  )  [inline]
 

select more than one graph

int gov::lbl::genome::gui::panel::DisplayPanel::print Graphics  g,
PageFormat  pf,
int  pi
throws PrinterException [inline]
 

print content

Parameters:
g Graphics
pf PageFormat
pi int
Returns:
int
Exceptions:
PrinterException 

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

void gov::lbl::genome::gui::panel::DisplayPanel::rebuildPanel  )  [inline]
 

this method is responsible for positioning of all graphs, annotations, axis etc.

void gov::lbl::genome::gui::panel::DisplayPanel::refreshAnnotations Status  status  )  [inline]
 

set Annotations and repeats from Status.

Parameters:
status Status

void gov::lbl::genome::gui::panel::DisplayPanel::refreshAnnotations  )  [inline]
 

request new information from the server for Annotations and repeats

void gov::lbl::genome::gui::panel::DisplayPanel::refreshGraphs  )  [inline]
 

request new data from the server for all graphs and repaint

void gov::lbl::genome::gui::panel::DisplayPanel::removeAllGraphs  )  [inline]
 

remove All Graphs

boolean gov::lbl::genome::gui::panel::DisplayPanel::removeAllSelectedGraphs  )  [inline]
 

remove All Selected Graphs

Returns:
boolean

void gov::lbl::genome::gui::panel::DisplayPanel::removeDataImages  )  [inline]
 

remove images for all graphs, annotation panel, repeat panel and axis panel

synchronized void gov::lbl::genome::gui::panel::DisplayPanel::removeGraph String  name  )  [inline]
 

remove Graph

Parameters:
name String

synchronized void gov::lbl::genome::gui::panel::DisplayPanel::removeGraph int  pos  )  [inline]
 

remove Graph

Parameters:
pos int

void gov::lbl::genome::gui::panel::DisplayPanel::repaintTracerPanels  )  [inline]
 

repaint all TracerPanels

void gov::lbl::genome::gui::panel::DisplayPanel::repeatLegend Graphics  g,
Color  color,
int  x,
int  y,
String  name
[inline, protected]
 

draw repeat legend

Parameters:
g Graphics
color Color
x int
y int
name String

synchronized void gov::lbl::genome::gui::panel::DisplayPanel::replaceGraph GeneralGraphView  graph,
int  i
[inline]
 

replace Graph at the "i" position by another graph

Parameters:
graph GeneralGraphView
i int

void gov::lbl::genome::gui::panel::DisplayPanel::resetPrintedGraphs  )  [inline]
 

clear list of printed graphs

void gov::lbl::genome::gui::panel::DisplayPanel::resetXBorders  )  [inline]
 

resetXBorders

See also:
gov.lbl.genome.gui.panel.TracerPanel::reset()

void gov::lbl::genome::gui::panel::DisplayPanel::selectGraph int  index  )  [inline]
 

select Graph in index position

Parameters:
index int

void gov::lbl::genome::gui::panel::DisplayPanel::setArrows  )  [inline]
 

set buttons with Arrows in the bottom panel

void gov::lbl::genome::gui::panel::DisplayPanel::setDetails  )  [inline]
 

Enable or disable detailsAction

See also:
gov.lbl.genome.gui.action.DetailsAction

void gov::lbl::genome::gui::panel::DisplayPanel::setFixedRows int  rows  )  [inline]
 

set number of rows to show in the Display Panel

Parameters:
rows int

void gov::lbl::genome::gui::panel::DisplayPanel::setPrintCapacity int  graphs,
int  lines
[inline]
 

Set number of graphs and lines to be printed

Parameters:
graphs int
lines int
See also:
gov.lbl.genome.gui.action.PrintAction

void gov::lbl::genome::gui::panel::DisplayPanel::setSelectedIndices int[]  indices  )  [inline]
 

select lines in the bottom panel curve list

Parameters:
indices int[]
See also:
getSelectedIndices()

void gov::lbl::genome::gui::panel::DisplayPanel::setSettings  )  [inline]
 

SettingsAction can be enabled only if all curves are of the same type

See also:
gov.lbl.genome.gui.action.SettingsAction

void gov::lbl::genome::gui::panel::DisplayPanel::setTracerPanel TracerPanel  tp  )  [inline]
 

set Tracer Panel

Parameters:
tp TracerPanel

void gov::lbl::genome::gui::panel::DisplayPanel::setXBorders int  x  )  [inline]
 

set Borders of the selected region

Parameters:
x int

void gov::lbl::genome::gui::panel::DisplayPanel::showGraph String  curveName  )  [inline]
 

show Graph

Parameters:
curveName String

synchronized void gov::lbl::genome::gui::panel::DisplayPanel::swapGraphs int  graph1,
int  graph2
[inline]
 

swap 2 selected Graphs graph1<=>graph2

Parameters:
graph1 int
graph2 int

void gov::lbl::genome::gui::panel::DisplayPanel::unselectAllGraphs  )  [inline]
 

unselect all Graphs

boolean gov::lbl::genome::gui::panel::DisplayPanel::updatePosition  )  [inline]
 

update Position

Returns:
boolean
See also:
gov.lbl.genome.gui.VistaApp::updatePosition(long,long)

void gov::lbl::genome::gui::panel::DisplayPanel::updateSelectList  )  [inline]
 

update Select List in the bottom panel curve list


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