|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
gov.lbl.genome.gui.panel.VGBPanel
gov.lbl.genome.gui.panel.VistaPanel
gov.lbl.genome.gui.panel.DisplayPanel
public class DisplayPanel
Title: DisplayPanel
Description: This panal is a container for all graphical content
Copyright: Copyright (c) 2002 Ernest Orlando Lawrence Berkeley National Laboratory
Company: LBNL
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
int |
activeTracerPanel
|
protected AxisPanel |
axisPanel
|
int |
currentPage
|
int |
curvesPerPage
|
boolean |
dragged
|
boolean |
drawbar
|
int |
endTracerPanel
|
boolean |
inTracerPanel
|
int |
pages
|
int |
prevPage
|
protected java.lang.Thread |
refreshThread
|
int |
startTracerPanel
|
int |
xend
|
int |
xstart
|
Fields inherited from class gov.lbl.genome.gui.panel.VistaPanel |
---|
bottom, bottomSpace, df, g2d, height, horizSize, image, leftSpace, maxX, minX, offsetWidth, pixelWidth, rightSpace, top, topSpace, vertSize, wait_cursor, waitCursor |
Fields inherited from class gov.lbl.genome.gui.panel.VGBPanel |
---|
commonParameters, debug, lineNumber, name, parameters, va |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.print.Printable |
---|
NO_SUCH_PAGE, PAGE_EXISTS |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DisplayPanel(VistaApp vapp)
DisplayPanel |
Method Summary | |
---|---|
void |
addCurves(Status status)
add Curves that are saved in status |
void |
addDefaultCurve(GenomeInfo genome)
add Default Curves for the genome |
void |
addGraph(GeneralGraphView graph)
add new Graph to the and |
void |
addPrintedGraph(int pos)
add graph to a printedGraph list. |
protected void |
annotationLegend(java.awt.Graphics g,
java.awt.Color color,
int x,
int y,
java.lang.String name)
draw annotation legend |
void |
componentHidden(java.awt.event.ComponentEvent e)
|
void |
componentMoved(java.awt.event.ComponentEvent e)
|
void |
componentResized(java.awt.event.ComponentEvent e)
Logic of this method is the following: If number of rows is fixed and only vertical size changed - do nothing. |
void |
componentShown(java.awt.event.ComponentEvent e)
|
protected void |
contigLegend(java.awt.Graphics g,
java.awt.Color color,
int x,
int y,
java.lang.String name)
draw contig legend |
void |
drawContent(java.awt.Graphics g,
int width,
int height)
draw Content in area with specified size |
void |
drawContent(java.awt.Graphics g,
java.awt.print.PageFormat pf)
print content on the page (printer, PDF or image) |
java.util.Vector |
getAllCurveInfos()
return vector with all CurveInfo |
java.util.Vector |
getAllCurves()
return all curves in all graphs |
java.util.Collection |
getAllGraphs()
return All Graphs |
java.util.Collection |
getAllSelectedGraphs()
return list of All Selected Graphs |
AnnotationPanel |
getAnnotationPanel()
return Annotation Panel |
long |
getChromDX()
return number of selected points |
int |
getFirstSelectedIndex()
return index of the first (from top) selected graph |
GeneralGraphView |
getGraph(int pos)
get Graph |
java.awt.Dimension |
getGraphPanelSize()
return dimension of the graph panel |
int |
getLastSelectedIndex()
return index of the last (from top) selected graph |
int |
getNumberOfGraphs()
return Number Of Graphs |
int |
getPanelCapacity()
return number of rows that would be drawn in the panel |
javax.swing.JPopupMenu |
getPopup()
return Popup menu |
int |
getPrintHeight(int graphs,
int lines)
return min height that is necessary to fit all the content |
RepeatPanel |
getRepeatPanel()
return Repeat Panel |
int[] |
getSelectedIndices()
return numbers of selected lines in the bottom panel curve list |
java.util.Vector |
getStatistics()
return conservation Statistics for all curves |
TracerPanel |
getTracerPanel()
return Tracer Panel |
int |
getUniqOrganisms()
return number uniq organisms |
java.util.Vector |
getVisibleCurveNames()
return names of visible Curves |
void |
hideGraph(java.lang.String curveName)
hide Graph |
void |
moveSelectedDown()
move Selected Graphs Down |
void |
moveSelectedUp()
move Selected Graphs Up |
void |
multiSelectGraphs()
select more than one graph |
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int pi)
print content |
void |
rebuildPanel()
this method is responsible for positioning of all graphs, annotations, axis etc. |
void |
refreshAnnotations()
request new information from the server for Annotations and repeats |
void |
refreshAnnotations(Status status)
set Annotations and repeats from Status. |
void |
refreshGraphs()
request new data from the server for all graphs and repaint |
void |
removeAllGraphs()
remove All Graphs |
boolean |
removeAllSelectedGraphs()
remove All Selected Graphs |
void |
removeDataImages()
remove images for all graphs, annotation panel, repeat panel and axis panel |
void |
removeGraph(int pos)
remove Graph |
void |
removeGraph(java.lang.String name)
remove Graph |
void |
repaintTracerPanels()
repaint all TracerPanels |
protected void |
repeatLegend(java.awt.Graphics g,
java.awt.Color color,
int x,
int y,
java.lang.String name)
draw repeat legend |
void |
replaceGraph(GeneralGraphView graph,
int i)
replace Graph at the "i" position by another graph |
void |
resetPrintedGraphs()
clear list of printed graphs |
void |
resetXBorders()
resetXBorders |
void |
selectGraph(int index)
select Graph in index position |
void |
setArrows()
set buttons with Arrows in the bottom panel |
void |
setDetails()
Enable or disable detailsAction |
void |
setFixedRows(int rows)
set number of rows to show in the Display Panel |
void |
setPrintCapacity(int graphs,
int lines)
Set number of graphs and lines to be printed |
void |
setSelectedIndices(int[] indices)
select lines in the bottom panel curve list |
void |
setSettings()
SettingsAction can be enabled only if all curves are of the same type |
void |
setTracerPanel(TracerPanel tp)
set Tracer Panel |
void |
setXBorders(int x)
set Borders of the selected region |
void |
showGraph(java.lang.String curveName)
show Graph |
void |
swapGraphs(int graph1,
int graph2)
swap 2 selected Graphs graph1<=>graph2 |
void |
unselectAllGraphs()
unselect all Graphs |
boolean |
updatePosition()
update Position |
void |
updateSelectList()
update Select List in the bottom panel curve list |
Methods inherited from class gov.lbl.genome.gui.panel.VistaPanel |
---|
convertX, convertX, createImage, getFormattedNumberString, getFormattedNumberString, getFormattedXDisplayString, getFormattedXDisplayString, getHorizSize, getStringWidth, getVertSize, getXDisplay, getXDisplay, paintComponent, removeImage, setImage, shortenString |
Methods inherited from class gov.lbl.genome.gui.panel.VGBPanel |
---|
Debug, dispatch, dispatchEvent, findParentFrame |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AxisPanel axisPanel
protected java.lang.Thread refreshThread
public int pages
public int currentPage
public int prevPage
public int curvesPerPage
public boolean inTracerPanel
public boolean dragged
public boolean drawbar
public int xstart
public int xend
public int startTracerPanel
public int endTracerPanel
public int activeTracerPanel
Constructor Detail |
---|
public DisplayPanel(VistaApp vapp)
vapp
- VistaAppMethod Detail |
---|
public void refreshAnnotations()
public void refreshAnnotations(Status status)
status
- Statuspublic void updateSelectList()
public void removeGraph(int pos)
pos
- intpublic java.util.Vector getVisibleCurveNames()
public void removeGraph(java.lang.String name)
name
- Stringpublic void resetPrintedGraphs()
public void addPrintedGraph(int pos)
pos
- intpublic void removeAllGraphs()
public boolean removeAllSelectedGraphs()
public java.util.Collection getAllSelectedGraphs()
public void unselectAllGraphs()
public void setSettings()
SettingsAction
public void setDetails()
DetailsAction
public void setArrows()
public void multiSelectGraphs()
public GeneralGraphView getGraph(int pos)
pos
- int
public java.util.Collection getAllGraphs()
public java.util.Vector getAllCurves()
public java.util.Vector getAllCurveInfos()
CurveInfo
public RepeatPanel getRepeatPanel()
public AnnotationPanel getAnnotationPanel()
public void replaceGraph(GeneralGraphView graph, int i)
graph
- GeneralGraphViewi
- intpublic void swapGraphs(int graph1, int graph2)
graph1
- intgraph2
- intpublic void moveSelectedUp()
moveSelectedDown()
public void moveSelectedDown()
moveSelectedUp()
public int[] getSelectedIndices()
setSelectedIndices(int[])
public void setSelectedIndices(int[] indices)
indices
- int[]getSelectedIndices()
public void rebuildPanel()
public void addGraph(GeneralGraphView graph)
graph
- GeneralGraphViewpublic void removeDataImages()
public void refreshGraphs()
public java.util.Vector getStatistics()
VistaCurveView.getStatistics()
,
GeneralGraphView.getStatistics()
public java.awt.Dimension getGraphPanelSize()
public TracerPanel getTracerPanel()
public void setTracerPanel(TracerPanel tp)
tp
- TracerPanelpublic javax.swing.JPopupMenu getPopup()
public int getNumberOfGraphs()
public int getPanelCapacity()
public void addCurves(Status status)
status
- Statuspublic void addDefaultCurve(GenomeInfo genome)
genome
- GenomeInfopublic void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
e
- ComponentEventpublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
public int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pi) throws java.awt.print.PrinterException
print
in interface java.awt.print.Printable
print
in class VGBPanel
g
- Graphicspf
- PageFormatpi
- int
java.awt.print.PrinterException
public void drawContent(java.awt.Graphics g, int width, int height)
g
- Graphicswidth
- intheight
- intdrawContent(Graphics, PageFormat)
public int getPrintHeight(int graphs, int lines)
graphs
- intlines
- int
public void drawContent(java.awt.Graphics g, java.awt.print.PageFormat pf)
g
- Graphicspf
- PageFormatprotected void annotationLegend(java.awt.Graphics g, java.awt.Color color, int x, int y, java.lang.String name)
g
- Graphicscolor
- Colorx
- inty
- intname
- Stringprotected void repeatLegend(java.awt.Graphics g, java.awt.Color color, int x, int y, java.lang.String name)
g
- Graphicscolor
- Colorx
- inty
- intname
- Stringprotected void contigLegend(java.awt.Graphics g, java.awt.Color color, int x, int y, java.lang.String name)
g
- Graphicscolor
- Colorx
- inty
- intname
- Stringpublic void repaintTracerPanels()
public void setXBorders(int x)
x
- intpublic void resetXBorders()
TracerPanel.reset()
public long getChromDX()
public boolean updatePosition()
VistaApp.updatePosition(long,long)
public void setPrintCapacity(int graphs, int lines)
graphs
- intlines
- intPrintAction
public void setFixedRows(int rows)
rows
- intpublic int getUniqOrganisms()
public int getFirstSelectedIndex()
getLastSelectedIndex()
public void selectGraph(int index)
index
position
index
- intpublic int getLastSelectedIndex()
getFirstSelectedIndex()
public void hideGraph(java.lang.String curveName)
curveName
- Stringpublic void showGraph(java.lang.String curveName)
curveName
- String
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |